[jira] (MNG-2199) Version ranges not supported for parent artifacts

2014-06-13 Thread Jason van Zyl (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason van Zyl updated MNG-2199:
---

Assignee: Jason van Zyl

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
Assignee: Jason van Zyl
 Fix For: Issues to be reviewed for 4.x

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2014-06-13 Thread Herve Boutemy (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated MNG-2199:
---

Description: 
It would be great if Maven supports version ranges when specifying parent 
artifacts in a multi-module build. Currently this does not work.

{code:xml}  parent
artifactIdartifactId/artifactId
groupIdgroupId/groupId
version[2.0, 2.0.1]/version
  /parent{code}

{noformat}[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 
2.0.1]/artifactId-[2.0, 2.0.1].pom{noformat}

Additionally it would be great if this

{code:xml}  parent
artifactIdartifactId/artifactId
groupIdgroupId/groupId
version[2.0, ${pom.version}]/version
  /parent{code}

{noformat}[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 
${pom.version}]/artifactId-[2.0, ${pom.version}].pom{noformat}

would also work, if the version is specified in the same pom.xml which defines 
this parent definition.

  was:
It would be great if Maven supports version ranges when specifying parent 
artifacts in a multi-module build. Currently this does not work.

  parent
artifactIdartifactId/artifactId
groupIdgroupId/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
artifactIdartifactId/artifactId
groupIdgroupId/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.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
Assignee: Jason van Zyl
 Fix For: Issues to be reviewed for 4.x

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
 {code:xml}  parent
 artifactIdartifactId/artifactId
 groupIdgroupId/groupId
 version[2.0, 2.0.1]/version
   /parent{code}
 {noformat}[INFO] Scanning for projects...
 Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 
 2.0.1]/artifactId-[2.0, 2.0.1].pom{noformat}
 Additionally it would be great if this
 {code:xml}  parent
 artifactIdartifactId/artifactId
 groupIdgroupId/groupId
 version[2.0, ${pom.version}]/version
   /parent{code}
 {noformat}[INFO] Scanning for projects...
 Downloading: http://repo1.maven.org/maven2/groupId/artifactId/[2.0, 
 ${pom.version}]/artifactId-[2.0, ${pom.version}].pom{noformat}
 would also work, if the version is specified in the same pom.xml which 
 defines this parent definition.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2014-06-12 Thread Jason van Zyl (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=347912#comment-347912
 ] 

Jason van Zyl commented on MNG-2199:


I was looking at this patch this week but there are no tests. If you create a 
pull request on Github for the core, and a pull request for the integration 
tests and everything passes I will process this patch. For reference you may 
want to take a look at : 
http://takari.io/2014/06/02/contributing-to-maven-core.html

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 4.x

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2014-01-07 Thread Stephen Connolly (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Connolly updated MNG-2199:
--

Fix Version/s: (was: 3.2)
   Issues to be reviewed for 4.x

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 4.x

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2013-07-28 Thread Jason van Zyl (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason van Zyl updated MNG-2199:
---

Fix Version/s: (was: 3.1.1)
   3.1.2

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: 3.1.2

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2013-06-05 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199-3.1.0-alpha-1.patch

Patch for Maven 3.1.0-alpha-1. Final version.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: 3.1.1

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199-3.1.0-alpha-1.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2013-05-05 Thread Benjamin Busjaeger (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=324686#comment-324686
 ] 

Benjamin Busjaeger edited comment on MNG-2199 at 5/5/13 5:45 PM:
-

I believe version ranges in parent POMs should be supported, because they 
enable an important usage pattern of maven.

I understand the argument for keeping the parent version a fixed quantity. It 
makes it possible to store the build repository URL in the parent POM, thus 
eliminating the need for an external settings file. This makes builds 
self-contained and reproducible.

However, I would argue that this pattern only works well for small maven 
projects, because it has several implications. First, it implies that whenever 
the parent POM version is updated, all POMs referencing it must be updated as 
well with the new version. This greatly reduces the ability to do partial 
builds, because each time the parent changes all projects referencing it change 
as well. Second, assuming the parent POM contains the repository URL, it must 
always be checked out along with the remaining source code. In large 
multi-module projects developers may only check out the part of the source tree 
that's relevant to them. Finally, it assumes developers actually update the 
parent version when they make a change. If they forget to do it, CI builds that 
perform the deployment will fail, because the parent versions already exist. In 
large, loosely-coupled development organization such an assumption cannot be 
made.

Using version ranges in parent references along with the following usage 
pattern can alleviate this problem:
- store each parent version in a separate repository
- point to the parent repository in the settings file
- whenever going to an older source version, delete cached parent artifact in 
./m2

Note that the parent repository URL in the settings file could be derived from 
the current source version to keep builds reproducible. The process can also be 
automated to ease the burden on developers. Furthermore, since the parent 
references specify ranges, the CI system can automatically append a unique (and 
increasing) qualifier when deploying the parent to eliminate the assumption 
that developers will update the parent version.

Now it could be argued that in development parent references should use 
snapshot versions. Apart from the fact that snapshot version have their own 
issues when it comes to large-scale projects, this argument would be 
self-contradicting in this context, since snapshots are version ranges of the 
form version-[beginning of time, end of time].

  was (Author: busjaeger):
I believe version ranges in parent POMs should be supported, because they 
enable an important usage pattern of maven.

I understand the argument for keeping the parent version a fixed quantity. It 
makes it possible to store the build repository URL in the parent POM, thus 
eliminating the need for an external settings file. This makes builds 
self-contained and reproducible.

However, I would argue that this pattern only works well for small maven 
projects, because it has several implications. First, it implies that whenever 
the parent POM version is updated, all POMs referencing it must be updated as 
well with the new version. This greatly reduces the ability to do partial 
builds, because each time the parent changes all projects referencing it change 
as well. Second, assuming the parent POM contains the repository URL, it must 
always be checked out along with the remaining source code. In large 
multi-module projects developers may only check out the part of the source tree 
that's relevant to them. Finally, it assumes developers actually update the 
parent version when they make a change. If they forget to do it, CI builds that 
perform the deployment will fail, because the parent versions already exist. In 
large, loosely-coupled development organization such an assumption cannot be 
made.

Using version ranges in parent references along with the following usage 
pattern can alleviate this problem:
- store each parent version in a separate repository
- point to the parent repository in the settings file
- whenever going to an older source version, delete cached parent artifact in 
./m2

Note that the parent repository URL in the settings file could be derived from 
the current source version to keep builds reproducible. The process can also be 
automated to ease the burden on developers. Furthermore, since the parent 
references specify ranges, the CI system can automatically append a unique (and 
increasing) qualifier when deploying the parent to eliminate the assumption 
that developers will update the parent version.

Now it could be argued that in development parent references should use 
snapshot versions. Apart from the fact that snapshot version have their own 
issues when it 

[jira] (MNG-2199) Version ranges not supported for parent artifacts

2013-05-04 Thread Benjamin Busjaeger (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=324686#comment-324686
 ] 

Benjamin Busjaeger commented on MNG-2199:
-

I believe version ranges in parent POMs should be supported, because they 
enable an important usage pattern of maven.

I understand the argument for keeping the parent version a fixed quantity. It 
makes it possible to store the build repository URL in the parent POM, thus 
eliminating the need for an external settings file. This makes builds 
self-contained and reproducible.

However, I would argue that this pattern only works well for small maven 
projects, because it has several implications. First, it implies that whenever 
the parent POM version is updated, all POMs referencing it must be updated as 
well with the new version. This greatly reduces the ability to do partial 
builds, because each time the parent changes all projects referencing it change 
as well. Second, assuming the parent POM contains the repository URL, it must 
always be checked out along with the remaining source code. In large 
multi-module projects developers may only check out the part of the source tree 
that's relevant to them. Finally, it assumes developers actually update the 
parent version when they make a change. If they forget to do it, CI builds that 
perform the deployment will fail, because the parent versions already exist. In 
large, loosely-coupled development organization such an assumption cannot be 
made.

Using version ranges in parent references along with the following usage 
pattern can alleviate this problem:
- store each parent version in a separate repository
- point to the parent repository in the settings file
- whenever going to an older source version, delete cached parent artifact in 
./m2

Note that the parent repository URL in the settings file could be derived from 
the current source version to keep builds reproducible. The process can also be 
automated to ease the burden on developers. Furthermore, since the parent 
references specify ranges, the CI system can automatically append a unique (and 
increasing) qualifier when deploying the parent to eliminate the assumption 
that developers will update the parent version.

Now it could be argued that in development parent references should use 
snapshot versions. Apart from the fact that snapshot version have their own 
issues when it comes to large-scale projects, this argument would be 
self-contracting in this context, since snapshots are version ranges of the 
form version-[beginning of time, end of time].

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: 3.1.1

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-11-19 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199-3.0.4.patch
MNG-2199.patch

Updated patches to handle unavailable versions for a given range.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: 3.1.1

 Attachments: MNG-2199-3.0.4.patch, MNG-2199-3.0.4.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-11-12 Thread Jason van Zyl (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason van Zyl updated MNG-2199:
---

Fix Version/s: (was: Issues to be reviewed for 3.x)
   3.1.1

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: 3.1.1

 Attachments: MNG-2199-3.0.4.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-10-23 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199.patch

Updated patch (class 'org.apache.maven.project.MavenProject' needed updating to 
also allow parent version ranges.)

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-10-23 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199-3.0.4.patch

Patch for Maven 3.0.4.

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199-3.0.4.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-19 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199.patch

Updated the patch to additionally validate a 'version' to not use expressions.

{code}
Script started on Wed Sep 19 08:32:30 2012
$ cat pom.xml

project
  parent
groupIdorg.apache/groupId
artifactIdapache/artifactId
version[,11]/version
  /parent
  modelVersion4.0.0/modelVersion
  artifactIdmng2199/artifactId
  packagingjar/packaging
/project
$ mvn clean

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project - [Help 1]
[ERROR]   
[ERROR]   The project org.apache:mng2199:11 (/tmp/mng2199/pom.xml) has 1 error
[ERROR] 'version' must be a constant. @ 
org.apache:mng2199:[unknown-version], /tmp/mng2199/pom.xml, line 2, column 11
[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
$ ^D


Script done on Wed Sep 19 08:32:42 2012
{code}

{code}
Script started on Wed Sep 19 08:33:36 2012
$ cat pom.xml

project
  parent
groupIdorg.apache/groupId
artifactIdapache/artifactId
version[,11]/version
  /parent
  modelVersion4.0.0/modelVersion
  artifactIdmng2199/artifactId
  packagingjar/packaging
  version1.0-${expression}-SNAPSHOT/version
/project
$ mvn clean

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project - [Help 1]
[ERROR]   
[ERROR]   The project org.apache:mng2199:1.0-${expression}-SNAPSHOT 
(/tmp/mng2199/pom.xml) has 1 error
[ERROR] 'version' contains an expression but must be a constant. @ line 2, 
column 11
[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
$ ^D


Script done on Wed Sep 19 08:33:47 2012
{code}


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch, MNG-2199.patch, 
 MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199.patch

Initial patch adding support for the requested feature.

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199.patch

Updated patch.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Paul Benedict (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308865#comment-308865
 ] 

Paul Benedict commented on MNG-2199:


I don't think parent versions should act like dependency versions. The parent 
should be a known quantity and not subject to environmental changes.

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Paul Benedict (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Benedict updated MNG-2199:
---

Issue Type: Wish  (was: Bug)

Changing issue type from Bug to Wish

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Christian Schulte (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308872#comment-308872
 ] 

Christian Schulte commented on MNG-2199:


[Super-POM 
History|http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?view=log]

- [use proper 
CNAME|http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?r1=1155270r2=1160922diff_format=h]
- [going back to assembly beta-1 as there is an important regression in 
assembly:attached|http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?r1=639019r2=639744diff_format=h]
- [try using repo1 again to see if it avoids the 503 
errors|http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?r1=320991r2=326009diff_format=h]
- [change main repo until we stabilise 
maven.org|http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?r1=292103r2=320693diff_format=h]


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-18 Thread Christian Schulte (JIRA)

 [ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schulte updated MNG-2199:
---

Attachment: MNG-2199.patch

Updated the patch one more time. This patch adds support for

{code}
parent
  groupIdgid/groupId
  artifactIdaid/artifactId
  versionMaven version range syntax, e.g. [1.0, 2.0)/version
/parent
{code}

It will fail the build whenever a child references a parent that way without 
defining a version. Error message would be: 'Child POM 
gid:aid:[unknown-version] cannot inherit version [1.0,2.0) from parent. Must 
define a version explicitly.'

One thing I would want this patch to do additionally, is validation of the 
version ranges in use. I did not find methods at interface 
'org.sonatype.aether.version.VersionRange' to allow querying for 'isBounded' / 
'isUpperBounded' / 'isLowerBounded' which would be needed for this.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Wish
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x

 Attachments: MNG-2199.patch, MNG-2199.patch, MNG-2199.patch


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-17 Thread Christian Schulte (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308736#comment-308736
 ] 

Christian Schulte commented on MNG-2199:


6 years after creating this issue, I still think it would be helpful to have 
this supported. For example:

The server name of a repository changes.
  = All POMs of all artifacts in the repository are broken and point to a 
non-existing repository.
  = need to re-release all artifacts
  = new artifact versions
  = everyone must update everything
  = at least one full release-cycle wasted

One might say that this kind of problem can be avoided by not adding 
repositories to the POM. If you think about that, this just ends in every 
environmental property being moved out into settings.xml or somewhere else. 
That just leads to non-determinism as well.

Executing 'mvn release:prepare' on a years old tag should work without touching 
anything else. It would be non-determinism if this would stop working a few 
years later, no ?


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-17 Thread Christian Schulte (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308736#comment-308736
 ] 

Christian Schulte edited comment on MNG-2199 at 9/17/12 11:55 AM:
--

6 years after creating this issue, I still think it would be helpful to have 
this supported. For example:

The server name of a repository changes.
  = All POMs of all artifacts in the repository are broken and point to a 
non-existing repository.
  = need to re-release all artifacts
  = new artifact versions
  = everyone must update everything
  = at least one full release-cycle wasted

One might say that this kind of problem can be avoided by not adding 
repositories to the POM. If you think about that, this just ends in every 
environmental property being moved out into settings.xml or somewhere else. 
That just leads to non-determinism as well.

Executing 'mvn release:prepare' on a years old tag should work without touching 
anything else. It would be non-determinism if this would stop working a few 
years later, no ?

The version range is very important here due to the ability to declare an upper 
bound. I am not requesting to 'just use the latest parent' but to use the 
latest parent from a range (of compatible parent POMs).


  was (Author: schulte2005):
6 years after creating this issue, I still think it would be helpful to 
have this supported. For example:

The server name of a repository changes.
  = All POMs of all artifacts in the repository are broken and point to a 
non-existing repository.
  = need to re-release all artifacts
  = new artifact versions
  = everyone must update everything
  = at least one full release-cycle wasted

One might say that this kind of problem can be avoided by not adding 
repositories to the POM. If you think about that, this just ends in every 
environmental property being moved out into settings.xml or somewhere else. 
That just leads to non-determinism as well.

Executing 'mvn release:prepare' on a years old tag should work without touching 
anything else. It would be non-determinism if this would stop working a few 
years later, no ?

  
 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-17 Thread Christian Schulte (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308736#comment-308736
 ] 

Christian Schulte edited comment on MNG-2199 at 9/17/12 12:38 PM:
--

6 years after creating this issue, I still think it would be helpful to have 
this supported. For example:

The server name of a repository changes.
  = All POMs of all artifacts in the repository are broken and point to a 
non-existing repository.
  = need to re-release all artifacts
  = new artifact versions
  = everyone must update everything
  = at least one full release-cycle wasted

One might say that this kind of problem can be avoided by not adding 
repositories to the POM. If you think about that, this just ends in every 
environmental property being moved out into settings.xml or somewhere else. 
That just leads to non-determinism as well.

Executing 'mvn release:prepare' on a years old tag should work without touching 
anything else. It would be non-determinism if this would stop working a few 
years later, no ?

The version range is very important here due to the ability to declare an upper 
bound. I am not requesting to 'just use the latest parent' but to use the 
latest parent from a range (of compatible parent POMs).

During model building, if a POM contains a 'parent' element using a version 
range:
=validate that range has an upper bound and fail the build if unbounded
=load the latest parent from that range
=validate the latest parent does not define any 'modules' - fail the build if 
it does (maybe use some other information to validate the POM here - a new 
packaging used to flag a POM to be used that way e.g.)
=use that parent


  was (Author: schulte2005):
6 years after creating this issue, I still think it would be helpful to 
have this supported. For example:

The server name of a repository changes.
  = All POMs of all artifacts in the repository are broken and point to a 
non-existing repository.
  = need to re-release all artifacts
  = new artifact versions
  = everyone must update everything
  = at least one full release-cycle wasted

One might say that this kind of problem can be avoided by not adding 
repositories to the POM. If you think about that, this just ends in every 
environmental property being moved out into settings.xml or somewhere else. 
That just leads to non-determinism as well.

Executing 'mvn release:prepare' on a years old tag should work without touching 
anything else. It would be non-determinism if this would stop working a few 
years later, no ?

The version range is very important here due to the ability to declare an upper 
bound. I am not requesting to 'just use the latest parent' but to use the 
latest parent from a range (of compatible parent POMs).

  
 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-09-17 Thread Christian Schulte (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=308770#comment-308770
 ] 

Christian Schulte commented on MNG-2199:


Another example. Consider I have been using a parent POM containing the 
following information.

{code}
license
  nameGNU GENERAL PUBLIC LICENSE/name
  urlhttp://www.gnu.org/copyleft/gpl.txt/url
  distributionrepo/distribution
/license
{code}

As you may know, the content that URL points at changed from GPL 2.1 to GPL 3 a 
few years ago. If I want already deployed artifacts to stay at GPL 2.1, I 
cannot do anything about it. Releasing a new parent for all those artifacts 
would let me deal with this. Note that for this example I would want this 
feature to keep the artifacts from silently changing the referenced license 
text.

Not putting that URL into the POM would have avoided the situation, of course. 
You cannot predict the future, however.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-07-06 Thread Milos Kleint (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=302916#comment-302916
 ] 

Milos Kleint commented on MNG-2199:
---

+ on on wontfix as well. Any non-determinism in parent coordinates makes 
repository content fluid which is a bad thing IMHO.

 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2012-06-29 Thread Venkata (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=302262#comment-302262
 ] 

Venkata commented on MNG-2199:
--

Are there plans to address this ticket in near future?

I think we are missing a big step towards adding build reliability across build 
servers, esp. in a big organization where different teams have their own 
build/CI boxes.

Thanks.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] (MNG-2199) Version ranges not supported for parent artifacts

2011-12-29 Thread Dariusz Czerski (JIRA)

[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=287101#comment-287101
 ] 

Dariusz Czerski commented on MNG-2199:
--

It would be very helpful to have a support for specifying parent artifacts 
version by a property.

parent
artifactIdartifactId/artifactId
groupIdgroupId/groupId
version${pom.version}/version
/parent

This feature opens a possibility to create real centralized dependency 
management system for multi-project enviroment.
All dependency versions can be keep as parameters (with names in some 
convention) in special parent project.
Each project defines versions of their dependencies with such a parameters.
Something like this:

dependency
artifactIdartifactId/artifactId
groupIdgroupId/groupId
version${artifactId.groupId.version}/version
/dependency

Then, just by changing value of pom.version, we can automatically change a 
whole calasspath of all project in the system.
It is very helpful for managing backward compatibility changes.
Of course, the parent project is subject to the normal versioning, it's version 
changes each time when the new version of some project appear.


 Version ranges not supported for parent artifacts
 -

 Key: MNG-2199
 URL: https://jira.codehaus.org/browse/MNG-2199
 Project: Maven 2  3
  Issue Type: Bug
  Components: Inheritance and Interpolation, POM, Reactor and workspace
Affects Versions: 2.0.3
Reporter: Christian Schulte
 Fix For: Issues to be reviewed for 3.x


 It would be great if Maven supports version ranges when specifying parent 
 artifacts in a multi-module build. Currently this does not work.
   parent
 artifactIdartifactId/artifactId
 groupIdgroupId/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
 artifactIdartifactId/artifactId
 groupIdgroupId/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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira