How to create a separate jar from the maven project?

I am trying to create a standalone jar file. I don’t think it maven packageis packaging my dependencies correctly in a package. Is there a way to get them to turn them on?

+5
source share
4 answers

Alternatively you can use jar-with-dependencies packaging maven assembly .

+5
source

You need to use the plugin.

maven . "uber", , ( ) .

, , , .

+3

, maven .

git clone git://github.com/db80/java-skeleton.git

mvn

cd java-skeleton && mvn package
0

All Articles