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?
Please sign in to leave a comment.
This looks like a similar issue:
http://jetbrains.net/jira/browse/IDEADEV-35424?disableRedirect
Adam,
What IDEA version is the problem in?
Can you please create a sample project?
Thanks
I've created a YouTrack issue with an attached project.
http://youtrack.jetbrains.net/issue/IDEA-57241