John M Biker
John M Biker

Reputation: 11

How to use Maven to download from Nexus for a deployment

I am somewhat new to Maven but we are successfully using Bamboo to deploy to Tomcat using Maven and Tomcat7 plugin. However I want a separate Bamboo build plan that only deploys a war package from Nexus, does not re-build it first. Looks like I could make the war a dependency but this same POM builds the package, so I don't want it downloaded in the case that a build goal is called.

Upvotes: 1

Views: 3603

Answers (2)

Manfred Moser
Manfred Moser

Reputation: 29912

Nexus has a very rich REST API that you could easily use to script the deployment with a simple http get and a copy. However if you really feel like you want to use Maven ptyx approach should work ... although it seems like overkill. If you invest into effort for deployment I would look into using Chef or Puppet instead and use them to pull from Nexus and push into your production (or QA or whatever servers).

Upvotes: 1

ptyx
ptyx

Reputation: 4164

Look at the maven-dependency-plugin. It should be easy to have a project grab an existing war artifact and push it to tomcat.

Upvotes: 1

Related Questions