Maven jar Plugin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 9: | Line 9: | ||
=Overview= | =Overview= | ||
=Declaring a Main Class in JAR= | |||
<pre> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-jar-plugin</artifactId> | |||
... | |||
<configuration> | |||
<archive> | |||
<manifest> | |||
<addClasspath>true</addClasspath> | |||
<mainClass>fully.qualified.MainClass</mainClass> | |||
</manifest> | |||
</archive> | |||
</configuration> | |||
... | |||
</plugin> | |||
</pre> |
Revision as of 21:44, 9 May 2016
External
Internal
Overview
Declaring a Main Class in JAR
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> ... <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>fully.qualified.MainClass</mainClass> </manifest> </archive> </configuration> ... </plugin>