Le 2025-03-16 à 17 h 37, Guillaume Nodet a écrit :

I think it's time to create a branch to release Maven 4.0.0 GA in the coming weeks and switch master to 4.1.0-SNAPSHOT. Thoughts ?

One element that may be adjusted before GA. Maven 4 introduced a new way to control where to put a JAR file, using the <type> element. There is currently (non exhaustive list):

 * jar
 * classpath-jar
 * modular-jar
 * processor
 * classpath-processor
 * modular-processor
 * test-jar

In a discussion with some IDE developers, it has been suggested that this list could be simplified with a combination of <type> and <scope>. For example:

<type>classpath-jar</type> is implicitly (keeping in mind that the <scope> value is compile by default):

   <type>classpath-jar</type> <scope>compile</scope>

Likewise, <type>modular-jar</type> is implicitly:

   <type>modular-jar</type> <scope>compile</scope>

But classpath-processor could be simplified as below (reusing the existing classpath-jar type):

   <type>classpath-jar</type> <scope>processor</scope>

Likewise, modular-processor could be simplified as below (reusing the existing modular-jar type):

   <type>modular-jar</type> <scope>processor</scope>

And so on for test-jar, doclet, taglet, etc. Any though? If this principle is accepted, I can try to prepare a pull request. It would be preferable to make such change before GA.

    Martin

Reply via email to