Teamcity can't find parent pom on Maven2 tab of the build configuration

This issue is very similar to http://devnet.jetbrains.net/message/5273597, however the root cause appears to be different and happens with TC 6 as opposed to TC 5.
TeamCity Enterprise Version 6.0.1 (build 15816). Maven version used is 2.2.1. Build configuration "library1" has pom's main section looking like this:
    <parent>
        <groupId>yudichea-sandbox</groupId>
        <artifactId>parentpom</artifactId>
        <version>1.0-DEV1-SNAPSHOT</version>
    </parent>
    <artifactId>library1</artifactId>
    <version>1.0-DEV1-SNAPSHOT</version>
When clicking on the Maven2 tab of the build configuration, the following error is displayed.

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?

1 comment
Comment actions Permalink

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

0

Please sign in to leave a comment.