[ 
https://jira.codehaus.org/browse/MNG-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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>
  <name>GNU GENERAL PUBLIC LICENSE</name>
  <url>http://www.gnu.org/copyleft/gpl.txt</url>
  <distribution>repo</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>
>     <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.

--
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

        

Reply via email to