Arpit
Arpit

Reputation: 6260

Maven with Nexus: Creating a zip from the installed artifacts

I am using Maven integrated with Nexus.

I have multiple java projects each creating 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!

Upvotes: 1

Views: 667

Answers (2)

Markus W Mahlberg
Markus W Mahlberg

Reputation: 20712

  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

Upvotes: 0

Igor Artamonov
Igor Artamonov

Reputation: 35951

  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/

Upvotes: 1

Related Questions