Le 2023-10-29 à 21 h 25, Romain Manni-Bucau a écrit :
Then you are back to the dependency set solution which is not the type
solution and in this option the type is fully useless.
Maybe we would need a wiki page explaining how the DependencySet
approach would apply to JPMS. At this time, the relationship to the
--add-exports option is obscure to me.
Why would we need to declare all transitive dependencies? The
<type>module</type> element in the pom.xml of each dependency would
apply.
Cause your transitive deps are then jars, not modules (that said the
opposite is wrong too for most libs)
When Maven downloads a JAR file, it also downloads its POM file. In my
understanding this is how Maven get information about transitive
dependencies. It seems to me that Maven gets type information of
transitive dependencies that way too, isn't it?
Martin