Parent Version range resolve error
Hello. Maven Builder Agent can't resolve parent with version range even with relativePath
I'm using latest maven version and teamcity.
<parent>
<groupId>ru.mycompany</groupId>
<artifactId>my-project</artifactId>
<version>[1.0.0, 2.0.0)</version>
<relativePath>../my-project-parent</relativePath>
</parent>
Similar error is occurring when maven version less than 3.2.2 (started supporting parent version range)
[15:13:06]Error reading Maven project: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM ru.mycompany:my-project-parent:[1.0.0, 2.0.0): No versions matched the requested range '[1.0.0, 2.0.0)' and 'parent.relativePath' points at wrong local POM @ line 8, column 13 .
[15:13:06]TeamCity is unable to read Maven project. Some features may be unavailable
[15:13:07]Process exited with code 1
Any idea ?
Please sign in to leave a comment.
Hi,
well, the error seems to indicate that 1.0.0-2.0.0 is not available, so this will be the first assumption, that it doesn't exist. I assume that you will have made sure it's available, so please follow the steps here for debugging it: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity
Also consider forcing to a maven version where it should work. Have you tried forcing a newer one and seeing whether it works?