简体   繁体   中英

Installing Maven repository offline - Artifactory

We are currently testing various products for Continuous Integration, and one of them is Artifactory (for setting up to work with Maven).

To our understanding, When Maven is configured to work with Artifactory it should not use the internet to download dependencies (Jars, Plugins, Artifacts). At the first time maven trying to install\\build, the Artifactory downloads these files from the internet, and saves them in it's cached local repository for future use.

The problem we have is that we need to install the Artifactory without internet connection, so Artifactory can't go and download the files.

How can we manually tell Artifactory to build it's local repository from files we provide offline?

The offline scenarious are well documented in the Artifactory User Guide . Your case is the first one - Organization-wide Offline .

Once you set Artifactory offline, look at @Itamarb's answer for instructions to populate your repositories.

There are a few ways to achieve your goal:

Please note that if the import is done into a releases repository and you are trying to import both releases & snapshots artifacts, the snapshots artifacts will be rejected, and you will have to import this folder again into a snapshot repository. The same thing happens the other way around (import releases into snapshot will import snapshots artifacts only).

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM