Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (36 sloc) 1.37 KB
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>test-enhance-jar</artifactId>
<version>0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.17</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>net.kozelka.maven</groupId>
<artifactId>runjar-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<id>enhance-jar</id>
<phase>package</phase>
<goals>
<goal>enhance-jar</goal>
</goals>
<configuration>
<mainClass>HelloWorld</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>