How to Deploy Nexus Repository Manager to the Cloud

By October 15, 2012 HowTo 2 Comments
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

If you are developing software without a repository manager you are likely missing a number of opportunities to reduce some pretty obvious inefficiencies. If everyone in your team has to hit Central to download artifacts you are loosing speed and efficiency. If you don’t have a local place to deploy artifacts you are forced to share binary artifacts using half-measures and compromises such as storing binaries in source control. Stop developing in the Dark Ages and start using a repository manager. Once you start using Nexus, you’ll wonder how you have ever functioned without it. Sonatype Nexus sets the standard for repository management providing development teams with the ability to proxy remote repositories and share software artifacts.

Follow the simple steps below to get one of the best repository managers on the market up and running in a few minutes.

Create the environment

1. Go to jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.

2. Ask Jelastic to create a new environment.

3. Choose Tomcat 7 as your application server and set the cloudlets limit. Then type your environment name, for example, nexus, and click Create.

Wait just a minute for your environment to be created.

Upload Java package

1. Go to Sonatype web site and copy the link to the latest Nexus release WAR archive.

2. Switch back to the Jelastic dashboard and upload the java package to the Deployment manager using copied URL.

3. Once the package is in Jelastic, deploy it to the environment you have created earlier.

4. That’s all for the Nexus version earlier than 2.7. Open in browser and start using your application.

5. If you use 2.7 Nexus version you should perform some extra configurations to make it work:

  • Press Config button next to the Tomcat server in your environment.

tomcat config

  • Navigate to the webapps/{context_name}/WEB-INF/plexus.properties file within opened configuration manager.

  • Change the nexus-work=${user.home}/sonatype-work/nexus line to:
    nexus-work=/opt/tomcat/webapps/{context_name}

user home variable

  • Save the changes and Restart your Tomcat application server.Now you can open your Nexus repository manager hosted with Jelastic cloud platform.

Cheers!

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

2 Comments

  • Daren says:

    Nice little demo, but please note it does not work on Nexus 2.7. Previous versions do work though

    • Tetiana Fydorenchyk says:

      Thank you, Daren, for informing about the problem.
      We updated this tutorial with the details on how to make Nexus 2.7 work properly in Jelastic Cloud.

Leave a Reply

Subscribe to get the latest updates