summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Gagné <fragag1@gmail.com>2014-10-04 14:35:11 -0400
committerFrancis Gagné <fragag1@gmail.com>2014-10-04 17:36:38 -0400
commitef8826a317908115b4a050e0537a3b95170fb441 (patch)
treee0c934ff927044be82cd310b762b420695d24e07
parent7c097fc42a36c1fd4c6e1ba9a775d89113f24ca8 (diff)
Configure assembly generation
Add the configuration to generate an assembly during the package phase in the POM.
-rw-r--r--pom.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index de01afe..c03ad4b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,6 +36,33 @@
<target>1.7</target>
</configuration>
</plugin>
+
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.4.1</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>org.reasm.batch.Assembler</mainClass>
+ </manifest>
+ </archive>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+
+ <!-- Generate an assembly during the package phase -->
+ <!-- http://stackoverflow.com/a/14276860/234590 -->
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>