↗️ This README only covers one section of the demo. The master branch contains more information.
Here, we create two artifacts claiming to contain monitor.observer.beta and place them into the same folder:
jar --create \
--file mods/monitor.observer.beta-1.0.jar \
--module-version 1.0 \
-C classes/monitor.observer.beta .
jar --create \
--file mods/monitor.observer.beta-2.0.jar \
--module-version 2.0 \
-C classes/monitor.observer.beta .
(Only in compile.sh
, not with Maven.)
The next module-related command, compiling monitor.statistics, immediately fails:
error: duplicate module on application module path
module in monitor.observer.beta
1 error
This happens even though monitor.statistics does not even use the duplicated module.