Artifactory: A Software Artifact Repository2 min read

An issue with the software development process is providing the rapidly evolving project to the end user. I have discussed Jenkins for automatic builds, but there is still a need to provide the automatically generated artifacts to the user. Artifacts can include the executable, configuration files, and even source code. Artifactory, by JFrog, is one possible tool for the job.

JFrog provides different versions of Artifactory. There is an open source version and three different versions which require a license. The open source version should be able to accommodate most developer’s needs.

artifactory_partial

CentOS Installation

Installation on CentOS is very straight forward. The Artifactory web site actually has very good instructions for doing so. You can perform an RPM installation using yum by following the commands directly from their site shown below.

wget https://bintray.com/jfrog/artifactory-rpms/rpm -O bintray-jfrog-artifactory-rpms.repo
sudo mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/
yum install jfrog-artifactory

Deploying Artifacts Manually

Manual deployment is a very simple process. Simply choose the repository you wish to deploy to and click deploy in the upper right corner. This will open a deployment dialog.

Deployment Dialog

Next you will drag or select the file you wish to upload. Then you will complete the target path. Artifactory will try and assist you, but it may not get the path correct. The repository layout which is shown is the pattern you have configured for the selected repository. Complete the path per that layout. For example a file named foo.bar found at yahoo.com and version 3.2 would have a path such as com/yahoo/foo/3.2/foo.bar. The last step is clicking the deploy button.

Obtaining Ivy Dependency Elements

Obtaining the Ivy dependency element for your Ivy dependency file is very simple. Select the file you would like to have as a dependency and then select the Ivy tab in the dependency declaration section. There is a copy button you may select or you can highlight the dependency. Copy this element to your project’s ivy.xml file and the dependency will then be included.

Ivy Dependency

Leave a Reply

Your email address will not be published.