You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Hammant (JIRA)" <ji...@codehaus.org> on 2010/06/02 20:03:12 UTC

[jira] Created: (MRELEASE-568) Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)

Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)
--------------------------------------------------------------------------------

                 Key: MRELEASE-568
                 URL: http://jira.codehaus.org/browse/MRELEASE-568
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
            Reporter: Paul Hammant


mvn -f alternate-pom.xml release:perform

 [ time passes ]

[INFO] Working directory: /scm/oss/atinject/target
[INFO] Executing goals 'deploy'...
[INFO] Executing: /bin/sh -c cd /scm/oss/atinject/target/checkout && /Installed/apache-maven-2.2.1/bin/mvn deploy --no-plugin-updates -DperformRelease=true -f pom.xml


-- 
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-568) Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)

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

Benjamin Bentmann updated MRELEASE-568:
---------------------------------------

    Affects Version/s: 2.0

> Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)
> --------------------------------------------------------------------------------
>
>                 Key: MRELEASE-568
>                 URL: http://jira.codehaus.org/browse/MRELEASE-568
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Paul Hammant
>
> mvn -f alternate-pom.xml release:perform
>  [ time passes ]
> [INFO] Working directory: /scm/oss/atinject/target
> [INFO] Executing goals 'deploy'...
> [INFO] Executing: /bin/sh -c cd /scm/oss/atinject/target/checkout && /Installed/apache-maven-2.2.1/bin/mvn deploy --no-plugin-updates -DperformRelease=true -f pom.xml

-- 
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-568) Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)

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

Robert Scholte closed MRELEASE-568.
-----------------------------------

    Resolution: Duplicate
      Assignee: Robert Scholte

Duplicate of MRELEASE-618, is fixed for the next release.
                
> Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)
> --------------------------------------------------------------------------------
>
>                 Key: MRELEASE-568
>                 URL: https://jira.codehaus.org/browse/MRELEASE-568
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Paul Hammant
>            Assignee: Robert Scholte
>
> mvn -f alternate-pom.xml release:perform
>  [ time passes ]
> [INFO] Working directory: /scm/oss/atinject/target
> [INFO] Executing goals 'deploy'...
> [INFO] Executing: /bin/sh -c cd /scm/oss/atinject/target/checkout && /Installed/apache-maven-2.2.1/bin/mvn deploy --no-plugin-updates -DperformRelease=true -f pom.xml

--
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-568) Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)

Posted by "Piers Geyman (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MRELEASE-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280182#comment-280182 ] 

Piers Geyman commented on MRELEASE-568:
---------------------------------------

This bug can be fixed by making the following change to org.apache.maven.shared.release.phase.AbstractRunGoalsPhase line 81 (line 81 on 2.2.1 source code). This allows the setting of the plugin command line property pomFileName to work and allow this scenario to work.

Change:
                mavenExecutor.executeGoals( determineWorkingDirectory( workingDirectory,
                                                                       releaseDescriptor.getScmRelativePathProjectDirectory() ),
                                            goals, releaseEnvironment, releaseDescriptor.isInteractive(),
                                            additionalArguments, result );

To:
                mavenExecutor.executeGoals( determineWorkingDirectory( workingDirectory,
                                                                       releaseDescriptor.getScmRelativePathProjectDirectory() ),
                                            goals, releaseEnvironment, releaseDescriptor.isInteractive(),
                                            additionalArguments, releaseDescriptor.getPomFileName(), result );


> Release plugin (in perform phase) ignore -f directive (non-default pom.xml file)
> --------------------------------------------------------------------------------
>
>                 Key: MRELEASE-568
>                 URL: https://jira.codehaus.org/browse/MRELEASE-568
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Paul Hammant
>
> mvn -f alternate-pom.xml release:perform
>  [ time passes ]
> [INFO] Working directory: /scm/oss/atinject/target
> [INFO] Executing goals 'deploy'...
> [INFO] Executing: /bin/sh -c cd /scm/oss/atinject/target/checkout && /Installed/apache-maven-2.2.1/bin/mvn deploy --no-plugin-updates -DperformRelease=true -f pom.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira