I have a module (A) which declares several dependencies as <scope>provided</scope> so as to in effect, turn off transitive dependencies on the module. The effect I'm looking for is to not "export" the module's dependencies to downstream projects.
However, when I try to run a class in module A, any of the classes declared as provided aren't available. If I remove the scope declaration, the process will run.
How can I make the jars available to module A to compile and run, but prevent them from bleeding out into other projects via transitive dependencies?