Generate All-in-one JAR file using Maven in Eclipse

add this paragraph of code to your pom.xml file in parallel to dependencies tag.. Customize the “mainClass” to your class path. Then run project as Maven Build…, type “clean package assembly:single” into the goal box and run the build. And you will have a JAR file with all the dependencies included in the target directory in your project folder.


















Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s