desruisseaux commented on code in PR #11700:
URL: https://github.com/apache/maven/pull/11700#discussion_r2768602013


##########
impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java:
##########
@@ -870,6 +899,49 @@ private void initProject(MavenProject project, 
ModelBuilderResult result) {
             project.setRemoteArtifactRepositories(remoteRepositories);
         }
 
+        /**
+         * Warns about legacy directory usage in a modular project. Two cases 
are handled:
+         * <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>
+         * </ul>
+         * Legacy directories are unconditionally ignored in modular projects 
because it is not clear

Review Comment:
   I agree. If @ascheman also agrees, I guess that we can do this change. But 
since this pull request is a backport, I would suggest to do the change on 
master first, then backport 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