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.
精彩评论