Bug #59

Profiles did not work as expected.

Added by manager - 1547 days ago. Updated 1545 days ago.

Status:Closed Start:
Priority:Immediate Due date:
Assigned to:manager - % Done:

0%

Category:build system
Target version:0.4.0 Mars

Description

It seemed that inline profiles (with POM) behave different from profiles which are defined in separated files (profile.xml).
If i selected mvn -P online with inline profiles it worked as expected. If i use the same with an external file it doesn't work.

<profiles>
    <profile>
        <!--
            This profile is used to define the URL's etc. if we are
            on the traveler laptop.
        -->
        <id>dev</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <properties>
            <system.scm.url>http://svn.traveler/supose/</system.scm.url>
            <system.scm.url.dev>http://svn.traveler/supose/trunk</system.scm.url.dev>
            <issuemanagement.url>http://trac.traveler/supose/</issuemanagement.url>
            <cimanagement.url>http://http://serverix:8080/continuum/</cimanagement.url>
        </properties>
    </profile>
    <profile>
        <!--
            This profile is used to define the URL's etc. if we are
            on the internet server (h5593.serverkompetenz.net).
        -->
        <id>online</id>
        <activation>
            <activeByDefault>false</activeByDefault>
        </activation>
        <properties>
            <system.scm.url>http://svn.soebes.de/supose/</system.scm.url>
            <system.scm.url.dev>http://svn.soebes.de/supose/trunk</system.scm.url.dev>
            <issuemanagement.url>http://supose.soebes.de/</issuemanagement.url>
            <cimanagement.url>http://http://serverix:8080/continuum/</cimanagement.url>
        </properties>
    </profile>
</profiles>

History

Updated by manager - 1547 days ago

  • Status changed from New to Assigned

Updated by manager - 1547 days ago

I have added the following in my personal settings.xml

<activeProfiles>
  <activeProfile>dev</activeProfile>
</activeProfiles>

Updated by manager - 1547 days ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Updated by manager - 1545 days ago

I have deactivated both profiles in the profiles.xml file

 <activation>
   <activeByDefault>false</activeByDefault>
</activation>

Also available in: Atom PDF