Created
December 14, 2016 04:20
-
-
Save pekrockstar/c55ad2f234ce6caa5b7d3bdf3d83fc40 to your computer and use it in GitHub Desktop.
groovy maven build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.3</version> | |
<configuration> | |
<source>${java.version}</source> | |
<target>${java.version}</target> | |
<compilerId>groovy-eclipse-compiler</compilerId> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-eclipse-compiler</artifactId> | |
<version>2.9.2-01</version> | |
</dependency> | |
<dependency> | |
<groupId>org.codehaus.groovy</groupId> | |
<artifactId>groovy-eclipse-batch</artifactId> | |
<version>2.4.3-01</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.1</version> | |
<configuration> | |
<excludes> | |
<exclude>**/*.properties</exclude> | |
<exclude>**/*.yml</exclude> | |
<exclude>**/*.xml</exclude> | |
<exclude>**/logback.groovy</exclude> | |
</excludes> | |
<archive> | |
<manifest> | |
<addClasspath>true</addClasspath> | |
<classpathPrefix>lib/</classpathPrefix> | |
<mainClass>com.rockagen.power.SpiderApplication</mainClass> | |
</manifest> | |
<manifestEntries> | |
<Class-Path>conf/</Class-Path> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<version>2.5.3</version> | |
<executions> | |
<execution> | |
<id>make-assembly</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> | |
<configuration> | |
<descriptors> | |
<descriptor>src/assembly/bin.xml</descriptor> | |
</descriptors> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment