开发者

How to have maven build my project with all the dependencies in a separte folder, ready to package?

开发者 https://www.devze.com 2023-04-09 03:26 出处:网络
How do I create a package of a Maven开发者_开发问答 project that contains the jar with my classes, plus a directory like \"lib\" with all the needed dependencies? I\'m using netbeans ...You can copy r

How do I create a package of a Maven开发者_开发问答 project that contains the jar with my classes, plus a directory like "lib" with all the needed dependencies? I'm using netbeans ...


You can copy required libs into a folder using Maven dependency plugin copy-dependencies goal.

In addition to that you can use Maven assembly plugin to create an archive containing your jar and this lib folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号