Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Continued maven-jlink-plugin
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@1763964 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
khmarbaise committed Oct 9, 2016
1 parent e70e6d9 commit 86982c2
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 19 deletions.
56 changes: 56 additions & 0 deletions maven-jlink-plugin/pom.xml
Expand Up @@ -61,6 +61,8 @@

<properties>
<mavenVersion>3.0</mavenVersion>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<dependencies>
Expand All @@ -85,5 +87,59 @@
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.mockito</groupId> -->
<!-- <artifactId>mockito-core</artifactId> -->
<!-- <version>1.9.5</version> -->
<!-- <scope>test</scope> -->
<!-- </dependency> -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>io.takari.maven.plugins</groupId>
<artifactId>takari-plugin-testing</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
<dependency> <!-- used by takari-plugin-testing, don't give it compile scope! -->
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${mavenVersion}</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<resources>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<!-- <build> -->
<!-- <plugins> -->
<!-- <plugin> -->
<!-- <groupId>io.takari.maven.plugins</groupId> -->
<!-- <artifactId>takari-lifecycle-plugin</artifactId> -->
<!-- <version>1.12.1</version> -->
<!-- <extensions>true</extensions> -->
<!-- <executions> -->
<!-- <execution> -->
<!-- <id>testProperties</id> -->
<!-- <phase>process-test-resources</phase> -->
<!-- <goals> -->
<!-- <goal>testProperties</goal> -->
<!-- </goals> -->
<!-- </execution> -->
<!-- </executions> -->
<!-- </plugin> -->
<!-- </plugins> -->
<!-- </build> -->
</project>
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

<component-set>
<components>
<!--
| JLINK
|-->
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>jlink</role-hint>
<implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
<configuration>
<type>jlink</type>
<includesDependencies>true</includesDependencies>
<language>java</language>
<addedToClasspath>false</addedToClasspath>
</configuration>
</component>

<!--
| Defining the phases with their appropriate plugins
! and versions which will be executed during the 'default'
! life cycle.
-->
<!--
| JLINK
|-->
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>jlink</role-hint>
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
<configuration>
<lifecycles>
<lifecycle>
<id>default</id>
<!-- START SNIPPET: jlink-lifecycle -->
<phases>
<process-resources>
org.apache.maven.plugins:maven-resources-plugin:3.0.1:resources
</process-resources>
<package>
org.apache.maven.plugins:maven-jlink-plugin:${project.version}:jlink
</package>
<install>
org.apache.maven.plugins:maven-install-plugin:2.5.2:install
</install>
<deploy>
org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
</deploy>
</phases>
<!-- END SNIPPET: jlink-lifecycle -->
</lifecycle>
</lifecycles>
</configuration>
</component>

</components>
</component-set>
Expand Up @@ -167,7 +167,7 @@ protected void executeCommand ( Commandline cmd, File outputDirectory ) throws M
if ( StringUtils.isNotEmpty( output ) )
{
//Reconsider to use WARN / ERROR ?
getLog().info( output );
getLog().error( output );
}

StringBuilder msg = new StringBuilder( "\nExit code: " );
Expand Down

0 comments on commit 86982c2

Please sign in to comment.