3 Replies Last post: Mar 13, 2013 12:31 PM by Nikita Skvortsov  
SUNIL KUURAM Newbie 2 posts since
Feb 14, 2013
Currently Being Moderated

Feb 14, 2013 12:37 AM

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

Nikita Skvortsov JetBrains 171 posts since
Dec 21, 2010
Currently Being Moderated
Feb 14, 2013 12:59 PM in response to: SUNIL KUURAM
Re: Dependency triggered builds

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

Nikita Skvortsov JetBrains 171 posts since
Dec 21, 2010
Currently Being Moderated
Mar 13, 2013 12:31 PM in response to: SUNIL KUURAM
Re: Dependency triggered builds

Indeed, there is an error in our documentation. I will fix it asap. Thank you

More Like This

  • Retrieving data ...