Le 2025-03-17 à 12 h 02, Romain Manni-Bucau a écrit :

Concretely the issue there is that you now require the plugins to configure a list of (type, scope) instead of a list of types to be functional.

I'd personally prefer we assume that types and scopes as two things do not make sense anymore in maven 4 and just keep type (or use a new name if it helps, maybe "configuration" - joking on this one) and keep that easy to consume.

The scope is closely related to which plugin will use the JAR, while the type said how the plugin use the JAR. Therefore, I think that plugins would filter the dependencies by their scope before any further examination. Having that information separated in the <scope> element may make the filtering easier. Example: scope "processor" = "used by the processor plugin" (some legacy version I presume, before APT became part of javac), scope "doclet" = "used by the javadoc plugin", etc. Then, the type ("classpath-jar" versus "modular-jar") refines which tool options to use.

    Martin



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to