Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Implemented
-
None
-
None
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.
Note that this breaks the current behaviour of Maven 3 in two ways:
- -P apache-release will currently log a warning and not break the build. That behaviour can be restored by adding the ?.
- A profile that has an identifier that not valid (i.e., contains anything else than a - z, A to Z, 0 - 9, -, _ or .) will break the build.
Attachments
Issue Links
- blocks
-
MNG-7029 Remove super POM "release-profile" release profile
- Closed
- causes
-
MNG-7107 Relax recently introduced profile id validation
- Closed
-
MNG-7052 Do not allow symbols as first character of identifiers in the POM
- Open
- is related to
-
MNG-7011 consistent profile/module exclusion
- Open
-
MNG-6511 Option -pl ! foo should not fail if foo does not exist
- Closed
-
MNG-6862 Wrong command line analysis for joined profile activation
- Closed
- relates to
-
MNG-7052 Do not allow symbols as first character of identifiers in the POM
- Open
- supercedes
-
MNG-7211 [WARNING] The requested profile "ABCDEF" could not be activated because it does not exist.
- Closed
- links to