[
https://issues.apache.org/jira/browse/MNG-7051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maarten Mulders updated MNG-7051:
---------------------------------
Description:
For Maven 4, the behaviour of the {{-P}} command line option will change:
* {{-P apache-release}} will activate the *apache-release* profile. If such a
profile cannot be found, the build will break.
* {{-P ?apache-release}} will activate the *apache-release* profile. If such a
profile cannot be found, the build will continue but log a warning.
{color:#FF0000}Note that this breaks the current behaviour of Maven 3: {{-P
apache-release}} will currently log a warning and not break the build. That
behaviour can be restored by adding the {{?}}.{color}
was:
For Maven 4, the behaviour of the {{-P}} command line option will change:
* {{-P apache-release}} will activate the *apache-release* profile. If such a
profile cannot be found, the build will break.
* {{-P ?apache-release}} will activate the *apache-release* profile. If such a
profile cannot be found, the build will continue but log a warning.
> Optionally skip non-existing profiles
> -------------------------------------
>
> Key: MNG-7051
> URL: https://issues.apache.org/jira/browse/MNG-7051
> Project: Maven
> Issue Type: Sub-task
> Components: Profiles
> Reporter: Maarten Mulders
> Assignee: Maarten Mulders
> Priority: Major
>
> For Maven 4, the behaviour of the {{-P}} command line option will change:
> * {{-P apache-release}} will activate the *apache-release* profile. If such
> a profile cannot be found, the build will break.
> * {{-P ?apache-release}} will activate the *apache-release* profile. If such
> a profile cannot be found, the build will continue but log a warning.
> {color:#FF0000}Note that this breaks the current behaviour of Maven 3: {{-P
> apache-release}} will currently log a warning and not break the build. That
> behaviour can be restored by adding the {{?}}.{color}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)