Issue Details (XML | Word | Printable)

Key: MPH-38
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Allan G. Ramirez
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Help Plugin

mvn help:active-profiles won't show the active profiles in settings.xml

Created: 07/Apr/08 10:35 PM   Updated: 28/Aug/08 04:54 AM
Return to search
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive apache-maven-2.1-659801-bin.zip (2.42 MB)

Environment: linux (never tried it in windows), sun's jdk 1.5.0_12
Issue Links:
Related
 


 Description  « Hide

settings.xml has this

<activeProfiles>
<activeProfile>appserverConfig</activeProfile>
</activeProfiles>

pom.xml of MavenProject2 project has this

<profile>
<id>appserverConfig-dev-2</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>env</name>
<value>dev-2</value>
</property>
</activation>
<properties>
<appserver.home>/path/to/another/dev/appserver2</appserver.home>
</properties>
</profile>

I tried mvn help:active-profiles using the maven 2.1-SNAPSHOT I only got

  • appserverConfig-dev-2 (source: pom)

appserverConfig defined in settings.xml is not shown



Julie Pitt added a comment - 02/May/08 01:53 PM

I am having the exact same issue on windows with JDK 1.5.0_14


Vincent Siveton added a comment - 23/Aug/08 04:28 PM

It is a normal way since appserverConfig is not a profile defined in your settings. You should activate an existing profile.


Allan G. Ramirez added a comment - 23/Aug/08 08:32 PM

Sorry for not posting the whole settings.xml of mine. But appserverConfig is defined or existed in my settings when I tested it.

I'm attaching the maven cli that I used for testing.


Vincent Siveton added a comment - 28/Aug/08 04:54 AM

Since it works with mvn 2.0.9, I guess it is a regression in mvn 2.1