ODLPARENT-142: Don't package mysql-connector-java 58/68858/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:37 +0000 (08:19 +0000)
commit13e96de0d0431eb7ee6e676d553f20ce3ca8b4f5
tree117c28ed47c01a53e164e8496adda218d8bb9e9e
parent30693dd0df55309f0decf0ae5271c73450de5cfc
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