Add option to remove unwanted features 20/112420/11
authorPeter Suna <peter.suna@pantheon.tech>
Tue, 2 Jul 2024 14:11:46 +0000 (16:11 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 15 Jul 2024 11:14:40 +0000 (13:14 +0200)
commit440d7a13dcf056a813e8951c00f148cf3b744770
treef8c79b037f71d54e59c6c2bd51c64b35ca1020e0
parentb44ec262f915e4da5dfc7ac9b30ae359cb845076
Add option to remove unwanted features

The odl-karaf-feat-jdbc feature imports all 21 features from
the org.ops4j.pax.jdbc feature.xml file. However, we actually
require only 6 of them: pax-jdbc-spec, pax-jdbc, pax-jdbc-config,
pax-jdbc-h2, pax-jdbc-mariadb and pax-jdbc-pool-dbcp2.

The pax-jdbc-spec, pax-jdbc and pax-jdbc-config have general
usage. The pax-jdbc-h2 is used in AAA. The pax-jdbc-mariadb
and pax-jdbc-pool-dbcp2 is used in TransportPCE project.

The inclusion of unnecessary features not only increases
the weight of the ODL distribution but also introduces
security concerns.

Add an option to the karaf-plugin to remove unwanted features
using Maven property configuration.

JIRA: ODLPARENT-309
Change-Id: I6750b214244d36a39d4086b46a68722adfd9548e
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
karaf-plugin/src/main/java/org/opendaylight/odlparent/PopulateLocalRepoMojo.java
karaf-plugin/src/test/java/org/opendaylight/odlparent/PopulateLocalRepoMojoTest.java [new file with mode: 0644]
karaf/karaf4-parent/pom.xml