You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matt Milliss (JIRA)" <ji...@codehaus.org> on 2009/10/25 03:56:26 UTC

[jira] Created: (MRELEASE-496) Branch not working in batch mode

Branch not working in batch mode
--------------------------------

                 Key: MRELEASE-496
                 URL: http://jira.codehaus.org/browse/MRELEASE-496
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: branch
    Affects Versions: 2.0-beta-9
         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
Java version: 1.6.0_10
Java home: /usr/java/jdk1.6.0_10/jre
Default locale: en_AU, platform encoding: UTF-8
OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
            Reporter: Matt Milliss



Creating a branch batch mode fails.

>From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
The following command to branch in non-batch mode works fine,
mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.

In batch mode the following command creates a branch with the same version as trunk
mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode


-- 
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-496) Branch not working in batch mode

Posted by "Lachlan Deck (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225720#action_225720 ] 

Lachlan Deck commented on MRELEASE-496:
---------------------------------------

Still unassigned/unresolved... anyone able to pick this up, test it and commit?
Cheers.

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>         Attachments: patch_branch_version_defaults.txt
>
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

-- 
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-496) Branch not working in batch mode

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

Brett Porter closed MRELEASE-496.
---------------------------------

    Resolution: Duplicate
      Assignee: Brett Porter

thanks for letting us know. If anyone has a different experience, please reopen.

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>            Assignee: Brett Porter
>         Attachments: patch_branch_version_defaults.txt
>
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

-- 
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-496) Branch not working in batch mode

Posted by "David Cloutier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207743#action_207743 ] 

David Cloutier commented on MRELEASE-496:
-----------------------------------------

I have the same problem... I've tried using:

 -Dproject.rel.my.org:myProject=[VERSION]
 -Dproject.dev.my.org:myProject=[VERSION]
 -DreleaseVersion=[VERSION]
 -DdevelopmentVersion=[VERSION]

None of them work in "batch-mode"

I'm trying to figure out where the code fails, but I can't seem to figure it out.

I think "org.apache.maven.shared.release.phase.RewritePomsForBranchPhase" uses "org.apache.maven.shared.release.config.ReleaseDescriptor" to figure out which version id's to use, but I can't find the source code for "org.apache.maven.shared.release.config.ReleaseDescriptor" :(


Plz help.

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

-- 
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] Issue Comment Edited: (MRELEASE-496) Branch not working in batch mode

Posted by "David Cloutier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207901#action_207901 ] 

David Cloutier edited comment on MRELEASE-496 at 1/22/10 10:00 AM:
-------------------------------------------------------------------

I found the problem, the class org.apache.maven.plugins.release.BranchReleaseMojo does not have the properties to load the releaseVersion & developmentVersion (like the class org.apache.maven.plugins.release.PrepareReleaseMojo)


This patch contains the fix for the issue in maven-release-plugin's BranchReleaseMojo.java

      was (Author: dacloutier):
    SVP Patch to fix the issue in maven-release-plugin's BranchReleaseMojo.java
  
> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>         Attachments: patch_branch_version_defaults.txt
>
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

-- 
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-496) Branch not working in batch mode

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

David Cloutier updated MRELEASE-496:
------------------------------------

    Attachment: patch_branch_version_defaults.txt

SVP Patch to fix the issue in maven-release-plugin's BranchReleaseMojo.java

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>         Attachments: patch_branch_version_defaults.txt
>
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

-- 
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-496) Branch not working in batch mode

Posted by "Michael Wenig (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232796#action_232796 ] 

Michael Wenig commented on MRELEASE-496:
----------------------------------------

This seems to be fixed in 2.0 with MRELEASE-377

> Branch not working in batch mode
> --------------------------------
>
>                 Key: MRELEASE-496
>                 URL: http://jira.codehaus.org/browse/MRELEASE-496
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: branch
>    Affects Versions: 2.0-beta-9
>         Environment: Apache Maven 2.1.0 (r755702; 2009-03-19 06:10:27+1100)
> Java version: 1.6.0_10
> Java home: /usr/java/jdk1.6.0_10/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux" version: "2.6.30.8-64.fc11.x86_64" arch: "amd64" Family: "unix"
>            Reporter: Matt Milliss
>         Attachments: patch_branch_version_defaults.txt
>
>
> Creating a branch batch mode fails.
> From a trunk version 09.20.00-SNAPSHOT I try to create a branch with the version 09.20.01-SNAPSHOT.
> The following command to branch in non-batch mode works fine,
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false
> when prompted for the branch version I enter 09.20.01-SNAPSHOT, this works as expected and the branch is created with the version 09.20.01-SNAPSHOT.
> In batch mode the following command creates a branch with the same version as trunk
> mvn release:branch -DbranchName=09.20.00_BRANCH -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -Dproject.rel.my.org:myProject=09.20.01-SNAPSHOT --batch-mode

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