Today 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.
3. Choose Tomcat 7 as your application server and set the cloudlets limit. Then type your environment name, for example, artifactory, and click Create.
Wait just a minute for your environment to be created.
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).
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.
4. Once the package is in Jelastic, deploy it to the environment you have created earlier.
5. Open your application in a web browser.
1. Log into Artifactory (the default credentials are admin/password).
2. Navigate to the Deploy tab and upload your artifact file.
3. Edit your artifact details and deploy it as Maven artifact.
4. Once your artifact is successfully deployed, navigate to Artifacts -> target repository -> artifact pom file and copy the dependency declaration of your artifact.
5. Paste the declaration you’ve just copied to the dependencies section of your Maven project pom.xml.
6. Go back to Artifactory, copy your repository distribution details and paste them into pom.xml as well.
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!