JFrog artifactory tutorial Download setup and JAR deployment |Video upload date:  · Duration: PT6M33S  · Language: EN

Guide to download setup JFrog Artifactory and deploy JARs with Maven repository setup permissions and verification steps

If you want to stop emailing JARs to teammates and pretending that is version control then this guide will get a local JFrog Artifactory running and accept Maven JAR uploads in a few practical steps. No snake oil required just a bit of setup and a few clicks in the UI.

Download and install Artifactory

Head to the JFrog site and pick OSS or Pro depending on how fancy your team is. For quick developer testing grab the zip or tarball and extract it on your machine. If you are on a server use the platform specific installer so the service survives reboots and yells less at you.

Start the server with the provided startup script or the system service command that matches your distro. Then open the web UI in a browser and follow the initial admin setup and password change prompts. Yes the UI will nag you and that is normal. Do not skip the admin password step unless you enjoy chaos.

Create a local Maven repository

In the Artifactory admin area create a new local repository with Maven layout. Use a clear name that follows your naming convention. Good names stop people from accidentally overwriting production artifacts with their experimental builds.

  • Grant deploy permissions to a dedicated service account or CI user
  • Set any required property or layout rules for group and artifact coordinates
  • Enable checksum calculation to make verification easier later

Configure Maven for deployment

Point your Maven client at the new Artifactory repo by adding a server entry to your Maven settings and a distributionManagement block to your project POM. Use a non interactive account for CI that has only the rights it actually needs.

Example settings entry

<settings>
  <servers>
    <server>
      <id>local</id>
      <username>deploy</username>
      <password>secret</password>
    </server>
  </servers>
</settings>

Example distribution management in pom

<distributionManagement>
  <repository>
    <id>local</id>
    <url>https://artifactory.example.com/artifactory/my-maven-local</url>
  </repository>
</distributionManagement>

Once configured you can push a single JAR with the familiar Maven command. Replace REPO_URL with the full repository path from the Artifactory UI and make sure repositoryId matches the id in settings.xml.

mvn deploy -Dfile=target/my.jar -Durl=REPO_URL -DrepositoryId=local

Verify the deployed artifact and troubleshoot

Open the Artifactory UI and browse your repository. You should see the artifact under the expected group and artifact coordinates with checksum files and metadata. If anything looks amiss check the artifact checksum and the generated maven metadata.

  • If deployment fails inspect the Artifactory server logs for errors and stack traces
  • Confirm the deploying user has write and deploy permissions for the target repo
  • Check network or proxy issues between your build agent and Artifactory

Automation and CI tips

Once the manual workflow works plug this into your CI pipeline for automated builds and releases. Use a CI service account or an encrypted credentials store so you are not embedding passwords in plain text. Artifactory plays nicely with Maven and most CI tools so you can automate JAR uploads and promote builds without finger crossing.

Quick checklist before you call it done

  • Artifactory is reachable and the web UI is accessible
  • Repository naming follows your convention and permissions are trimmed
  • Maven settings.xml contains the correct server id and credentials
  • POM distribution management points at the right repository URL
  • Uploaded JAR appears in the UI with checksums and metadata

There you go. You now have a repeatable JFrog Artifactory setup and a reliable Maven JAR deployment flow that will save your team time and reduce the number of mystery JARs floating around inboxes. If you want CI integration or replication between Artifactory instances that is the next chapter and much of it can be automated with CI pipelines or Infrastructure as Code.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.