desruisseaux commented on PR #959:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/959#issuecomment-3405520441

   For being more specific:
   
   * The Maven Compiler plugin has only one main output: the `target/classes` 
directory. This output can be used directly by any Java tools having a 
`--module-path` argument, such as `java` and `javadoc`, but not `jar`.
   * The JAR plugin could generate dynamically one sub-project per Java module, 
and each dynamically generated sub-project has its own generated `pom.xml` and 
one single main artefact.
   
   The dynamic sub-projects would be generated by the JAR plugin because `jar` 
is the Java tools which is not multi-module. Most other Java tools are 
multi-module. It makes sense that JAR is not multi-module, because it makes 
smaller files to download.
   
   Even in a non-JPMS world, the view that the JAR plugin should not do much 
more than just zipping everything in the `target/classes/` directory may be 
obsolete anyway. See for example 
https://github.com/apache/maven-jar-plugin/issues/484.


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