Dependency triggered builds
Hello,
Could you point me to some documentation re maven dependency triggered builds? We use TeamCity 7.1 and have issue triggering builds on snapshot dependencies. The build config shows the error "Unable to check for Maven dependency Update: Unknown host: repo1.maven.org" which obviously means it can't use the correct settings.xml. Please point me to some doc that explains where TC looks for the settings.xml
Thanks
Sunil
Please sign in to leave a comment.
Hello Sunil,
When performing checks for maven snapshot dependencies, TeamCity server looks for settings.xml in following locations:
For the global-level settings:
${env.M2_HOME}/conf/settings.xml (or ${system.maven.home}/conf/settings.xml)
For user-level settings (listed in order of priority):
1. ~/.BuildServer/system/pluginData/maven/settings.xml
2. ~/.m2/settings.xml
Here is the doc: http://confluence.jetbrains.com/display/TCD7/Maven+Support
Thanks,
We realized the settings.xml location should be ${TC_INSTANCE_DIR}/data/.BuildServer/system/pluginData/maven/settings.xml in our case.
Indeed, there is an error in our documentation. I will fix it asap. Thank you