[ https://issues.apache.org/jira/browse/MNG-7480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yury Remishevsky updated MNG-7480: ---------------------------------- Attachment: build.log > 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 > Attachments: build.log, log-active.log, log-all.log > > > 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} > *System info* > [INFO] Detecting the operating system and CPU architecture > [INFO] > ------------------------------------------------------------------------ > [INFO] os.detected.name: linux > [INFO] os.detected.arch: x86_64 > [INFO] os.detected.version: 5.17 > [INFO] os.detected.version.major: 5 > [INFO] os.detected.version.minor: 17 > [INFO] os.detected.release: fedora > [INFO] os.detected.release.version: 36 > [INFO] os.detected.release.like.fedora: true > [INFO] os.detected.classifier: linux-x86_64 > openjdk 18.0.1 2022-04-19 > OpenJDK Runtime Environment Homebrew (build 18.0.1+0) > OpenJDK 64-Bit Server VM Homebrew (build 18.0.1+0, mixed mode, sharing) > -- This message was sent by Atlassian Jira (v8.20.7#820007)