From 94220ad880ab72297c47249a4990377890e18364 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Tue, 14 Aug 2018 22:24:56 +0100 Subject: [PATCH] Maven configuration for the database extension --- extensions/database/pom.xml | 155 ++++++++++++++++++ .../extension/database/DatabaseUtils.java | 8 +- .../database/cmd/ConnectCommand.java | 2 +- .../database/cmd/ExecuteQueryCommand.java | 2 +- .../database/cmd/TestQueryCommand.java | 2 +- extensions/pom.xml | 1 + 6 files changed, 163 insertions(+), 7 deletions(-) create mode 100644 extensions/database/pom.xml diff --git a/extensions/database/pom.xml b/extensions/database/pom.xml new file mode 100644 index 000000000..e304c8f6d --- /dev/null +++ b/extensions/database/pom.xml @@ -0,0 +1,155 @@ + + 4.0.0 + + org.openrefine + database + jar + 3.0-SNAPSHOT + + OpenRefine - Database extension + Connections to SQL databases for import and export + http://openrefine.org/ + + org.openrefine + extensions + 3.0-SNAPSHOT + + + + openrefine-database + + + src + + + tests/src + module/MOD-INF/classes + + + org.codehaus.mojo + build-helper-maven-plugin + 1.8 + + + generate-sources + + add-source + + + + src + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + 1.8 + 1.8 + UTF-8 + false + + + + org.apache.maven.plugins + maven-resources-plugin + 2.6 + + UTF-8 + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + + tests/conf/tests.xml + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.1 + + true + + + + + + + + + org.openrefine + main + 3.0-SNAPSHOT + + + javax.servlet + servlet-api + 2.5 + provided + + + org.postgresql + postgresql + 42.1.4 + + + org.apache.httpcomponents + httpclient + 4.5.6 + + + com.google.http-client + google-http-client-jackson2 + 1.24.1 + + + mysql + mysql-connector-java + 5.1.46 + + + org.jasypt + jasypt + 1.9.2 + + + org.mariadb.jdbc + mariadb-java-client + 2.2.6 + + + com.fasterxml.jackson.core + jackson-databind + 2.9.1 + + + com.fasterxml.jackson.core + jackson-annotations + 2.9.1 + + + + + org.testng + testng + 6.9.10 + test + + + + + + diff --git a/extensions/database/src/com/google/refine/extension/database/DatabaseUtils.java b/extensions/database/src/com/google/refine/extension/database/DatabaseUtils.java index db6960581..d9ab268bb 100644 --- a/extensions/database/src/com/google/refine/extension/database/DatabaseUtils.java +++ b/extensions/database/src/com/google/refine/extension/database/DatabaseUtils.java @@ -34,10 +34,10 @@ import java.util.ArrayList; import java.util.List; import java.util.ListIterator; -import org.codehaus.jackson.JsonGenerationException; -import org.codehaus.jackson.JsonParseException; -import org.codehaus.jackson.map.JsonMappingException; -import org.codehaus.jackson.map.ObjectMapper; +import com.fasterxml.jackson.core.JsonGenerationException; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/extensions/database/src/com/google/refine/extension/database/cmd/ConnectCommand.java b/extensions/database/src/com/google/refine/extension/database/cmd/ConnectCommand.java index 014b30930..3d1b6d753 100644 --- a/extensions/database/src/com/google/refine/extension/database/cmd/ConnectCommand.java +++ b/extensions/database/src/com/google/refine/extension/database/cmd/ConnectCommand.java @@ -36,7 +36,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.http.HttpStatus; -import org.codehaus.jackson.map.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectMapper; import org.json.JSONWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/extensions/database/src/com/google/refine/extension/database/cmd/ExecuteQueryCommand.java b/extensions/database/src/com/google/refine/extension/database/cmd/ExecuteQueryCommand.java index 90a0dd387..b22fad3ff 100644 --- a/extensions/database/src/com/google/refine/extension/database/cmd/ExecuteQueryCommand.java +++ b/extensions/database/src/com/google/refine/extension/database/cmd/ExecuteQueryCommand.java @@ -36,7 +36,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.http.HttpStatus; -import org.codehaus.jackson.map.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectMapper; import org.json.JSONWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/extensions/database/src/com/google/refine/extension/database/cmd/TestQueryCommand.java b/extensions/database/src/com/google/refine/extension/database/cmd/TestQueryCommand.java index a728fc1bd..2a7916adb 100644 --- a/extensions/database/src/com/google/refine/extension/database/cmd/TestQueryCommand.java +++ b/extensions/database/src/com/google/refine/extension/database/cmd/TestQueryCommand.java @@ -36,7 +36,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.http.HttpStatus; -import org.codehaus.jackson.map.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectMapper; import org.json.JSONWriter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/extensions/pom.xml b/extensions/pom.xml index 479944e3e..6e9198e52 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -20,6 +20,7 @@ jython wikidata + database