preparation goals with 2 maven profiles failed
----------------------------------------------
Key: MRELEASE-338
URL: http://jira.codehaus.org/browse/MRELEASE-338
Project: Maven 2.x Release Plugin
Issue Type: Bug
Environment: Windows XP
Maven 2.0.8 & 2.0.9
Reporter: françois Brunet
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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira