Table of Contents
1. Setup configuration:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <archive> <manifest> <mainClass> main.ProductionTools </mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </execution> </executions> </plugin>
2. Execute the command below.
mvn clean install
3. Check the created file ended with jar-with-dependencies
Verify the folder, target, for the jar ended with the name “jar-with-dependencies”.