[
http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason van Zyl updated MNG-2289:
-------------------------------
Description:
If a POM inherits from another one in the repository with a SNAPSHOT version,
it will only look into the local repository for it, but not in the remote
repositories.
E.g. if a POM has following parent:...
<parent>
<groupId>pom.maven</groupId>
<artifactId>super</artifactId>
<version>SNAPSHOT</version>
</parent>
...
it will not find a newer version of "pom.maven:super:SNAPSHOT" in a remote
repository.
was:
If a POM inherits from another one in the repository with a SNAPSHOT version,
it will only look into the local repository for it, but not in the remote
repositories.
E.g. if a POM has following parent:
{noformat}
...
<parent>
<groupId>pom.maven</groupId>
<artifactId>super</artifactId>
<version>SNAPSHOT</version>
</parent>
...
{noformat}
it will not find a newer version of "pom.maven:super:SNAPSHOT" in a remote
repository.
Joerg, do you want to check this out:
https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/MNG-2289
I tried to mimic your test and simplify it and it appears to be working. The
new parent POM is used and the updated dependency is used.
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Issue Type: Bug
> Components: Inheritance and Interpolation
> Affects Versions: 2.0.5
> Reporter: Joerg Schaible
> Assignee: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.7
>
> Attachments: example.zip, mng2289.zip
>
>
> If a POM inherits from another one in the repository with a SNAPSHOT version,
> it will only look into the local repository for it, but not in the remote
> repositories.
> E.g. if a POM has following parent:...
> <parent>
> <groupId>pom.maven</groupId>
> <artifactId>super</artifactId>
> <version>SNAPSHOT</version>
> </parent>
> ...
> it will not find a newer version of "pom.maven:super:SNAPSHOT" in a remote
> repository.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira