ODLPARENT-142: Don't package mysql-connector-java 57/68857/1
authorRyan Goulding <ryandgoulding@gmail.com>
Tue, 27 Feb 2018 21:26:19 +0000 (16:26 -0500)
committerStephen Kitt <skitt@redhat.com>
Wed, 28 Feb 2018 08:19:23 +0000 (08:19 +0000)
commit8695311e4a51497a6f439a5bfe1b17001c3f3059
treea5e852ead4828c5fec96e8e65b86a8ea2590a225
parent8fc445912e45611f79cac2b60779e61a26156c15
ODLPARENT-142: Don't package mysql-connector-java

Heavy handed approach to removing mysql-connector-java artifact from
our distribution.  Karaf includes this artifact for use with its
"jdbc" feature as of [4,5).  However, it is not license friendly
(it is GPL), so we should not ship it as part of our distribution.
Since we prepopulate "system" with all of the necessary jars to
start ODL offline, this approach just deletes the artifact in the
prepare-package phase.  This means that if someone attempts to use
our base distribution w/ "jdbc", then they will get a nasty
error since mysql client classes won't exist.  If they have a use
case that allows GPL licensing, they can always deploy it using an
out of band method (i.e., hot deployment of the artifact, or copying
it into system by hand).

In the future, we should address PAXJDBC-128 as a proper fix.  This
is a stopgap measure for the meantime, since the aforementioned
solution requires a new version of pax-features-jdbc, a new version
of karaf, and a new version of odlparent.

We should additionally release-note this as a known issue with
odlparent's karaf4-parent, since some downstream distributions
likely inherit from odlparent (instead of integration/distribution),
and should be made aware that they need to disclude this file
themselves.

Change-Id: I5126f9ae8cdbe554fbb8a01dcc6af2d8deaa8939
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
karaf/pom.xml