Le 2024-07-12 à 19 h 00, Guillaume Nodet a écrit :
I like it a lot. This could also prove very useful to better support
multi-release JARs.
Yes, I had that purpose in mind as well, and multi-releases is one of
the reasons for the proposal. It would also be useful for Module Source
Hierarchy, but I avoid that discussion for now because I do not want
JPMS debate to block the rest.
However, resources have many more fields, see
https://maven.apache.org/pom.html#resources, so I'm not really sure
they can really be merged together.
We could consider that those fields can potentially apply to many kinds
of sources (e.g. filtering), and make them available in <source> elements.
I used `scope` above, because we have `ProjectScope`defined in the API
for that already.
Fine for me (I also thought about using "scope" instead of "type").
Martin