You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yury Remishevsky (Jira)" <ji...@apache.org> on 2022/05/19 07:57:00 UTC

[jira] [Updated] (MNG-7480) Profile option doesn't activate selected profile

     [ https://issues.apache.org/jira/browse/MNG-7480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yury Remishevsky updated MNG-7480:
----------------------------------
    Description: 
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}

For e.g. 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}

  was:
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}

For e.g. 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}


> 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
>            Priority: Major
>
> 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}
> For e.g. 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)