Yury Remishevsky created MNG-7480:
-------------------------------------

             Summary: Profile option doesn't activate selected profile
                 Key: MNG-7480
                 URL: https://issues.apache.org/jira/browse/MNG-7480
             Project: Maven
          Issue Type: Bug
          Components: Profiles
    Affects Versions: 3.8.5
            Reporter: Yury Remishevsky


Hi! On maven 3.8.5 using -P profile option doesn't activate selected profile.

# Steps to reproduce

On project 
[https://github.com/StoneToken/workflow-engines-load-test/blob/master/kogito-bpmn-async]
 # install maven 3.8.5
 # mvn --version -> 3.8.5
 # mvn clean package -P postgresql | grep usePersistence produces build with 
out required dependencies -> 
AddonsConfig{usePersistence={color:#FF0000}false{color}

On maven 3.8.1
 # mvn clean package -P postgresql | grep usePersistence produces build with 
expected  dependencies -> AddonsConfig{usePersistence={color:#FF0000}true{color}

{color:#172b4d}# Expected behavior{color}

{color:#172b4d}Using mvn clean package -P profile explicitly activates profile 
"profile" as stated in 
[https://maven.apache.org/guides/introduction/introduction-to-profiles.html:]{color}
{quote}Profiles can be explicitly specified using the {{-P}} command line flag.

This flag is followed by a comma-delimited list of profile IDs to use. The 
profile(s) specified in the option are activated in addition to any profiles 
which are activated by their activation configuration or the 
{{<activeProfiles>}} section in {{{}settings.xml{}}}.
{quote}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to