Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <profiles>
  2. <profile>
  3. <id>executable-jar</id>
  4. <activation>
  5. <property>
  6. <name>main.class</name>
  7. </property>
  8. </activation>
  9. <build>
  10. <plugins>
  11. <plugin>
  12. <artifactId>maven-assembly-plugin</artifactId>
  13. <version>2.6</version>
  14. <configuration>
  15. <descriptorRefs>
  16. <descriptorRef>jar-with-dependencies</descriptorRef>
  17. </descriptorRefs>
  18. <archive>
  19. <manifest>
  20. <mainClass>${main.class}</mainClass>
  21. </manifest>
  22. </archive>
  23. </configuration>
  24. <executions>
  25. <execution>
  26. <id>make-assembly</id> <!-- this is used for inheritance merges -->
  27. <phase>package</phase> <!-- bind to the packaging phase -->
  28. <goals>
  29. <goal>single</goal>
  30. </goals>
  31. </execution>
  32. </executions>
  33. </plugin>
  34. </plugins>
  35. </build>
  36. </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement