From f7476138ee82e9e069c901c5b5c86c5516453a40 Mon Sep 17 00:00:00 2001 From: Josh Elser Date: Fri, 13 Mar 2015 17:27:54 -0400 Subject: [PATCH] HBASE-13236 Add addt'l lifecycle-mapping executions. Adds a number of lifecycle-mapping entries which prevent errors from showing up in Eclipse on a fresh import of HBase. For plugins defined in the top-level pom, the mapping is added there; otherwise, the mapping is pushed down to the child pom. --- hbase-client/pom.xml | 29 +++++++++++++++++++++++ hbase-common/pom.xml | 26 +++++++++++++++++++++ hbase-examples/pom.xml | 42 +++++++++++++++++++++++++++++++++ hbase-hadoop-compat/pom.xml | 29 +++++++++++++++++++++++ hbase-hadoop2-compat/pom.xml | 13 +++++++++++ hbase-it/pom.xml | 38 ++++++++++++++++++++++++++++++ hbase-prefix-tree/pom.xml | 29 +++++++++++++++++++++++ hbase-rest/pom.xml | 29 +++++++++++++++++++++++ hbase-server/pom.xml | 26 +++++++++++++++++++++ hbase-shell/pom.xml | 40 +++++++++++++++++++++++++++++++- hbase-thrift/pom.xml | 55 ++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 47 ++++++++++++++++++++++++++++++++++++- 12 files changed, 401 insertions(+), 2 deletions(-) diff --git a/hbase-client/pom.xml b/hbase-client/pom.xml index 29fa4fe..dc9f64f 100644 --- a/hbase-client/pom.xml +++ b/hbase-client/pom.xml @@ -91,6 +91,35 @@ maven-source-plugin + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + + diff --git a/hbase-common/pom.xml b/hbase-common/pom.xml index c95aaf7..a1dae83 100644 --- a/hbase-common/pom.xml +++ b/hbase-common/pom.xml @@ -187,6 +187,32 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + diff --git a/hbase-examples/pom.xml b/hbase-examples/pom.xml index a149f52..d881d0d 100644 --- a/hbase-examples/pom.xml +++ b/hbase-examples/pom.xml @@ -82,6 +82,48 @@ maven-source-plugin + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + + diff --git a/hbase-hadoop-compat/pom.xml b/hbase-hadoop-compat/pom.xml index 0c3c2bf..9bf3eb9 100644 --- a/hbase-hadoop-compat/pom.xml +++ b/hbase-hadoop-compat/pom.xml @@ -95,6 +95,35 @@ maven-source-plugin + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + + diff --git a/hbase-hadoop2-compat/pom.xml b/hbase-hadoop2-compat/pom.xml index e88b854..ebce0a3 100644 --- a/hbase-hadoop2-compat/pom.xml +++ b/hbase-hadoop2-compat/pom.xml @@ -139,6 +139,19 @@ limitations under the License. + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml index 4b9f850..da45602 100644 --- a/hbase-it/pom.xml +++ b/hbase-it/pom.xml @@ -115,6 +115,44 @@ + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + diff --git a/hbase-prefix-tree/pom.xml b/hbase-prefix-tree/pom.xml index a97de92..582dac1 100644 --- a/hbase-prefix-tree/pom.xml +++ b/hbase-prefix-tree/pom.xml @@ -90,6 +90,35 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + + diff --git a/hbase-rest/pom.xml b/hbase-rest/pom.xml index 5fd7319..5f4bea3 100644 --- a/hbase-rest/pom.xml +++ b/hbase-rest/pom.xml @@ -147,6 +147,35 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-antrun-plugin + [1.6,) + + run + + + + + + + + + + + + diff --git a/hbase-server/pom.xml b/hbase-server/pom.xml index 6df5293..a24d23b 100644 --- a/hbase-server/pom.xml +++ b/hbase-server/pom.xml @@ -276,6 +276,32 @@ + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + diff --git a/hbase-shell/pom.xml b/hbase-shell/pom.xml index bdba00c..c367f9f 100644 --- a/hbase-shell/pom.xml +++ b/hbase-shell/pom.xml @@ -170,7 +170,45 @@ ${surefire.firstPartGroups} - + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + diff --git a/hbase-thrift/pom.xml b/hbase-thrift/pom.xml index c07a417..2a1bde9 100644 --- a/hbase-thrift/pom.xml +++ b/hbase-thrift/pom.xml @@ -171,6 +171,61 @@ maven-source-plugin + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-antrun-plugin + [1.6,) + + run + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [2.8,) + + build-classpath + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + [3.2,) + + compile + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index b6e23c0..83dfdeb 100644 --- a/pom.xml +++ b/pom.xml @@ -658,11 +658,56 @@ rogue maven plugins that leak classloaders, modify random files inside workspace or throw nasty exceptions to fail the build --> + to decide what they want to bind, sans jacoco which is defined in this pom. --> org.eclipse.m2e lifecycle-mapping 1.0.0 + + + + + + org.jacoco + jacoco-maven-plugin + [0.6.2.201302030002,) + + prepare-agent + + + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + [1.0.1,) + + enforce + + + + + + + + + org.apache.maven.plugins + maven-remote-resources-plugin + [1.4,) + + process + + + + + + + + + -- 2.1.2