Reputation: 11
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
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
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