Hi, you can blacklist or you can exclude artifacts.
You can also use a different scope than compile, or use a features.xml "template". Regards JB On 31/08/2019 00:52, Steinar Bang wrote: > 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! > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com