[
https://issues.apache.org/jira/browse/MNG-7519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569667#comment-17569667
]
Michael Osipov commented on MNG-7519:
-------------------------------------
Works as desgined for me in PowerShell with:
{noformat}
C:\Users\mosipov\AppData\Local\Temp> mvn -v
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: D:\Entwicklung\Programme\apache-maven-3.8.6
Java version: 1.8.0_312, vendor: Temurin, runtime: C:\Program Files\Eclipse
Adoptium\jdk-8.0.312.7-hotspot\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
{noformat}
> 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, src_and_pom.tar.xz, src_and_pom.zip
>
>
> 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)