[
https://issues.apache.org/jira/browse/MNG-7519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ravinderjeet updated MNG-7519:
------------------------------
Priority: Critical (was: Major)
> Issue with profile activation using environment variable
> --------------------------------------------------------
>
> Key: MNG-7519
> URL: https://issues.apache.org/jira/browse/MNG-7519
> Project: Maven
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 3.6.3
> Reporter: Ravinderjeet
> Priority: Critical
> Attachments: pom.xml
>
>
> Hello Apache Maven team,
> For one of my project requirement, i configured separate build processes
> using two different profiles in the pom.xml. One of the profile/build process
> is activated if certain environment variable is present and other profile is
> activated, if that certain variable is not set in the environment.
> I tried debugging and testing the profile using both commands :
> # mvn help:active-profiles
> # mvn help:all-profiles
> Both of the above commands are giving desired results on execution with both
> setting/un-setting of environment variable. Correct profile is getting
> activated on the presence of environment variable and vice-versa.
> But on giving the command "mvn clean install", both of the profiles are
> getting activated which is causing the incorrect build results.
> Please find attached the pom.xml being use here and help in look into this
> issue.
> Thanks in advance!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)