Teamcity can't find parent pom on Maven2 tab of the build configuration
<groupId>yudichea-sandbox</groupId>
<artifactId>parentpom</artifactId>
<version>1.0-DEV1-SNAPSHOT</version>
</parent>
<artifactId>library1</artifactId>
<version>1.0-DEV1-SNAPSHOT</version>
An error occurred during collecting Maven data: org.apache.maven.reactor.MavenExecutionException: Cannot find parent: yudichea-sandbox:parentpom for project: null:library1:jar:1.0-DEV1-SNAPSHOT for project null:library1:jar:1.0-DEV1-SNAPSHOT
Debug level log shows:
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Searching for parent-POM XX: yudichea-sandbox:parentpom:pom:1.0-DEV1-SNAPSHOT of project: null:library1:jar:1.0-DEV1-SNAPSHOT in relative path: ../pom.xml
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Parent-POM: yudichea-sandbox:parentpom:pom:1.0-DEV1-SNAPSHOT not found in relative path: ../pom.xml
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Retrieving parent-POM XXX: yudichea-sandbox:parentpom:pom:1.0-DEV1-SNAPSHOT for project: null:library1:jar:1.0-DEV1-SNAPSHOT from the repository.
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Skipping disabled repository central
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] parentpom: using locally installed snapshot
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Skipping disabled repository central
[2011-08-31 10:22:25,878] DEBUG - ven.DefaultMavenEmbedderLogger - [Maven DEBUG] Using mirror: http://LDNDSM030000637:8889/archiva/repository/all (id: default)
[2011-08-31 10:22:25,878] WARN - impl.MavenMetadataProviderImpl - Error generating Maven metadata for build configuration Maven2 Migration Experiments Dev1 :: library1 {id=bt297}: org.apache.maven.reactor.MavenExecutionException: Cannot find parent: yudichea-sandbox:parentpom for project: null:library1:jar:1.0-DEV1-SNAPSHOT for project null:library1:jar:1.0-DEV1-SNAPSHOT
[2011-08-31 10:22:25,878] DEBUG - impl.MavenMetadataProviderImpl - jetbrains.buildServer.maven.MavenException: org.apache.maven.reactor.MavenExecutionException: Cannot find parent: yudichea-sandbox:parentpom for project: null:library1:jar:1.0-DEV1-SNAPSHOT for project null:library1:jar:1.0-DEV1-SNAPSHOT
The yudichea-sandbox:parentpom is installed locally and also available from http://fiptcw:8889/archiva/repository/all/yudichea-sandbox/parentpom/1.0-DEV1-SNAPSHOT/ so I am confused why TC is not finding it.
What else can I do?
Please sign in to leave a comment.
Hi Alexey
Probably TeamCity wasn't looking into the proper settings.xml.
Please see http://confluence.jetbrains.net/display/TCD65/Maven+Support for the details