Le 2024-10-24 à 14 h 25, Robert Scholte a écrit :

Just one question: what will happen with Maven3 users (or any other tool) if one of their dependencies has this special type?
Rephrasing as "what will happen with a Maven 3 plugin running on Maven 4 without having been updated to the Maven 4 API?", the Java methods which, in Maven 3, were returning the list of all JAR dependencies continue to return all JARs in Maven 4, regardless if they are "jar", "modular-jar" or "classpath-jar". If those plugins were applying their own heuristic rules for deciding what to put on the classpath or module-path, it should continue to work, at the risk of being inconsistent with user's desire. In order to distinguish between "jar", "modular-jar" or "classpath-jar" (otherwise than by invoking Artifact.getType() method), the plugin needs to invoke new Maven 4 API.

    Martin



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

Reply via email to