Harshal Vaidya Harshal Vaidya - 1 year ago 293
Java Question

Upload Jenkins build file .war to Nexus Repository remotely

I have Jenkins setup with Maven as a build tool. Java project is pulled from SVN and it is built using Maven (all inside Jenkins). Once the project is built I get

package file which I need to be uploaded to Nexus Repository.

Whats the simplest way to do that?

I tried tweaking/modifying my existing
, but no luck. Nothing is happening.

I want the
file to be uploaded to Nexus Repository which I configured on other box.

Answer Source

You can use the Nexus Maven Plugin for your purpose. And in your Jenkins script, just run:

mvn clean deploy

As it is described in the documentation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download