Is it possible to make karaf-maven-plugin exclude some dependencies with
<scope>compile</scope>?

I'm trying to create a pull request to fix this issue
 https://github.com/pgjdbc/pgjdbc/issues/1552
and the PostgreSQL JDBC driver pulls in and includes two dependencies,
that I would like to not pull in with the feature.

Firstly, the aren't needed (since they are embedded into the psql jar).
Secondly, they aren't OSGi bundles, so karaf wraps them:
51 │ Active │  80 │ 0               │ 
wrap_file__home_sb_.m2_repository_com_github_waffle_waffle-jna_1.9.1_waffle-jna-1.9.1.jar
52 │ Active │  80 │ 0               │ 
wrap_file__home_sb_.m2_repository_com_ongres_scram_client_2.0_client-2.0.jar

Thanks!

Reply via email to