maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MNG-2136) Active profile in profiles.xml prevents active profile in pom.xml to be triggered automatically
Date Wed, 08 Mar 2006 15:52:23 GMT
    [ http://jira.codehaus.org/browse/MNG-2136?page=comments#action_60477 ] 

Vincent Massol commented on MNG-2136:
-------------------------------------

Heer's the profiles.xml:

{code:xml}
<profilesXml>
  <profiles>
    <profile>
      <id>vmassol</id>
      <properties>
        <installDir>c:/apps/cargo-installs</installDir>
      </properties>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>vmassol</activeProfile>
  </activeProfiles>
</profilesXml>
{code}

Here's a portion of the pom.xml:

{code:xml}
[...]
  <profiles>

    <profile>
      <id>jboss4x</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <containerId>jboss4x</containerId>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <configuration>
              <container>
                <zipUrlInstaller>
                  <url>http://ovh.dl.sourceforge.net/sourceforge/jboss/jboss-4.0.2.zip</url>
                  <installDir>${installDir}</installDir>
                </zipUrlInstaller>
              </container>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
[...]
{code}

if I type "mvn install" the jboss4x profile is not activated. Removing profiles.xml makes
it work. Forcing it using -Pjboss4x makes it active too (as would be expected).

> Active profile in profiles.xml prevents active profile in pom.xml to be triggered automatically
> -----------------------------------------------------------------------------------------------
>
>          Key: MNG-2136
>          URL: http://jira.codehaus.org/browse/MNG-2136
>      Project: Maven 2
>         Type: Bug

>   Components: POM
>     Versions: 2.0.3
>     Reporter: Vincent Massol
>     Priority: Blocker
>      Fix For: 2.0.3

>
>
> If there's a profiles.xml with an active profile in it, then the active profile defined
in the pom.xml is ignored and not triggered.

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


Mime
View raw message