Maven Executable Jar File


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



Copy this code and paste it in your HTML
  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.apache.maven.plugins</groupId>
  5. <artifactId>maven-jar-plugin</artifactId>
  6. <configuration>
  7. <archive>
  8. <manifest>
  9. <addClasspath>true</addClasspath>
  10. <mainClass>fully.qualified.MainClass</mainClass>
  11. </manifest>
  12. </archive>
  13. </configuration>
  14. </plugin>
  15. </plugins>
  16. </build>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.