To make it easy for you to configure Maven to work with Artifactory, Artifactory can automatically generate a settings.xml
file which you can save under your Maven home directory.
The definitions in the generated settings.xml
file override the default central and snapshot repositories of Maven.
Note
The Automatically Generating Settings will allow to you to configure Virtual Maven repositories only. Federated repositories cannot be selected. While this is a best practice and the recommended method, you may change any repository by manually editing the settings.xml
file.
Once you have created your Maven repository, go to Application | Artifactory | Artifacts, select your Maven repository, and click Set Me Up.
In the Set Me Up dialog, click Generate Maven Settings.
You can now specify the repositories you want to configure for Maven.
Field | Description |
---|---|
Releases | The repository from which to resolve releases |
Snapshots | The repository from which to resolve snapshots |
Plugin Releases | The repository from which to resolve plugin releases |
Plugin Snapshots | The repository from which to resolve plugin snapshots |
Mirror Any | When set, you can select a repository that should mirror any other repository. For more details please refer to Additional Mirror Any Setup |
Once you have configured the settings for Maven, click Generate Settings to generate and save the settings.xml
file.