Migrate Sonatype Nexus repo from one machine to another

mavenmigrationnexus

I am trying to migrate nexus repo. How can I go about it, any pointers?

Best Answer

As stated in the doco the data storage and config. is separated from the application.

This way you can just copy both the application directory (Something like /opt/nexus-oss-webapp-X.Y.Z/) and your data directory (/opt/sonatype-work/) to a new server without any trouble.

I suspect the only setting that you'll need to change before trying to restart it is the repository URL which can be done by editing sonatype-work/nexus/conf/nexus.xml.

I just moved my repo from a machine to another, and upgraded it from 1.8.x to 1.9.0 at the same time without any trouble.

Related Topic