You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jean-Philippe Steck (JIRA)" <ji...@codehaus.org> on 2007/12/11 10:13:57 UTC

[jira] Created: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

Resolved SNAPSHOT versions are overwritten
------------------------------------------

                 Key: MRELEASE-303
                 URL: http://jira.codehaus.org/browse/MRELEASE-303
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-8
            Reporter: Jean-Philippe Steck


When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.

Cause is : 

In this method : CheckDependencySnapshotsPhase.resolveSnapshots
Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );

This line overwrite the map of resolved snapshot of the releaseDescriptor : 

The newly resolved informations should be added to the existing map.
It should be smthg like : 

for (resolvedSnapshots ) {
  if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
    releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
}




-- 
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] (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MRELEASE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MRELEASE-303.
-----------------------------------

    Resolution: Duplicate
      Assignee: Robert Scholte

Duplicate of MRELEASE-589, already fixed in version 2.1
                
> Resolved SNAPSHOT versions are overwritten
> ------------------------------------------
>
>                 Key: MRELEASE-303
>                 URL: https://jira.codehaus.org/browse/MRELEASE-303
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0-beta-8
>            Reporter: Jean-Philippe Steck
>            Assignee: Robert Scholte
>
> When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.
> Cause is : 
> In this method : CheckDependencySnapshotsPhase.resolveSnapshots
> Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );
> This line overwrite the map of resolved snapshot of the releaseDescriptor : 
> The newly resolved informations should be added to the existing map.
> It should be smthg like : 
> for (resolvedSnapshots ) {
>   if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
>     releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
> }

--
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] Commented: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

Posted by "Noel Keating (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=172430#action_172430 ] 

Noel Keating commented on MRELEASE-303:
---------------------------------------

I have added a patch to MRELEASE-317 that corrects the problem outlined by Joerg Schaible above.

> Resolved SNAPSHOT versions are overwritten
> ------------------------------------------
>
>                 Key: MRELEASE-303
>                 URL: http://jira.codehaus.org/browse/MRELEASE-303
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0-beta-8
>            Reporter: Jean-Philippe Steck
>
> When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.
> Cause is : 
> In this method : CheckDependencySnapshotsPhase.resolveSnapshots
> Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );
> This line overwrite the map of resolved snapshot of the releaseDescriptor : 
> The newly resolved informations should be added to the existing map.
> It should be smthg like : 
> for (resolvedSnapshots ) {
>   if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
>     releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
> }

-- 
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: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier updated MRELEASE-303:
-------------------------------------

    Component/s: prepare

> Resolved SNAPSHOT versions are overwritten
> ------------------------------------------
>
>                 Key: MRELEASE-303
>                 URL: http://jira.codehaus.org/browse/MRELEASE-303
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0-beta-8
>            Reporter: Jean-Philippe Steck
>
> When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.
> Cause is : 
> In this method : CheckDependencySnapshotsPhase.resolveSnapshots
> Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );
> This line overwrite the map of resolved snapshot of the releaseDescriptor : 
> The newly resolved informations should be added to the existing map.
> It should be smthg like : 
> for (resolvedSnapshots ) {
>   if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
>     releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
> }

-- 
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: (MRELEASE-303) Resolved SNAPSHOT versions are overwritten

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_121732 ] 

Joerg Schaible commented on MRELEASE-303:
-----------------------------------------

This problem is not only major, it is a blocker. I just released an artifact where I was asked for the proper version of the SNAPSHOT parent, but the given value was simply ignored and the release contained still the parent POM as SNAPSHOT version, making the complete release invalid!

> Resolved SNAPSHOT versions are overwritten
> ------------------------------------------
>
>                 Key: MRELEASE-303
>                 URL: http://jira.codehaus.org/browse/MRELEASE-303
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-8
>            Reporter: Jean-Philippe Steck
>
> When running release:prepare on a parent-child projet, I'm asked to resolved the SNAPSHOT version but some of my answers are ignored.
> Cause is : 
> In this method : CheckDependencySnapshotsPhase.resolveSnapshots
> Lig 367 : releaseDescriptor.setResolvedSnapshotDependencies( resolvedSnapshots );
> This line overwrite the map of resolved snapshot of the releaseDescriptor : 
> The newly resolved informations should be added to the existing map.
> It should be smthg like : 
> for (resolvedSnapshots ) {
>   if (! eleaseDescriptor.getResolvedSnapshotDependencies().contains(key))
>     releaseDescriptor.getResolvedSnapshotDependencies().put(resolvedSnapshots.key, resolvedSnapshots .value)
> }

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