Maven Jar With Dependencies


/ Published in: Java
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.