Srish
Srish

Reputation: 102

How to import a jar file from jfrog artifactory into Jenkins .m2 repository?

I have a Jfrog Artifactory installation which has some artifacts. I want to pull these artifacts onto my Jenkins .m2 repository. I don't have much knowledge of Jenkins.

Upvotes: 0

Views: 758

Answers (1)

Ian W
Ian W

Reputation: 4767

As long as you have properly configured you maven remote repository settings, maven will resolve the artifacts and place them in the local repo during the build process.

Alternatively, (not recommended), you can use curl or wget and mvn install:install-file -Dfile=<path-to-file> ... , but that is rather pointless and more work than letting maven do what maven does.

Cloudbees has recommendations for settings if you don't want them in you repo's settings.xml; S/O answer has some advice, as does the pipeline-maven plugin and the Jenkins Docs.

Upvotes: 1

Related Questions