Skip to content

Instantly share code, notes, and snippets.

@ggordonutech
Last active September 8, 2019 03:02
Show Gist options
  • Save ggordonutech/c82dccbaa6bc4934f974c6a3ce437690 to your computer and use it in GitHub Desktop.
Save ggordonutech/c82dccbaa6bc4934f974c6a3ce437690 to your computer and use it in GitHub Desktop.
Maven package as jar pom config
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- Ensure that you specify the fully qualified class name (package + class name) of your class with your runnable main below -->
<mainClass>jm.edu.utech.welcome.Driver</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
@M-Facey
Copy link

M-Facey commented Sep 8, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment