[ 
https://jira.codehaus.org/browse/MRELEASE-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MRELEASE-338.
-----------------------------------

    Resolution: Not A Bug
      Assignee: Robert Scholte

Please don't use JIRA for questions, use our 
[mailinglists|http://maven.apache.org/plugins/maven-release-plugin/mail-lists.html]
 instead.
As you noticed arguments from the commandline are not passed to the 
release-execution. You should use 
[arguments|http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#arguments]
                
> preparation goals with 2 maven profiles failed
> ----------------------------------------------
>
>                 Key: MRELEASE-338
>                 URL: https://jira.codehaus.org/browse/MRELEASE-338
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>         Environment: Windows XP
> Maven 2.0.8 & 2.0.9
>            Reporter: françois Brunet
>            Assignee: Robert Scholte
>
> I use 2 profil in my project.
> one for declare links to archiva's repositories in the settings.xml
>     <profile>
>       <id>Repositories_archiva</id>
>       <activation>
>         <activeByDefault>true</activeByDefault>
>       </activation>
>       <repositories>
>       
>         <!-- ******************************************************* -->
>         <!-- repository snapshot-->
>         <!-- ******************************************************* -->      
>         <repository>
>           <id>repo_snapshots</id>
>           <name>repository_snapshot</name>
> ....
> and an another for the deployment in multi environments (it's define 
> java_home, and specifics properties)
>       <profiles>
>       
>               <profile>
>                       <id>config</id>
>                   <activation>
>                     <property>
>                       <name>profil</name>
>                       <value>go</value>
>                     </property>
>                   </activation>                       
>                       <properties>
> ...
> I launch the prepare phase like this:
> mvn -DdryRun=true -Dprofil=go -Dresume=false release:prepare
> it use the default preparation goals : clean verify
> [INFO] Executing preparation goals - since this is simulation mode it is 
> running against the original project, not the rewritten o
> nes
> [INFO] Executing goals 'clean verify'...
> [INFO] Executing: mvn clean verify --no-plugin-updates --batch-mode -P 
> Repositories_archiva
> I have 2 differents profils but only the first(Repositories_archiva) is use.
> the correct form should be :
> [INFO] Executing: mvn clean verify --no-plugin-updates --batch-mode -P 
> Repositories_archiva,config
> Could you give a hint to resolve this issue?

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


Reply via email to