How to Use a Maven settings.xml from outside the local repository
目的
If you intend to reference files (e.g. settings.xml)
for Maven that are located in a separate directory or repository, you will need to use Maven arguments to reference them.
ソリューション
If you are using a settings.xml from a different local directory
- Edit your Job in
Builds >> All Build Plans >> Build name >> Actions >> Configure Build
In your Maven Task, add the relative path to the beginning of the Goal field
eg: -smaven-settings-dir/settings.xml
- Save the Task
If you are pulling settings.xml from a different repository
You may have your settings.xml
in a different repository that you want to pull in during the build. You can get settings.xml
as follows:
- Link the other repository, if needed
- Edit your Job in
Builds >> All Build Plans >> Build name >> Actions >> Configure Build
- Add a new Source Code Checkout task before the Maven task
- Select your other repository as the Repository for the task
- Add a Checkout Directory (it will be added if it doesn't exist) and save
eg: maven-settings-dir - In your Maven Task, add the relative path to the beginning of the Goal field and save
eg: -smaven-settings-dir/settings.xml
If you have any questions about this process, please reach out to Atlassian Support
最終更新日 2016 年 9 月 28 日
Powered by Confluence and Scroll Viewport.