p2-maven-plugin icon indicating copy to clipboard operation
p2-maven-plugin copied to clipboard

"Provided" Maven dependencies not included in p2 site

Open knime opened this issue 10 years ago • 2 comments

If a Maven artifact has a "provided" dependency it won't be added to the p2 repository. This may lead to unresolved dependencies in an OSGi application because usually nothing is "provided" there (except some OSGi classes). Therefore I would also fetch and include provided dependencies in the p2 site.

knime avatar Feb 18 '15 13:02 knime

Hi knime, I think I ran into the same issue with a Spring artifact. Everything builds. But at runtime I get ClassNotFoundException on classes that are APIs (javax...). My guess it that their implementations did not make it to the class path maybe because they belong to an artifact marked as provided or optional.

Have you found a workaround? Thanks

YoannBuch avatar Mar 29 '15 02:03 YoannBuch

The same problem applies to dependencies marked optional

Vogel612 avatar Apr 12 '18 14:04 Vogel612