Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.3
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: Inheritance and Interpolation, POM, Reactor and workspace
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
It would be great if Maven supports version ranges when specifying parent artifacts in a multi-module build. Currently this does not work.
<parent>
<artifactId>artifactId</artifactId>
<groupId>groupId</groupId>
<version>[2.0, 2.0.1]</version>
</parent>
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 2.0.1]/artifactId-[2.0, 2.0.1].pom
Additionally it would be great if this
<parent>
<artifactId>artifactId</artifactId>
<groupId>groupId</groupId>
<version>[2.0, ${pom.version}]</version>
</parent>
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, ${pom.version}]/artifactId-[2.0, ${pom.version}].pom
would also work, if the version is specified in the same pom.xml which defines this parent definition.
Issue Links
| This issue relates to: | ||||
| MNG-624 | automatic parent versioning |
|
|
|
tempting to 'close - won't fix'.
Whatever parent pom is present in the local repo will be used, resulting in a different effective pom on different systems.
This'll be the cause of all sorts of problems.