I have a problem with maven-compiler-plugin in multimodule project where the Jar files appear in classpath and not target/classes. Module B depends on A but A uses maven-shade-plugin to relocate Shared Utils dependency in A. Suddenly B fails because cannot find relocated packages of Shared Utils. The compiler uses A.jar instead of A/target/classes.
Cheers Tibor17