[jboss-jira] [JBoss JIRA] (JBRULES-3548) Easy version bumping during release procedure: Fix script update-version-all.sh

Douglas Palmer (JIRA) jira-events at lists.jboss.org
Thu Jul 5 06:45:13 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704623#comment-12704623 ] 

Douglas Palmer commented on JBRULES-3548:
-----------------------------------------

The fix for this problem is (note the []):

mvn -Dfull versions:update-parent -N -DparentVersion=[$newVersion] -DallowSnapshots=true
                
> Easy version bumping during release procedure: Fix script update-version-all.sh
> -------------------------------------------------------------------------------
>
>                 Key: JBRULES-3548
>                 URL: https://issues.jboss.org/browse/JBRULES-3548
>             Project: Drools
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: All
>            Reporter: Geoffrey De Smet
>            Assignee: Douglas Palmer
>            Priority: Critical
>
> During a release of droolsjbpm (= droolsjbpm-knowledge, drools, jbpm, guvnor, drools-planner, droolsjbpm-tools, ...) we follow this release procedure:
>   https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/README.md#releasing-from-a-release-branch
> At one point we call this script to update the version number:
>   https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/script/release/update-version-all.sh
> That script does several calls like this:
> {code}
> mvn -Dfull versions:update-parent -N -DparentVersion=$newVersion -DallowSnapshots=true
> {code}
> Which use the versions-maven-plugin's goal update-parent:
>   http://mojo.codehaus.org/versions-maven-plugin/update-parent-mojo.html
> Which does not work as expected:
> It always updates to the latest, highest parent version, ignoring the parameter. For example:
>   If ($newVersion == 5.3.2.Final) but 5.4.0.Final exists in the repositories, it uses 5.4.0.Final.
> This has been reported:
>   https://jira.codehaus.org/browse/MVERSIONS-161 (rejected due to confusion)
>   https://jira.codehaus.org/browse/MVERSIONS-185 (open and clearer)
> We need to fix MVERSIONS-185, ask the versions-maven-plugin to pull the changes and get it released (Paul Gier or John Casey might be able to help there).
> And then upgrade the plugin version here:
>   https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/blob/master/pom.xml#L403

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list