Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (3.4k points)

I want to package my project in a single executable JAR for distribution.

How can I make a Maven project package all dependency JARs into my output JAR?

1 Answer

0 votes
by (46k points)

After Creating your project execute this



















mvn clean compile assembly:single

Also, make sure that compile goal is added before assembly:single else the code of your project won’t be included.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94k users

Browse Categories