I've got a problem with my eclipse classpath with the m2e plugin. I have a project which depends on other projects in my workspace. I've added these dependencies as maven dependencies with scope provided. I expect the scope to do the following: Provide the dependencies for compilation but exclude them for the runtime classpath. Because at runtime, these classes should be loaded from jars inside a folder.
But the eclipse classpath includes every single dependency I've provided in the project pom. Eclipse seems to ignore the provided scope. Is there any way to exclude those from runtime classpath?
Regards
If you want dependencies to be "provided for compilation but excluded from runtime classpath" you need to use the "provided" dependency scope (a Maven term) rather than the "compile" scope, which Maven uses by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With