Posted By

hkarakose on 07/28/12


Tagged

maven


Versions (?)

Maven Jar With Dependencies


 / Published in: Java
 

the configuration shall be placed within build section of the POM.

  1. <plugin>
  2. <artifactId>maven-assembly-plugin</artifactId>
  3. <version>2.3</version>
  4. <configuration>
  5. <descriptorRefs>
  6. <descriptorRef>jar-with-dependencies</descriptorRef>
  7. </descriptorRefs>
  8. </configuration>
  9. <executions>
  10. <execution>
  11. <id>make-assembly</id>
  12. <phase>package</phase>
  13. <goals>
  14. <goal>single</goal>
  15. </goals>
  16. </execution>
  17. </executions>
  18. </plugin>

Report this snippet  

You need to login to post a comment.