From 09481ce2cfd7b0f2d29f739f8c07152abe97d767 Mon Sep 17 00:00:00 2001 From: MyXOF Date: Tue, 8 Jan 2019 15:00:12 +0800 Subject: [PATCH 1/3] remove antrun plugin and use maven-jar-plugin --- iotdb-cli/pom.xml | 33 +++++++-------------------------- iotdb/pom.xml | 35 +++++++---------------------------- 2 files changed, 14 insertions(+), 54 deletions(-) diff --git a/iotdb-cli/pom.xml b/iotdb-cli/pom.xml index 11ad2cec4..ddf062600 100644 --- a/iotdb-cli/pom.xml +++ b/iotdb-cli/pom.xml @@ -47,7 +47,6 @@ maven-clean-plugin - 3.1.0 @@ -63,7 +62,6 @@ org.apache.maven.plugins maven-dependency-plugin - 2.10 copy-dependencies @@ -77,30 +75,13 @@ - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - copy-native-libraries - package - - run - - - - - - - - - - - - - - + + org.apache.maven.plugins + maven-jar-plugin + + ${project.basedir}/cli/lib + + org.apache.maven.plugins maven-surefire-plugin diff --git a/iotdb/pom.xml b/iotdb/pom.xml index 0b7310130..b9fa712bc 100644 --- a/iotdb/pom.xml +++ b/iotdb/pom.xml @@ -81,7 +81,6 @@ maven-clean-plugin - 3.1.0 @@ -111,7 +110,6 @@ org.apache.maven.plugins maven-dependency-plugin - 2.10 copy-dependencies @@ -125,7 +123,13 @@ - + + org.apache.maven.plugins + maven-jar-plugin + + ${project.basedir}/iotdb/lib + + org.apache.maven.plugins maven-surefire-plugin @@ -140,31 +144,6 @@ - - - org.apache.maven.plugins - maven-antrun-plugin - 1.7 - - - copy-native-libraries - package - - run - - - - - - - - - - - - - - - org.antlr - antlr3-maven-plugin - ${antlr3.version} + org.antlr + antlr-runtime + ${antlr3.version} + + + + org.apache.commons + commons-lang3 + ${common.lang3.version} @@ -94,6 +102,7 @@ + org.antlr antlr3-maven-plugin diff --git a/iotdb/src/main/java/cn/edu/tsinghua/iotdb/sql/parse/ASTNode.java b/iotdb/src/main/java/cn/edu/tsinghua/iotdb/sql/parse/ASTNode.java index 817988e08..e740691c2 100644 --- a/iotdb/src/main/java/cn/edu/tsinghua/iotdb/sql/parse/ASTNode.java +++ b/iotdb/src/main/java/cn/edu/tsinghua/iotdb/sql/parse/ASTNode.java @@ -10,9 +10,7 @@ import org.antlr.runtime.Token; import org.antlr.runtime.tree.CommonTree; import org.antlr.runtime.tree.Tree; - -import org.codehaus.plexus.util.StringUtils; - +import org.apache.commons.lang3.StringUtils;; public class ASTNode extends CommonTree implements Node, Serializable { private static final long serialVersionUID = 1L; From 7708e3b938c1f0c01687cbcf84147709210e9dcf Mon Sep 17 00:00:00 2001 From: MyXOF Date: Tue, 8 Jan 2019 18:02:35 +0800 Subject: [PATCH 3/3] remove useless dependency --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index f18b42dbf..b8dda9396 100644 --- a/pom.xml +++ b/pom.xml @@ -84,11 +84,6 @@ - - ch.qos.logback - logback-classic - ${logback.version} - junit junit