Resolving Maven Artifacts from Artifact Registry
Next, Add the following Remote repository to the virtual repository.
Next via Set Me UP generate a settings.xml file and save the settings.xml under .m2.
Next, add the dependencies to resolve from the registry in the POM.XML file and resolve the packages.
#mvn install [INFO] Scanning for projects... [INFO] [INFO] ------------< com.javatpoint.application2:my-application2 >------------- [INFO] Building Maven Quick Start Archetype 1.1 [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- Downloading from central: https://<Artifactory_URL>/artifactory/google-libs-release/org/apache/maven/plugins/maven-resources-plugin/3.3.1/maven-resources-plugin-3.3.1.pom Downloaded from central: https://<Artifactory_URL>/artifactory/google-libs-release/org/apache/maven/plugins/maven-resources-plugin/3.3.1/maven-resources-plugin-3.3.1.pom (8.2 kB at 5.6 kB/s) ……… ………… ………… Downloading from central: https://<Artifactory_URL>/artifactory/google-libs-release/com/javatpoint/application1/my-application1/1.0/my-application1-1.0.pom Downloaded from central: https://<Artifactory_URL>/artifactory/google-libs-release/com/javatpoint/application1/my-application1/1.0/my-application1-1.0.pom (1.8 kB at 227 B/s) Downloading from central: https://<Artifactory_URL>/artifactory/google-libs-release/com/javatpoint/application1/my-application1/1.0/my-application1-1.0.jar Downloaded from central: https://<Artifactory_URL>/artifactory/google-libs-release/com/javatpoint/application1/my-application1/1.0/my-application1-1.0.jar (1.9 kB at 219 B/s) [INFO] ……… ………… ………… INFO] Installing /Users/srigokuls/googltest/pom.xml to /Users/srigokuls/.m2/repository/com/javatpoint/application2/my-application2/1.1/my-application2-1.1.pom [INFO] Installing /Users/srigokuls/googletest/target/my-application2-1.1.jar to /Users/srigokuls/.m2/repository/com/javatpoint/application2/my-application2/1.1/my-application2-1.1.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:03 min [INFO] Finished at: 2024-06-29T16:21:42+05:30 [INFO] ------------------------------------------------------------------------