Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.1.1
-
None
-
None
Description
In the attached project find a sample which causes Maven to fail when resolving POM imports. The property ${project.groupId} is resolved incorrectly when
- the imported modules have a different groupId
- the imported POMs come from a submodule where one submodule containing a BOM POM has another groupId
The groupIds of all other POM imports are changed to the groupId of the third BOM.
Console output:
$ mvn install [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.mycompany.myproject.submodule:other-extension:1.0-SNAPSHOT (C:\dev\myproject\other-extension\pom.xml) has 2 errors [ERROR] Non-resolvable import POM: Failure to find com.mycompany.myproject.submodule:bom-1:pom:1.0-SNAPSHOT in http://repository-build.coremedia.com/nexus/content/repositories/snapshots.licenses/ was cached in the local repository, resolution will not be reattempted until the update interval of coremedia.internal.licenses has elapsed or updates are forced @ com.mycompany.myproject:myroot:1.0-SNAPSHOT, C:\dev\myproject\pom.xml, line 19, column 19 -> [Help 2] [ERROR] Non-resolvable import POM: Failure to find com.mycompany.myproject.submodule:bom-2:pom:1.0-SNAPSHOT in http://repository-build.coremedia.com/nexus/content/repositories/snapshots.licenses/ was cached in the local repository, resolution will not be reattempted until the update interval of coremedia.internal.licenses has elapsed or updates are forced @ com.mycompany.myproject:myroot:1.0-SNAPSHOT, C:\dev\myproject\pom.xml, line 26, column 19 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Attachments
Attachments
Issue Links
- relates to
-
MNG-5900 early interpolation: support ${this.*} as expression
- Open