[ 
https://issues.apache.org/jira/browse/MNG-7519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569662#comment-17569662
 ] 

Ravinderjeet commented on MNG-7519:
-----------------------------------

Hello Michael,

Thanks for the quick response. The above error was due to missing 
${start-class} which is required by spring boot maven plugin. I have attached 
the both POM as well as the required src file in the .zip or .tar. Please 
extract eitherĀ  of these archives as per your comfort and try to build again.

> 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)

Reply via email to