I have inherited a maven project with dozens of "provided" scoped dependencies. I am working on inserting a new dependency that is itself dependent on one of the previously mentioned, "provided" dependencies. This new dependency is scoped with the "compile"/default tag.
The application works without the new dependency added. After successfully compiling the app with the new dependency, the application fails at run time because the new dependency cannot find the "provided" dependencies.
Is it necessary that all "provided" dependencies work with "provided" dependencies (and the same with any other scope -- they only work with their kind)? I can't think of any other explanation of why the new default/"compile" dependencies cannot work with the existing "provided" dependencies. As I've mentioned, they are clearly provided and worked before any new dependencies were introduced. Any help is appreciated! I've been working with the maven documentation on scopes and this SO post.