diff --git a/api/maven-api-model/src/main/mdo/maven.mdo b/api/maven-api-model/src/main/mdo/maven.mdo index 4e29c4ffaf6a..2829ffdc225b 100644 --- a/api/maven-api-model/src/main/mdo/maven.mdo +++ b/api/maven-api-model/src/main/mdo/maven.mdo @@ -2742,10 +2742,79 @@ Activation 4.0.0+ - The conditions within the build runtime environment which will trigger the - automatic inclusion of the build profile. Multiple conditions can be defined, which must - be all satisfied to activate the profile. - + In addition to the traditional activation mechanisms (JDK version, OS properties, + file existence, etc.), Maven now supports a powerful condition-based activation + through the {@code condition} field. This new mechanism allows for more flexible + and expressive profile activation rules.

+ +

Condition Syntax

+ +

The condition is specified as a string expression that can include various + functions, comparisons, and logical operators. Some key features include:

+ + + +

Supported Functions

+ +

The following functions are supported in condition expressions:

+ + + +

Supported properties

+ +

The following properties are supported in expressions:

+ + + +

Examples

+ + + +

This flexible condition mechanism allows for more precise control over profile + activation, enabling developers to create profiles that respond to a wide range of + environmental factors and project states.

+ ]]>
activeByDefault @@ -2798,6 +2867,12 @@ String Specifies that this profile will be activated based on the project's packaging. + + condition + 4.1.0+ + String + The condition which must be satisfied to activate the profile. +