You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andrei Pozolotin (JIRA)" <ji...@codehaus.org> on 2012/08/17 06:41:21 UTC

[jira] (MRELEASE-459) releaseProfiles has no effect without passing profiles in the command line

    [ https://jira.codehaus.org/browse/MRELEASE-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306397#comment-306397 ] 

Andrei Pozolotin commented on MRELEASE-459:
-------------------------------------------

fyi: this is still a problem as of 2.3.2; 

hey, this soon will make it into a book of records! :-)
it will be named: "the curse of the maven release plugin"
http://stackoverflow.com/questions/3291938/maven-release-plugin-ignores-releaseprofile

workaround is still the same: put a dummy profile in settings.xml

{code:title=settings.xml|borderStyle=solid}

<profiles>
	<profile>
		<id>default</id>
	</profile>
</profiles>

<activeProfiles>
	<activeProfile>default</activeProfile>
</activeProfiles>

{code}

                
> releaseProfiles has no effect without passing profiles in the command line 
> ---------------------------------------------------------------------------
>
>                 Key: MRELEASE-459
>                 URL: https://jira.codehaus.org/browse/MRELEASE-459
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: perform
>    Affects Versions: 2.0-beta-8, 2.0-beta-9
>            Reporter: Andreas Christoforides
>              Labels: contributers-welcome, help-requested, missing-integration-tests
>         Attachments: MRELEASE-459.1.patch, patch.txt
>
>
> The releaseProfiles parameter on the perform goal is not taken into consideration when no other profiles are passed in the command line. In other words, the current code only uses the value of the parameter if you have additional profiles passed in. 
> Example:
> mvn release:perform -P someProfile (uses releaseProfiles value)
> mvn release:perform (does NOT use releaseProfiles value)
> The plugin should use the parameter even if no other profiles are passed. It should actually encourage release profiles configured in your POM as opposed to arbitrary profiles passed in the command line.
> I have included a patch that uses the releaseProfiles parameter regardless of any profiles passed in the command line.

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