Posted By

thomasan on 11/15/11


Tagged

jar maven runnable


Versions (?)

configure pom.xml to generate runnable jar


 / Published in: Scala
 

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

  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  

You need to login to post a comment.