You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcel Schutte (JIRA)" <ji...@codehaus.org> on 2006/04/13 17:52:48 UTC

[jira] Created: (MRELEASE-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
----------------------------------------------------------------------------------------------------

         Key: MRELEASE-91
         URL: http://jira.codehaus.org/browse/MRELEASE-91
     Project: Maven 2.x Release Plugin
        Type: Bug

    Versions: 2.0-beta-4    
 Environment: maven 2.0.4, win XP
    Reporter: Marcel Schutte
 Attachments: release.patch

The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.

A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.

The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.

Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.

A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Marcel Schutte (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_65798 ] 

Marcel Schutte commented on MRELEASE-91:
----------------------------------------

See my original comment for this issue. There is an inconsistency between handling of normal dependencies and dependencies in dependencymanagement. I would still be OK with a configuration switch to control the updating. I am not OK with this inconsistency.

I don't agree with your statement that the point of releases is to move away from snapshots. As far as I know, the maven philosophy is to work on snapshots and to release fixed versions. This works very well for my usecase: a parent project that lists all dependencies and their versions in a dependencymanagement section. Fixed versions for modules external to my application and snapshots for dependencies that make up my application (ear, ejbs, wars and sometimes utility jars). The release plugin can tag and build them together with fixed versions and then increment to the next development snapshot version.


> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Marcel Schutte (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Marcel Schutte updated MRELEASE-91:
-----------------------------------

    Attachment: depmgnt.zip

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_65793 ] 

Mike Perham commented on MRELEASE-91:
-------------------------------------

Personally I believe that a reference to 1.0-SNAPSHOT should be incremented to 1.0 with the release but should NEVER be incremented to 1.1-SNAPSHOT.  The whole point of releases is to move away from snapshots and rely on solid releases.  Moving from a release to a snapshot dependency is something that should be determined by the developer, not Maven.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Fabian Bauschulte (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_74061 ] 
            
Fabian Bauschulte commented on MRELEASE-91:
-------------------------------------------

I had the same problem and have tried the patch. I works fine for me.   

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-91
>                 URL: http://jira.codehaus.org/browse/MRELEASE-91
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: maven 2.0.4, win XP
>            Reporter: Marcel Schutte
>         Assigned To: Brett Porter
>             Fix For: 2.0-beta-4
>
>         Attachments: changes.xml, depmgnt.zip, MRELEASE-91.patch, MRELEASE-91.patch-2, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Olivier Lamy updated MRELEASE-91:
---------------------------------

    Attachment: changes.xml
                rewriting-dev-phase.apt
                MRELEASE-91.patch-2

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: MRELEASE-91.patch, MRELEASE-91.patch-2, changes.xml, depmgnt.zip, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Jason van Zyl updated MRELEASE-91:
----------------------------------

    Assignee: Jason van Zyl  (was: Brett Porter)

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-91
>                 URL: http://jira.codehaus.org/browse/MRELEASE-91
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: maven 2.0.4, win XP
>            Reporter: Marcel Schutte
>         Assigned To: Jason van Zyl
>             Fix For: 2.0-beta-5
>
>         Attachments: changes.xml, depmgnt.zip, MRELEASE-91.patch, MRELEASE-91.patch-2, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Brett Porter updated MRELEASE-91:
---------------------------------

    Fix Version/s:     (was: 2.0-beta-4)
                   2.0-beta-5

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-91
>                 URL: http://jira.codehaus.org/browse/MRELEASE-91
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: maven 2.0.4, win XP
>            Reporter: Marcel Schutte
>         Assigned To: Brett Porter
>             Fix For: 2.0-beta-5
>
>         Attachments: changes.xml, depmgnt.zip, MRELEASE-91.patch, MRELEASE-91.patch-2, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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: (MRELEASE-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

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

Emmanuel Venisse closed MRELEASE-91.
------------------------------------

      Assignee: Emmanuel Venisse  (was: Jason van Zyl)
    Resolution: Fixed

Already fixed.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-91
>                 URL: http://jira.codehaus.org/browse/MRELEASE-91
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: maven 2.0.4, win XP
>            Reporter: Marcel Schutte
>            Assignee: Emmanuel Venisse
>             Fix For: 2.0-beta-5
>
>         Attachments: changes.xml, depmgnt.zip, MRELEASE-91.patch, MRELEASE-91.patch-2, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_65796 ] 

Brett Porter commented on MRELEASE-91:
--------------------------------------

yes, this is a bug.

Mike - the reason they should be incremented is because it is a reactor project. It doesn't update any external dependencies.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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: (MRELEASE-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]
     
Brett Porter closed MRELEASE-91:
--------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Olivier Lamy updated MRELEASE-91:
---------------------------------

    Attachment: MRELEASE-91.patch

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: MRELEASE-91.patch, depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_65805 ] 

Mike Perham commented on MRELEASE-91:
-------------------------------------

Marcel, I agree the inconsistency should be fixed and I would be fine with a configuration variable or switch.  Let me explain my reasoning on the updating.  Assume a 1.0-SNAPSHOT parent and a 1.0-SNAPSHOT modules A and B where B depends on module A 1.0-SNAPSHOT.  You can release the parent and Maven will release version 1.0 of all three: parent, A and B.  Now B 1.0 should depend on A 1.0.  The question is should B 1.1-SNAPSHOT depend on A 1.1-SNAPSHOT or A 1.0?  I believe that it should depend on the latter because nothing has changed in A yet.  That why I said the developer should make the call to rev the version of A in B's pom.

Now a related question is what is your release process?  You seem to be indicating that you release the top-level parent and everything beneath every time.  I think this is suboptimal as it will lead to spurious releases - releases in which nothing changes in a module (i.e. 1.0 and 1.1 are identical).  This is another reason why I prefer to leave the dependency on A in B above at 1.0 rather than auto-incrementing it.  If A doesn't change, there's no reason to release and use version 1.1.

In particular this is the process we use internally here.  Everything is released together once and then modules are released on an as-needed basis.  Incrementing everything to the next snapshot would cause havok because we want to minimize releases and maximize backwards compatability (versioning should be explicitly controlled so we know exactly what bug or changes are made/fixed in each release).  I hope this gives you a little more insight into my POV.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Marcel Schutte (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_63509 ] 

Marcel Schutte commented on MRELEASE-91:
----------------------------------------

I forgot to mention that I'm using the latest SVN of the release plugin.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>  Attachments: release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_71634 ] 
            
Olivier Lamy commented on MRELEASE-91:
--------------------------------------

No comment on this.
Can someone add input ?
Thanks,
--
Olivier

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-91
>                 URL: http://jira.codehaus.org/browse/MRELEASE-91
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>         Environment: maven 2.0.4, win XP
>            Reporter: Marcel Schutte
>         Assigned To: Brett Porter
>             Fix For: 2.0-beta-4
>
>         Attachments: changes.xml, depmgnt.zip, MRELEASE-91.patch, MRELEASE-91.patch-2, release.patch, rewriting-dev-phase.apt, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Brett Porter updated MRELEASE-91:
---------------------------------

    Fix Version: 2.0-beta-4

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>      Fix For: 2.0-beta-4
>  Attachments: release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]

Olivier Lamy updated MRELEASE-91:
---------------------------------

    Attachment: snapshots-reactor-in-dependency-management.tar
                snapshots-reactor-in-dependencies.tar

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: MRELEASE-91.patch, depmgnt.zip, release.patch, snapshots-reactor-in-dependencies.tar, snapshots-reactor-in-dependency-management.tar
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Marcel Schutte (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-91?page=comments#action_65807 ] 

Marcel Schutte commented on MRELEASE-91:
----------------------------------------

Mike, I can follow your line of reasoning, it sounds like a valid way of working. My reason for wanting to change everything in the reactor again to snapshots is our continuous integration run. The releases are only in-between releases to a system or user test environment. Development will continue and the CI builds must pick up changes in any of the child modules.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

-- 
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: (MRELEASE-91) Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs

Posted by "Marcel Schutte (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-91?page=all ]
     
Marcel Schutte reopened MRELEASE-91:
------------------------------------


Testing with mvn 2.0.4 and the 2.0-beta-4 version of release-plugin shows that this issue is not yet fixed. Import the projects in the attached zip into your SCM, update the scm url in the pom and run mvn release:prepare. The following is the actual result in the parent.pom:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  .
  .
  <dependencyManagement>
    <dependencies>
    .
    .
      <dependency>
        <groupId>com.mycompany.app</groupId>
        <artifactId>my-app</artifactId>
        <version>1.0</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  .
  .
</project>

the expected result is:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  .
  .
  <dependencyManagement>
    <dependencies>
    .
    .
      <dependency>
        <groupId>com.mycompany.app</groupId>
        <artifactId>my-app</artifactId>
        <version>1.1-SNAPSHOT</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  .
  .
</project>

because com.mycompany.app:my-app is part of the reactor build.

> Updating of dependencyManagement inconsistent with updating of dependencies with regard to SNAPSHOTs
> ----------------------------------------------------------------------------------------------------
>
>          Key: MRELEASE-91
>          URL: http://jira.codehaus.org/browse/MRELEASE-91
>      Project: Maven 2.x Release Plugin
>         Type: Bug

>     Versions: 2.0-beta-4
>  Environment: maven 2.0.4, win XP
>     Reporter: Marcel Schutte
>     Assignee: Brett Porter
>      Fix For: 2.0-beta-4
>  Attachments: depmgnt.zip, release.patch
>
>
> The mechanism in release:prepare for creating the new development version of POM's handles snapshots that are part of the current reactor build differently for dependencyManagement and for dependencies.
> A snapshot version in a dependencies section will be updated to the next development version whereas one in dependencyManagement won't.
> The attached patch will change this behavior. It will update a snapshot version under dependencyManagement if and only if it is part of the current reactor build.
> Note that dependencies cannot contain snapshot versions that are not part of the current reactor, but dependencyManagement can. I suggest to forbid this too.
> A second suggestion is to introduce a parameter to control the updating of snapshot dependencies in both dependencyManagement and dependencies sections. Either leave them at the released version or update them to the new development version. This touches on the discussion in MRELEASE-36 about the developer having to knowingly choose to use a new development version. I would be fine with using a parameter to select the behavior as obtained with my patch. My central point is that dependencyManagement and dependencies snapshots should behave the same.

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