Maven Executable JAR

From NovaOrdis Knowledge Base
Revision as of 04:54, 5 November 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

!!!Create an executable jar

{{{ <project>

 [...]
 <build>
   [...]
   <plugins>
     <plugin>
       <artifactId>maven-assembly-plugin</artifactId>
       <version>2.2-beta-5</version>
       <configuration>
         [...]
         <archive>
           <manifest>
             <mainClass>org.sample.App</mainClass>
           </manifest>
         </archive>
       </configuration>
       [...]
     </plugin>
     [...]

</project>

}}}