Install Artefactory Maven repository on Ubuntu 16.04

 

Follow these steps to install Artifactory Maven repository on Ubuntu 16.04 ( terminal commands, mostly )-

  1. wget -c -O- “https://bintray.com/user/downloadSubjectPublicKey?username=jfrog” | sudo apt-key add –
  2. echo “deb https://bintray.com/artifact/download/jfrog/artifactory-debs xenial main” | sudo tee -a /etc/apt/sources.list.d/artifactory-oss.list
  3. sudo apt-get update
  4. sudo apt-get -y install jfrog-artifactory-oss
  5. Set credentials of DB accounts after running –
    1. sudo /opt/jfrog/artifactory/bin/configure.mysql.sh

Refer : https://hostpresto.com/community/tutorials/how-to-install-jfrog-artifactory-on-ubuntu-14-04/

After installation, launch the Artefactory portal. Then –

  1. From Security Configuration page, remove Anonymous access (untick the checkbox).
  2. Also scroll down and activate password Encryption.
  3. Create a new user (Eg, “developer”), as the existing user is Admin, and granular permissions cannot be added to it. Also for some reason, unless we add permissions for Manage, Overwrite, Read etc individually, the Artefactory would continue to respond with 401 for any request.
  4. Logout Admin, and login as the user created in above step.
  5. Go to user profile by click on users name on top right corner, and unlock the page by entering the user’s password again.
  6. Scroll down and view the encrypted password by click on the “eye” icon adjacent to it. Note this down.
  7. From Home page, click on repository “libs release”. Unlock credentials in this panel by entering the user’s  password again.
  8. Click and “Generate Maven Settings”, and download the maven settings file.
  9. Edit Maven Settings file –
    1. Change parameterized username to username of the user (eg, developer)
    2. Change parameterized password to just the encrypted password (obtained at step 6)
    3. Save the file, and move it to /[user-home]/.m2/settings.xml
  10. Test the above setup by running “mvn deploy” on any of the maven project you have.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

43,752 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>