You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Joerg Schaible (JIRA)" <ji...@codehaus.org> on 2006/05/11 09:29:40 UTC
[jira] Created: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Newer SNAPSHOT parents in the remote repository are ignored
-----------------------------------------------------------
Key: MNG-2289
URL: http://jira.codehaus.org/browse/MNG-2289
Project: Maven 2
Type: Bug
Components: Inheritence and Interpolation
Versions: 2.0.4
Reporter: Joerg Schaible
Priority: Critical
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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-2289:
-------------------------------
Fix Version/s: 2.0.6
> 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.4
> Reporter: Joerg Schaible
> Assigned To: Brett Porter
> Priority: Critical
> Fix For: 2.0.6
>
> 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:
> {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.
--
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
[jira] Reopened: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl reopened MNG-2289:
--------------------------------
Assignee: Jason van Zyl (was: Brett Porter)
> 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
> Assigned To: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.6
>
> 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:
> {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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-2289:
-------------------------------
Patrick and I cannot not reproduce this Jorg, so we're going to mark can't reproduce. Unless you want to take a look at the IT we whipped up and see if you can.
> 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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Patrick Schneider (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98336 ]
Patrick Schneider commented on MNG-2289:
----------------------------------------
I was using 2.0.6.
> 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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Federico (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=comments#action_66485 ]
Federico commented on MNG-2289:
-------------------------------
Hi,
we have the same problem when using the following configuration in our POM:
<snapshotRepository>
<id>internalRepo</id>
<name>our company internal repo</name>
<url>ftp://maven.xxx.xxx/opt/repository/maven</url>
<!-- uniqueVersion == false is needed to upload snapshots releases
without changing fileName to timestamp+buildNumber.
All deployment will override the -SNAPSHOT files on the repo. -->
<uniqueVersion>false</uniqueVersion>
</snapshotRepository>
during deploy phase the -SNAPSHOT.jar on the server is overridden by the newer one and maven-metadata.xml is updated properly but when another client run maven (and has already the older version of the SNAPSHOT in its local repository) it doesn't download the newer pom and jar.
maven (with debug enabled says):
[DEBUG] Retrieving parent-POM: xxx:yyy::0.3.1-SNAPSHOT for project: xxx:zzz:jar:0.3.1-SNAPSHOT from the repository.
[DEBUG] yyy: using locally installed snapshot
if we run on the client maven with the -U option we get:
[DEBUG] Retrieving parent-POM: xxx:yyy::0.3.1-SNAPSHOT for project: xxx:yyy:jar:0.3.1-SNAPSHOT from the repository.
[INFO] snapshot xxx:yyy:0.3.1-SNAPSHOT: checking for updates from internalRepo
[INFO] snapshot xxx:yyy:0.3.1-SNAPSHOT: checking for updates from central
[DEBUG] repository metadata for: 'snapshot xxx:yyy:0.3.1-SNAPSHOT' could not be found on repository: central
[DEBUG] yyy: using locally installed snapshot
in both cases maven is not downloading the newest POM.
Another strange thing is that after looking in our internalRepo it still looks in the central repo if the metadata are there. Maven should have found metadata information in our internalRepo (infact it DOES NOT give out the error (repository metadata for: 'snapshot xxx:yyy:0.3.1-SNAPSHOT' could not be found on repository: internalRepo). It seems maven find the metadata on our repo but not consider it.
let me know if I can do some more test,
best regards,
Federico
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
> 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:
> {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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl updated MNG-2289:
-------------------------------
Affects Version/s: (was: 2.0.4)
2.0.5
> 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
> Assigned To: Jason van Zyl
> Priority: Critical
> Fix For: 2.0.6
>
> 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:
> {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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=all ]
Joerg Schaible updated MNG-2289:
--------------------------------
Attachment: mng2289.zip
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
> 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:
> {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.
--
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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Patrick Schneider (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98335 ]
Patrick Schneider commented on MNG-2289:
----------------------------------------
When I run the IT that Jason just committed (https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk/core-integration-tests/src/test/resources/MNG-2289/), I see commons-logging-1.0.2 pulled in after re-deployment of the parent SNAPSHOT, showing that the child does pick up the newer version. So, at least with this test, I'm not able to reproduce the problem.
> 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
[jira] Closed: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-2289.
-----------------------------
Resolution: Cannot Reproduce
> 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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Reopened: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter reopened MNG-2289:
-------------------------------
> 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
[jira] Closed: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=all ]
Brett Porter closed MNG-2289:
-----------------------------
Assign To: Brett Porter
Resolution: Duplicate
Fix Version: (was: 2.0.5)
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Assignee: Brett Porter
> Priority: Critical
> 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:
> {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.
--
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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Federico (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=comments#action_66483 ]
Federico commented on MNG-2289:
-------------------------------
Hi,
we have the same problem when using the following configuration in our POM:
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
> 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:
> {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.
--
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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88926 ]
Jason van Zyl commented on MNG-2289:
------------------------------------
I will check with Kenney because I think this was fixed in trunk and I'll backport it if necessary.
> 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.4
> Reporter: Joerg Schaible
> Assigned To: Brett Porter
> Priority: Critical
> Fix For: 2.0.6
>
> 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:
> {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.
--
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
[jira] Closed: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MNG-2289.
------------------------------
> 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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=comments#action_66211 ]
Carlos Sanchez commented on MNG-2289:
-------------------------------------
can you provide a test case in code, please?
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
>
>
> 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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Roger Butenuth (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=all ]
Roger Butenuth updated MNG-2289:
--------------------------------
Attachment: example.zip
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
> Attachments: example.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:
> {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.
--
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
[jira] Commented: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Roger Butenuth (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=comments#action_66153 ]
Roger Butenuth commented on MNG-2289:
-------------------------------------
The problem seems to be more general for me:
We use maven 2 to build a large project consisting of several modules.
Dependencies between modules are handled by the maven dependency
mechanism. During development, we want to use the SNAPSHOT feature
because we don't want to have an inflation of version numbers.
The problem: For me it looks like snapshots are never updated in the
local repository.
To track this down, I have done the following test:
1. Deploy "interface" to our central repository 2. Compile "client"
(which depends on "interface")
pom, jar and metadata are downloaded into local repository.
3. Increased version number and timestamp in the file
1.0-SNAPSHOT/maven-metadata.xml, recomputed checksums.
4. Run "mvn -U clean compile" on module "client".
This results in the following log:
[INFO] Scanning for projects...
[INFO]
--------------------------------------------------------------
--------------
[INFO] Building Client for the great calculator
[INFO] task-segment: [clean, compile]
[INFO]
--------------------------------------------------------------
--------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin:
checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-source-plugin:
checking for updates from central
[INFO] artifact
org.apache.maven.plugins:maven-surefire-plugin: checking for updates
from central [INFO] [clean:clean] [INFO] Deleting directory
c:\example\client\target [INFO] Deleting directory
c:\example\client\target\classes [INFO] Deleting directory
c:\example\client\target\test-classes
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
checking for updates from central [INFO] artifact
org.apache.maven.plugins:maven-compiler-plugin: checking for updates
from central [INFO] [source-download:download-sources {execution:
default}]
-----> [INFO] snapshot
de.sdm.calculator:interface:1.0-SNAPSHOT: checking for updates from
central <------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources. [INFO]
snapshot de.sdm.calculator:calculator-all:1.0-SNAPSHOT: checking for
updates from central [INFO] [compiler:compile] Compiling 1 source file
to c:\example\client\target\classes [INFO]
--------------------------------------------------------------
----------
[INFO] BUILD SUCCESSFUL
As you can see in the marked line, the check for updates is done.
Looking into ~/.m2/repository I can see even the new
maven-metadata-central.xml (new timestamp, new content), but the jar
is NOT updated from the server.
Is this intendented behaviour?
I can solve the problem by setting
<uniqueVersion>true</uniqueVersion> master pom of the project, but
this clobberes the local repositories of all users and the central
repository with lots of old versions.
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
>
>
> 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.
--
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
[jira] Updated: (MNG-2289) Newer SNAPSHOT parents in the remote
repository are ignored
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2289?page=all ]
Carlos Sanchez updated MNG-2289:
--------------------------------
Testcase included: yes
Fix Version: 2.0.5
> Newer SNAPSHOT parents in the remote repository are ignored
> -----------------------------------------------------------
>
> Key: MNG-2289
> URL: http://jira.codehaus.org/browse/MNG-2289
> Project: Maven 2
> Type: Bug
> Components: Inheritence and Interpolation
> Versions: 2.0.4
> Reporter: Joerg Schaible
> Priority: Critical
> Fix For: 2.0.5
> 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:
> {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.
--
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