diff options
author | Francis Gagné <fragag1@gmail.com> | 2014-10-04 14:35:11 -0400 |
---|---|---|
committer | Francis Gagné <fragag1@gmail.com> | 2014-10-04 17:36:38 -0400 |
commit | ef8826a317908115b4a050e0537a3b95170fb441 (patch) | |
tree | e0c934ff927044be82cd310b762b420695d24e07 | |
parent | 7c097fc42a36c1fd4c6e1ba9a775d89113f24ca8 (diff) |
Configure assembly generation
Add the configuration to generate an assembly during the package phase
in the POM.
-rw-r--r-- | pom.xml | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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> |