开发者

Maven with Nexus: Creating a zip from the installed artifacts

开发者 https://www.devze.com 2023-03-17 02:03 出处:网络
I am using Maven integrated with Nexus. I have multiple java projects each 开发者_如何学Pythoncreating independent jar files.

I am using Maven integrated with Nexus.

I have multiple java projects each 开发者_如何学Pythoncreating independent jar files.

  1. Should I install the jar's in Nexus Snapshot repository or a regular release repository?
  2. 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!


  1. 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.
  2. There is maven assembly plugin, that can help you with it: http://maven.apache.org/plugins/maven-assembly-plugin/


  1. Declare the war/jar/ear/rar files you want as a dependency for a new maven project.
  2. Use the maven-assembly-plugin to create a zip
0

精彩评论

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

关注公众号