configure pom.xml to generate runnable jar


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

see the maven-assembly-plugin doc for detail.
http://maven.apache.org/plugins/maven-assembly-plugin/


Copy this code and paste it in your HTML
  1. <build>
  2.   <plugins>
  3.     <plugin>
  4.       <artifactId>maven-assembly-plugin</artifactId>
  5.       <configuration>
  6.         <descriptorRefs>
  7.           <descriptorRef>jar-with-dependencies</descriptorRef>
  8.         </descriptorRefs>
  9.         <archive>
  10.           <manifest>
  11.             <mainClass>fully.qualified.MainClass</mainClass>
  12.           </manifest>
  13.         </archive>
  14.       </configuration>
  15.     </plugin>
  16.   </plugins>
  17. </build>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.