Release:prepare inherits profiles and isn't overriden by specifying specific 
profiles using -Darguments as it used to be
------------------------------------------------------------------------------------------------------------------------

                 Key: MRELEASE-408
                 URL: http://jira.codehaus.org/browse/MRELEASE-408
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
    Affects Versions: 2.0-beta-8
            Reporter: Vincent Massol


In 2.0 beta 7 the following was working:

{noformat}
mvn release:prepare -Pci,hsqldb,mysql,pgsql,derby,jetty 
-Darguments="-Pjetty,hsqldb" 
[... SNIP ...]
[INFO] [release:prepare]
[INFO] Resuming release from phase 'run-preparation-goals'
[INFO] Executing goals 'clean install'...
[INFO] Executing: mvn clean install --no-plugin-updates -Pjetty,hsqldb -P 
ci,jetty
[INFO] Scanning for projects...
        [INFO] Reactor build order: 
        [INFO]   XWiki Products - Enterprise - Parent POM
        [INFO]   XWiki Products - Enterprise - Wiki
        [INFO]   XWiki Products - Enterprise - Database - Parent POM
        [INFO]   XWiki Products - Enterprise - Database - HSQLDB
        [INFO]   XWiki Products - Enterprise - Web
        [INFO]   XWiki Products - Enterprise - Distribution - Parent POM
        [INFO]   XWiki Products - Enterprise - Distribution - Jetty
        [INFO]   XWiki Products - Enterprise - Distribution - HSQLDB
        [INFO] 
------------------------------------------------------------------------
{noformat}

As you can see only the specified profiles were passed to the internal build.

With 2.0 beta 8 this is no longer working and all profiles are passed to the 
internal build.

We need to specify more profiles in the outside build since we want to run the 
following command so that all pom.xml files are updated for the release but we 
only want to release some modules:

{noformat}
mvn release:prepare -Pci,hsqldb,mysql,pgsql,derby,jetty 
-Darguments="-Pjetty,hsqldb" -DautoVersionSubmodules=true 
-DreleaseVersion=1.7-milestone-2 -DdevelopmentVersion=1.7-SNAPSHOT
{noformat}

Reference: http://jira.xwiki.org/jira/browse/XE-331

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

        

Reply via email to