开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜