maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Todorov (JIRA)" <>
Subject [jira] (MNG-5685) Profile with multiple conditions gets activated incorrectly
Date Tue, 09 Sep 2014 16:51:10 GMT
Martin Todorov created MNG-5685:

             Summary: Profile with multiple conditions gets activated incorrectly
                 Key: MNG-5685
             Project: Maven
          Issue Type: Bug
            Reporter: Martin Todorov

Consider the following simple profile:

I would expect that this profile will not be active by default. Furthermore, it will not be
active if the tests are skipped.

However, if you execute:
mvn help:active-profiles

you will see:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building foo-bar: baz 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- maven-help-plugin:2.2:active-profiles (default-cli) @ ---
Active Profiles for Project '': 

The following profiles are active:

 - reserve-ports (source:


If you pass in -DskipTests, the profile gets disabled, but you shouldn't have to do this.

I believe this is related to MNG-4565.

This message was sent by Atlassian JIRA

View raw message