gnodet-bot commented on code in PR #14211:
URL: https://github.com/apache/maven/pull/14211#discussion_r4751963797
##########
api/maven-api-settings/src/main/mdo/settings.mdo:
##########
@@ -1211,6 +1211,18 @@
<required>false</required>
<type>DOM</type>
</field>
+ <field>
+ <name>activation</name>
+ <description>Conditions that control whether this extension is
loaded.
+ When omitted the extension is always loaded. Supports the same
activation
+ types as profile activation: property, jdk, os, file, and
condition.</description>
+ <version>2.1.0+</version>
Review Comment:
⚠️ **`condition` activation documented but not implemented.** The
description promises `condition` support, but `ExtensionActivationEvaluator`
has no handling for `activation.condition()`. A user writing
`<activation><condition>...</condition></activation>` on an extension will
silently get `activeByDefault` semantics (default `false`) — the extension is
quietly dropped. Either implement condition evaluation or correct the
description to list only the actually supported types:
```suggestion
<description>Conditions that control whether this extension is
loaded.
When omitted the extension is always loaded. Supports a subset of
profile
activation types: property, jdk, os, and file. The {@code
condition} type
is not supported here because it requires the DI container, which
is not
available when extensions are loaded.</description>
```
_This review was generated by an AI agent, Hermès on behalf of @gnodet._
<!-- reviewer: gnodet-bot -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]