Maven with Nexus: Creating a zip from the installed artifacts
I am using Maven integrated with Nexus.
I have multiple java projects each 开发者_如何学Pythoncreating independent jar files.
- Should I install the jar's in Nexus Snapshot repository or a regular release repository?
- How can I bundle all these Jar's into a single zip file after they're all deployed into Nexus?
any help is appreciated
Cheers!
- It depends on what you are releasing: snapshots must be installed into nexus snapshot repository on every build, releases only when you are making an not-snapshot version.
- There is maven assembly plugin, that can help you with it: http://maven.apache.org/plugins/maven-assembly-plugin/
- Declare the war/jar/ear/rar files you want as a dependency for a new maven project.
- Use the maven-assembly-plugin to create a zip
精彩评论