This step walks you through creating a Maven/Gradle repository type and uploading your project, allowing you to use Artifactory as your artifact repository. You can then follow the instructions to create other types of repositories, such as npm, Docker, and Go.
Navigate to the Administration Module.
Expand the Repositories menu and click the Repositories menu item.
Create three new Maven/Gradle package type repositories.
Add a new Local Repository with the Repository Key “maven-challenge-local” or “gradle-challenge-local” and keep the rest of the default settings.
Click on the Remote tab and add a new Remote Repository with the Repository Key “maven-challenge-remote” or “gradle-challenge-remote” and keep the rest of the default settings.
Click on the Virtual tab and add a new Virtual Repository with the Repository Key “maven-challenge” or “gradle-challenge”.
Add the local and remote Maven/Gradle repositories you just created.
Configure JFrog CLI, a smart client that provides a simple interface that automates access to JFrog products simplifying our automation scripts.
Configure the Artifactory server.
$ jf c add
Take the following steps to build the project with Maven/Gradle and resolve the project dependencies from Artifactory.
Move to the root project directory (
Configure the project's repositories.
$ jf mvn-config
$ jf gradle-config
Build the project with resolve the project dependencies from Artifactory.
$ jf mvn clean install -f path/to/pom-file --build-name maven-challenge --build-number 1.0.0
$ jf gradle clean artifactoryPublish -b path/to/build.gradle --build-name gradle-challenge --build-number 1.0.0
Publish the build info to Artifactory.
$ jf rt bp maven-challenge 1.0.0
$ jf rt bp gradle-challenge 1.0.0
Navigate to the Application Module.
Expand the Artifactory menu and click the Artifacts menu item.
Navigate to the Application Module, in the Platform UI, expand the Artifactory menu and click the Artifacts menu item.
Here you’ll be able to see the details of your new artifacts.