elharo commented on code in PR #11702:
URL: https://github.com/apache/maven/pull/11702#discussion_r2812010989


##########
impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java:
##########
@@ -906,44 +959,60 @@ private void initProject(MavenProject project, 
ModelBuilderResult result) {
         }
 
         /**
-         * Warns about legacy directory usage in a modular project. Two cases 
are handled:
+         * Validates that legacy directory configuration does not conflict 
with {@code <sources>}.
+         * <p>
+         * When {@code <sources>} is configured, the build fails if:
          * <ul>
-         *   <li>Case 1: The default legacy directory exists on the filesystem 
(e.g., src/main/java exists)</li>
-         *   <li>Case 2: An explicit legacy directory is configured that 
differs from the default</li>
+         *   <li><b>Configuration presence</b>: an explicit legacy 
configuration differs from the default</li>

Review Comment:
   probably don't use &lt;b&gt; here



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