gnodet commented on code in PR #13546:
URL: https://github.com/apache/maven/pull/13546#discussion_r4316479565


##########
api/maven-api-core/src/main/java/org/apache/maven/api/Constants.java:
##########
@@ -888,5 +888,22 @@ public final class Constants {
     @Config(type = "java.lang.Boolean", defaultValue = "false", source = 
Config.Source.SYSTEM_PROPERTIES)
     public static final String MAVEN_TEMPFILE_KEEP = "maven.tempfile.keep";
 
+    /**
+     * System property to disable the {@code site} lifecycle.
+     * When set to {@code true} via {@code 
-Dmaven.site.lifecycle.disabled=true}, the {@code site}
+     * lifecycle is excluded from the default lifecycles, so Maven will not 
resolve or bind the
+     * {@code maven-site-plugin} unless it is explicitly configured in the POM.
+     * This is a JVM system property only (read via {@link 
Boolean#getBoolean(String)});
+     * it is not resolved through Maven's property mechanism (pom.xml, 
profiles, settings.xml).
+     *
+     * @since 4.0.0

Review Comment:
   @since 4.0.0 is intentional — this feature is being backported to 
maven-4.0.x so 4.0.0 is the correct version. The IT test compile errors and 
unit test reflection issue have been fixed in 551aeb0d.



-- 
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]

Reply via email to