Skip to content

Instantly share code, notes, and snippets.

@shredder47
Created June 6, 2021 09:31
Show Gist options
  • Save shredder47/83a7e38cb8464914839d0e06b1e3f520 to your computer and use it in GitHub Desktop.
Save shredder47/83a7e38cb8464914839d0e06b1e3f520 to your computer and use it in GitHub Desktop.
FAT JAR using MAVEN
<build>
<finalName>Project Name</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>assemble-all</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment