Maven "provided" scope not available for running in module

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?

3 comments
Comment actions Permalink

Adam,

What IDEA version is the problem in?
Can you please create a sample project?

Thanks

0
Comment actions Permalink

I've created a YouTrack issue with an attached project.

http://youtrack.jetbrains.net/issue/IDEA-57241

0

Please sign in to leave a comment.