I have three profiles defined in my pom.xml:
ABC
Go to
Properties-->Maven-->Active Maven Profiles
and type in only the profile name that you want to run.
If you want to run your ABC
profile type in ABC
in the Active Maven Profile input box.
The description(seperated by commas) given there is a bit confusing.
Once you define your profile name or id in the input box. You can clean and run your project on your server. By doing so your mentioned active maven profile will be run.
verify that plugin execution id are not equal in different profiles
For those who still have problems. I am not really used to Eclipse nor STS but I actually use Spring Tool Suite Version: 4.7.1.RELEASE. I think the Active Maven Profile input box. may be named Write here your already activated Maven Profile :) as I think its purpose is to select an activated profile to run.
In my case, what I did was :
<activeProfile>MyProfileId</activeProfile>
in the activeProfiles section. The one thing I really appreciate is that it accepts profile even defined in your project pom.xml and that is great for peoject with sub modules. If you have time, read this https://maven.apache.org/guides/introduction/introduction-to-profiles.htmlThe first step is only to activate your profile. So if you have any way to achieve this, feel free to do as so.