diff --git a/Jenkinsfile b/Jenkinsfile
index d7f08f86fe8..5bb1ebd20b2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -75,7 +75,7 @@ pipeline {
checkout scm
sh """#!/bin/bash
ulimit -a
- mvn clean verify -Dhbase.profile=${HBASE_PROFILE} -B
+ mvn clean verify -Dskip.embedded -Dhbase.profile=${HBASE_PROFILE} -B
"""
}
}
diff --git a/dev/phoenix-personality.sh b/dev/phoenix-personality.sh
index ae5806fda86..692981eec33 100755
--- a/dev/phoenix-personality.sh
+++ b/dev/phoenix-personality.sh
@@ -140,7 +140,7 @@ function personality_modules
# Running with threads>1 seems to trigger some problem in the build, but since we
# spend 80+% of the time in phoenix-core, it wouldn't help much anyway
- extra="--threads=1 -DPhoenixPatchProcess"
+ extra="--threads=1 -DPhoenixPatchProcess -Dskip.embedded"
if [[ "${PATCH_BRANCH}" = 4* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2"
fi
diff --git a/phoenix-assembly/pom.xml b/phoenix-assembly/pom.xml
index 099ac0340ff..0a88f974b9a 100644
--- a/phoenix-assembly/pom.xml
+++ b/phoenix-assembly/pom.xml
@@ -49,7 +49,7 @@
ln
- ${project.basedir}/../phoenix-client/target
+ ${project.basedir}/../phoenix-client-parent/phoenix-client/target
-fnsv
diff --git a/phoenix-assembly/src/build/components/all-common-jars.xml b/phoenix-assembly/src/build/components/all-common-jars.xml
index 8f97784fd14..93f82f2fefa 100644
--- a/phoenix-assembly/src/build/components/all-common-jars.xml
+++ b/phoenix-assembly/src/build/components/all-common-jars.xml
@@ -24,11 +24,10 @@
- ${project.basedir}/../phoenix-client/target
+ ${project.basedir}/../phoenix-client-parent/phoenix-client/target
/
phoenix-client-${project.version}.jar
- phoenix-client.jar
@@ -36,7 +35,6 @@
/
phoenix-server-${project.version}.jar
- phoenix-server.jar
diff --git a/phoenix-client-parent/phoenix-client-embedded/pom.xml b/phoenix-client-parent/phoenix-client-embedded/pom.xml
new file mode 100644
index 00000000000..bd85027852c
--- /dev/null
+++ b/phoenix-client-parent/phoenix-client-embedded/pom.xml
@@ -0,0 +1,66 @@
+
+
+
+ 4.0.0
+
+ org.apache.phoenix
+ phoenix-client-parent
+ 5.1.0-SNAPSHOT
+
+ phoenix-client-embedded
+ Phoenix Client Embedded
+ Phoenix Client without logging implementation
+ jar
+
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+
+
+ embedded-shaded
+ package
+
+ shade
+
+
+ true
+ false
+ true
+ ${basedir}/target/pom.xml
+
+
+ *:*
+
+
+ org.apache.phoenix:phoenix-client
+ xom:xom
+ org.slf4j:slf4j-log4j12
+
+
+
+
+
+
+
+
+
+
diff --git a/phoenix-client-parent/phoenix-client/pom.xml b/phoenix-client-parent/phoenix-client/pom.xml
new file mode 100644
index 00000000000..7a70bc956a5
--- /dev/null
+++ b/phoenix-client-parent/phoenix-client/pom.xml
@@ -0,0 +1,66 @@
+
+
+
+ 4.0.0
+
+ org.apache.phoenix
+ phoenix-client-parent
+ 5.1.0-SNAPSHOT
+
+ phoenix-client
+ Phoenix Client
+ Phoenix Client
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+
+
+ default-shaded
+ package
+
+ shade
+
+
+ true
+ false
+ true
+ ${basedir}/target/pom.xml
+
+
+ *:*
+
+
+ org.apache.phoenix:phoenix-client
+ xom:xom
+
+
+
+
+
+
+
+
+
+
diff --git a/phoenix-client/pom.xml b/phoenix-client-parent/pom.xml
similarity index 64%
rename from phoenix-client/pom.xml
rename to phoenix-client-parent/pom.xml
index f43c42192bf..fd3cbd8fd53 100644
--- a/phoenix-client/pom.xml
+++ b/phoenix-client-parent/pom.xml
@@ -24,10 +24,10 @@
phoenix
5.1.0-SNAPSHOT
- phoenix-client
- Phoenix Client
- Phoenix Client
- jar
+ phoenix-client-parent
+ Phoenix Client Parent
+ Common configuration for the Phoenix Client Variants
+ pom
true
@@ -89,23 +89,20 @@
org/apache/hadoop/yarn/factory/providers/package-info.class
org/apache/hadoop/yarn/client/api/impl/package-info.class
org/apache/hadoop/yarn/client/api/package-info.class
- webapps/*
- webapps/**/*
+ webapps/**
org.apache.commons:commons-math3
- assets/*
- assets/**/*
+ assets/**
org.apache.hbase:hbase-server
- hbase-webapps/*
- hbase-webapps/**/*
+ hbase-webapps/**
@@ -141,33 +138,23 @@
org/
${shaded.package}.org.
- org/apache/hadoop/*
- org/apache/hadoop/**/*
+ org/apache/hadoop/**
- org/apache/htrace/*
- org/apache/htrace/**/*
- org/slf4j/*
- org/slf4j/**/*
- org/apache/commons/logging/*
- org/apache/commons/logging/**/*
- org/apache/log4j/*
- org/apache/log4j/**/*
- **/pom.xml
+ org/apache/htrace/**
+ org/slf4j/**
+ org/apache/commons/logging/**
+ org/apache/log4j/**
- org/ietf/jgss/*
- org/omg/**/*
- org/w3c/dom/*
- org/w3c/dom/**/*
- org/xml/sax/*
- org/xml/sax/**/*
+ org/ietf/jgss/**
+ org/omg/**
+ org/w3c/dom/**
+ org/xml/sax/**
- org/apache/hbase/*
- org/apache/hbase/**/*
+ org/apache/hbase/**
- org/apache/phoenix/*
- org/apache/phoenix/**/*
+ org/apache/phoenix/**
@@ -175,33 +162,23 @@
com/
${shaded.package}.com.
- **/pom.xml
- com/sun/tools/*
- com/sun/javadoc/*
- com/sun/security/*
- com/sun/jndi/*
- com/sun/management/*
- com/sun/tools/**/*
- com/sun/javadoc/**/*
- com/sun/security/**/*
- com/sun/jndi/**/*
- com/sun/management/**/*
+ com/sun/tools/**
+ com/sun/javadoc/**
+ com/sun/security/**
+ com/sun/jndi/**
+ com/sun/management/**
io/
${shaded.package}.io.
- **/pom.xml
- io/compression/*
- io/compression/**/*
- io/mapfile/*
- io/mapfile/**/*
+ io/compression/**
+ io/mapfile/**
io/map/index/*
- io/seqfile/*
- io/seqfile/**/*
+ io/seqfile/**
io/file/buffer/size
io/skip/checksum/errors
io/sort/*
@@ -212,39 +189,25 @@
javax/el/
${shaded.package}.javax.el.
-
- **/pom.xml
-
javax/cache/
${shaded.package}.javax.cache.
-
- **/pom.xml
-
javax/servlet/
${shaded.package}.javax.servlet.
-
- **/pom.xml
-
javax/ws/
${shaded.package}.javax.ws.
-
- **/pom.xml
-
net/
${shaded.package}.net.
- **/pom.xml
- net/topology/*
- net/topology/**/*
+ net/topology/**
@@ -257,102 +220,34 @@
co/
${shaded.package}.co.
-
- **/pom.xml
-
it/
${shaded.package}.it.
-
- **/pom.xml
-
javassist/
${shaded.package}.javassist.
-
- **/pom.xml
-
jersey/
${shaded.package}.jersey.
-
- **/pom.xml
-
jline/
${shaded.package}.jline.
-
- **/pom.xml
-
mozilla/
${shaded.package}.mozilla.
-
- **/pom.xml
-
tables/
${shaded.package}.tables.
-
- **/pom.xml
-
-
-
- default-shaded
- package
-
- shade
-
-
- true
- false
- true
- ${basedir}/target/pom.xml
-
-
- *:*
-
-
- org.apache.phoenix:phoenix-client
- xom:xom
-
-
-
-
-
- embedded-shaded
- package
-
- shade
-
-
- true
- embedded
- true
- false
-
-
- *:*
-
-
- org.apache.phoenix:phoenix-client
- xom:xom
- org.slf4j:slf4j-log4j12
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
index 40ec191354f..3b4724355c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,7 +45,8 @@
phoenix-hbase-compat-2.1.6
phoenix-core
phoenix-pherf
- phoenix-client
+ phoenix-client-parent/phoenix-client
+
phoenix-server
phoenix-assembly
phoenix-tools
@@ -1646,6 +1647,17 @@
+
+ embedded
+
+
+ !skip.embedded
+
+
+
+ phoenix-client-parent/phoenix-client-embedded
+
+
spotbugs-site