Created
August 1, 2019 14:36
-
-
Save cnmoro/b22d5bfe445532de0fc2dc91bbe59578 to your computer and use it in GitHub Desktop.
Generate JAR with Maven
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> | |
<mainClass>fully.qualified.MainClass</mainClass> | |
</manifest> | |
</archive> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
and you run it with | |
mvn clean compile assembly:single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment