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.
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.
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.
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.
<settings>
<servers>
<server>
<id>local</id>
<username>deploy</username>
<password>secret</password>
</server>
</servers>
</settings>
<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
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.
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.
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.