gnodet opened a new pull request, #13547:
URL: https://github.com/apache/maven/pull/13547
Port of #11970 (merged on `maven-3.10.x`) to `maven-4.0.x`.
## Summary
When `-Dmaven.site.lifecycle.disabled=true` is set, the `site` lifecycle is
excluded
from the `DefaultLifecycleRegistry` stream. Maven will not resolve or bind
the
`maven-site-plugin` unless it is explicitly configured in the POM.
This is a JVM system property only (read via `Boolean.getBoolean()`); it is
not resolved
through Maven's property mechanism (pom.xml, profiles, settings.xml).
## Changes
- `Constants.MAVEN_SITE_LIFECYCLE_DISABLED` constant added with `@Config`
annotation
- Filter added in `DefaultLifecycleRegistry.stream()` — the natural
aggregation point for
all lifecycle consumers on Maven 4.x
Full backward compatibility is preserved: the property defaults to `false`.
Fixes #11759
--
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]