Artifactory Repository Manager: Deployment and Use

artifactoryToday we’ll show you how to deploy and use Artifactory, one of the most advanced repository managers, in the Cloud. Artifactory offers powerful enterprise features and fine-grained permission control behind a sleek and easy-to-use UI. Let’s examine its main features in short:

  • Artifactory acts as a proxy between your build tool (Maven, Ant etc.) and the outside world.
  • Local CacheIt caches remote artifacts so that you don’t have to download them over and over again.
  • It blocks unwanted (and sometimes security-sensitive) external requests for internal artifacts and controls how and where artifacts are deployed, and by whom. With Artifactory, you can gain full control over all the build artifacts and third-party dependencies your organization uses, and even share repositories throughout your interdepartmental and/or multi-team environment no matter where your team members may be located.
  • Built on top of the Java Content Repository (JCR), Artifactory repository manager supports extremely high concurrency and offers unmatched data integrity.
  • The underlying, backup-ready storage supports Artifactory’s OpenMetadata (TM) technology, allowing every repository item to be attached with searchable XML metadata and user-defined properties.

So, let’s get started now!

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.

ftp1

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

artifactory_create_environment

Wait just a minute for your environment to be created.

artifactory_environment

Upload Java package

1. Go to jfrog.com and download the latest Artifactory repository manager release as a zip package (you can choose free or pro version according to your needs).

artifactory_download

2. Extract the files from this archive on your computer.

3. Switch back to the Jelastic dashboard and upload the Artifactory WAR package (artifactory-х.х.х/webapps/artifactory.war) to the Deployment manager.

artifactory_upload

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

artifactory_deploy

5. Open your application in a web browser.

artifactory_in_browser

Managing artifacts

1. Log into Artifactory (the default credentials are admin/password).

2. Navigate to the Deploy tab and upload your artifact file.

artifactory-upload-artifact

3. Edit your artifact details and deploy it as Maven artifact.

artifactory-edit-artifact

4. Once your artifact is successfully deployed, navigate to Artifacts -> target repository -> artifact pom file and copy the dependency declaration of your artifact.

artifactory-dependency

5. Paste the declaration you’ve just copied to the dependencies section of your Maven project pom.xml.

artifactory-dependency

6. Go back to Artifactory, copy your repository distribution details and paste them into pom.xml as well.

artifactory-distribution

artifactory-repository

Now you can build your project locally, upload your WAR archive to your Jelastic dashboard and deploy it to the cloud within few minutes.

Prefer to store your projects in Git or SVN repositories? No problems, just follow this instruction to deploy them into Jelastic cloud.

That’s all for today! Enjoy with all the advantages of artifact management in the cloud!

2 Responses to “Artifactory Repository Manager: Deployment and Use”

  1. Artifactory Repository Manager: Deployment and Use | Jelastic — Die nächste Generation Java-Hosting-Plattform

    [...] Marina Sprava hat einen neuen interessanten Artikel in unserem englischen Blog geschrieben, den wir Euch nicht vorenthalten wollen. Artifactory Repository Manager: Deployment and Use [...]

    Reply
  2. Artifactory Repository Manager: Deployment and Use ← McCloud

    [...] post Artifactory Repository Manager: Deployment and Use appeared first on Jelastic — Top Java and PHP Host, Java and PHP in the Cloud, Java and PHP [...]

    Reply

Leave a Reply