On 8/9/2022 1:07 PM, Andrejus Chaliapinas wrote:
> Have you tried java --validate-modules? This option will scan the module path split package for other issues so that you get a dump of all issues.

Yes, that was my starting point, i.e usage of --validate-modules. But seeing outcome of it for complex dependencies set led to this my proposal actually. Cause validate shows conflicts, but elimination of them takes effort via build tooling configs. And much easier would be initially to evaluate runtime outcome via flexible exclusion capability (i.e. in a way we have for Maven dependencies exclusions for example).

Are these two JARs built from code you control? If not, then trying to figure out if your application "works" when only JAR1 is present, or only JAR2 is present, sounds difficult. And introducing --exclude-modules to "fight" the dependencies resolved by Maven is a bad idea.

Alex

Reply via email to