Repository: sentry
Updated Branches:
  refs/heads/master 7a30c819c -> 3be4330c2


SENTRY-1159: Decouple datanucleus dependences for hive-binding V1 and V2 
(Dapeng Sun, reviewed by Colin Ma)


Project: http://git-wip-us.apache.org/repos/asf/sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/3be4330c
Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/3be4330c
Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/3be4330c

Branch: refs/heads/master
Commit: 3be4330c22495648084c5b4e7bc819ef8323f0f6
Parents: 7a30c81
Author: Sun Dapeng <[email protected]>
Authored: Thu Mar 24 13:58:29 2016 +0800
Committer: Sun Dapeng <[email protected]>
Committed: Thu Mar 24 13:58:29 2016 +0800

----------------------------------------------------------------------
 pom.xml                                         | 18 -----
 sentry-binding/sentry-binding-hive/pom.xml      | 21 ++++++
 sentry-provider/sentry-provider-db/pom.xml      | 74 ++++++++++++++++----
 .../db/service/persistent/SentryStore.java      |  1 +
 .../sentry/service/thrift/ServiceConstants.java |  1 +
 .../service/persistent/TestSentryRole.java      |  1 +
 sentry-tests/pom.xml                            | 22 +++++-
 sentry-tests/sentry-tests-hive-v2/pom.xml       | 29 ++++++++
 sentry-tests/sentry-tests-hive/pom.xml          | 20 ++++++
 sentry-tests/sentry-tests-kafka/pom.xml         | 66 ++++++++++++++++-
 sentry-tests/sentry-tests-solr/pom.xml          | 65 ++++++++++++++++-
 sentry-tests/sentry-tests-sqoop/pom.xml         | 62 ++++++++++++++++
 12 files changed, 347 insertions(+), 33 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3393c47..5c4dc4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,9 +63,6 @@ limitations under the License.
     <commons.lang.version>2.6</commons.lang.version>
     <commons.logging.version>1.2</commons.logging.version>
     <curator.version>2.7.1</curator.version>
-    <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
-    <datanucleus-core.version>3.2.12</datanucleus-core.version>
-    <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
     <datanucleus.maven.plugin.version>4.0.1</datanucleus.maven.plugin.version>
     <derby.version>10.10.2.0</derby.version>
     <easymock.version>3.0</easymock.version>
@@ -512,21 +509,6 @@ limitations under the License.
         <version>${jdo-api.version}</version>
       </dependency>
       <dependency>
-        <groupId>org.datanucleus</groupId>
-        <artifactId>datanucleus-core</artifactId>
-        <version>${datanucleus-core.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.datanucleus</groupId>
-        <artifactId>datanucleus-api-jdo</artifactId>
-        <version>${datanucleus-api-jdo.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.datanucleus</groupId>
-        <artifactId>datanucleus-rdbms</artifactId>
-        <version>${datanucleus-rdbms.version}</version>
-      </dependency>
-      <dependency>
         <groupId>org.mockito</groupId>
         <artifactId>mockito-all</artifactId>
         <version>${mockito.version}</version>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-binding/sentry-binding-hive/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-binding/sentry-binding-hive/pom.xml 
b/sentry-binding/sentry-binding-hive/pom.xml
index ff5882e..1a6e420 100644
--- a/sentry-binding/sentry-binding-hive/pom.xml
+++ b/sentry-binding/sentry-binding-hive/pom.xml
@@ -28,8 +28,29 @@ limitations under the License.
   <artifactId>sentry-binding-hive</artifactId>
   <name>Sentry Binding for Hive</name>
 
+  <properties>
+    <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
+    <datanucleus-core.version>3.2.12</datanucleus-core.version>
+    <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
+  </properties>
+
   <dependencies>
     <dependency>
+      <groupId>org.datanucleus</groupId>
+      <artifactId>datanucleus-core</artifactId>
+      <version>${datanucleus-core.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.datanucleus</groupId>
+      <artifactId>datanucleus-api-jdo</artifactId>
+      <version>${datanucleus-api-jdo.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.datanucleus</groupId>
+      <artifactId>datanucleus-rdbms</artifactId>
+      <version>${datanucleus-rdbms.version}</version>
+    </dependency>
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-provider/sentry-provider-db/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/pom.xml 
b/sentry-provider/sentry-provider-db/pom.xml
index bf4dfdc..b6efd1f 100644
--- a/sentry-provider/sentry-provider-db/pom.xml
+++ b/sentry-provider/sentry-provider-db/pom.xml
@@ -138,18 +138,6 @@ limitations under the License.
       <artifactId>jdo-api</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.datanucleus</groupId>
-      <artifactId>datanucleus-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.datanucleus</groupId>
-      <artifactId>datanucleus-api-jdo</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.datanucleus</groupId>
-      <artifactId>datanucleus-rdbms</artifactId>
-    </dependency>
-    <dependency>
       <groupId>com.codahale.metrics</groupId>
       <artifactId>metrics-core</artifactId>
       <version>${metrics.version}</version>
@@ -273,6 +261,68 @@ limitations under the License.
   </build>
   <profiles>
     <profile>
+      <id>datanucleus3</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
+        <datanucleus-core.version>3.2.12</datanucleus-core.version>
+        <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
+      <id>datanucleus4</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>4.2.1</datanucleus-api-jdo.version>
+        <datanucleus-core.version>4.1.6</datanucleus-core.version>
+        <datanucleus-rdbms.version>4.1.7</datanucleus-rdbms.version>
+        <datanucleus-jdo.version>3.2.0-m3</datanucleus-jdo.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>javax.jdo</artifactId>
+          <version>${datanucleus-jdo.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
       <id>thriftif</id>
       <build>
         <plugins>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
----------------------------------------------------------------------
diff --git 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
index c5c5ffb..dbb5d8e 100644
--- 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
+++ 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStore.java
@@ -167,6 +167,7 @@ public class SentryStore {
         ServerConfig.SENTRY_VERIFY_SCHEM_VERSION_DEFAULT).equalsIgnoreCase(
             "true");
     if (!checkSchemaVersion) {
+      prop.setProperty("datanucleus.schema.autoCreateAll", "true");
       prop.setProperty("datanucleus.autoCreateSchema", "true");
       prop.setProperty("datanucleus.fixedDatastore", "false");
     }

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
----------------------------------------------------------------------
diff --git 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
index 94bd2a9..75d90ae 100644
--- 
a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
+++ 
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/ServiceConstants.java
@@ -134,6 +134,7 @@ public class ServiceConstants {
         .put("datanucleus.validateColumns", "false")
         .put("datanucleus.validateConstraints", "false")
         .put("datanucleus.storeManagerType", "rdbms")
+        .put("datanucleus.schema.autoCreateAll", "true")
         .put("datanucleus.autoCreateSchema", "false")
         .put("datanucleus.fixedDatastore", "true")
         .put("datanucleus.autoStartMechanismMode", "checked")

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/generic/service/persistent/TestSentryRole.java
----------------------------------------------------------------------
diff --git 
a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/generic/service/persistent/TestSentryRole.java
 
b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/generic/service/persistent/TestSentryRole.java
index 7b4d3b8..29134fe 100644
--- 
a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/generic/service/persistent/TestSentryRole.java
+++ 
b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/generic/service/persistent/TestSentryRole.java
@@ -60,6 +60,7 @@ public class TestSentryRole {
     prop.setProperty(ServerConfig.JAVAX_JDO_USER, "Sentry");
     prop.setProperty(ServerConfig.JAVAX_JDO_PASS, "Sentry");
     prop.setProperty(ServerConfig.JAVAX_JDO_DRIVER_NAME, 
"org.apache.derby.jdbc.EmbeddedDriver");
+    prop.setProperty("datanucleus.schema.autoCreateAll", "true");
     prop.setProperty("datanucleus.autoCreateSchema", "true");
     prop.setProperty("datanucleus.fixedDatastore", "false");
     prop.setProperty("datanucleus.NontransactionalRead", "false");

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/pom.xml b/sentry-tests/pom.xml
index 88a28bb..86a1409 100644
--- a/sentry-tests/pom.xml
+++ b/sentry-tests/pom.xml
@@ -28,10 +28,30 @@ limitations under the License.
   <packaging>pom</packaging>
 
   <modules>
-    <module>sentry-tests-hive</module>
     <module>sentry-tests-solr</module>
     <module>sentry-tests-sqoop</module>
     <module>sentry-tests-kafka</module>
   </modules>
 
+  <profiles>
+    <profile>
+      <id>hive-authz1</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <modules>
+        <module>sentry-tests-hive</module>
+      </modules>
+    </profile>
+    <profile>
+      <id>hive-authz2</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <modules>
+        <module>sentry-tests-hive-v2</module>
+      </modules>
+    </profile>
+  </profiles>
+
 </project>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/sentry-tests-hive-v2/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive-v2/pom.xml 
b/sentry-tests/sentry-tests-hive-v2/pom.xml
new file mode 100644
index 0000000..90d20a7
--- /dev/null
+++ b/sentry-tests/sentry-tests-hive-v2/pom.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd"; 
xmlns="http://maven.apache.org/POM/4.0.0";
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.sentry</groupId>
+    <artifactId>sentry-tests</artifactId>
+    <version>1.7.0-incubating-SNAPSHOT</version>
+  </parent>
+  <artifactId>sentry-tests-hive-v2</artifactId>
+  <name>Sentry Hive Tests v2</name>
+  <description>end to end tests for sentry-hive-v2 integration</description>
+</project>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/sentry-tests-hive/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive/pom.xml 
b/sentry-tests/sentry-tests-hive/pom.xml
index 472cce7..7a32ba3 100644
--- a/sentry-tests/sentry-tests-hive/pom.xml
+++ b/sentry-tests/sentry-tests-hive/pom.xml
@@ -61,6 +61,16 @@ limitations under the License.
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-metastore</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+        </exclusion>
+      </exclusions>
       <scope>test</scope>
     </dependency>
     <dependency>
@@ -76,6 +86,16 @@ limitations under the License.
     <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-exec</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+        </exclusion>
+      </exclusions>
       <scope>test</scope>
     </dependency>
     <dependency>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/sentry-tests-kafka/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-kafka/pom.xml 
b/sentry-tests/sentry-tests-kafka/pom.xml
index 54c7205..58dc0b0 100644
--- a/sentry-tests/sentry-tests-kafka/pom.xml
+++ b/sentry-tests/sentry-tests-kafka/pom.xml
@@ -61,4 +61,68 @@ limitations under the License.
       <artifactId>sentry-provider-db</artifactId>
     </dependency>
   </dependencies>
-</project>
\ No newline at end of file
+  <profiles>
+    <profile>
+      <id>datanucleus3</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
+        <datanucleus-core.version>3.2.12</datanucleus-core.version>
+        <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
+      <id>datanucleus4</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>4.2.1</datanucleus-api-jdo.version>
+        <datanucleus-core.version>4.1.6</datanucleus-core.version>
+        <datanucleus-rdbms.version>4.1.7</datanucleus-rdbms.version>
+        <datanucleus-jdo.version>3.2.0-m3</datanucleus-jdo.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>javax.jdo</artifactId>
+          <version>${datanucleus-jdo.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+ </profiles>
+</project>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/sentry-tests-solr/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-solr/pom.xml 
b/sentry-tests/sentry-tests-solr/pom.xml
index e90ca06..c88ca85 100644
--- a/sentry-tests/sentry-tests-solr/pom.xml
+++ b/sentry-tests/sentry-tests-solr/pom.xml
@@ -84,5 +84,68 @@ limitations under the License.
       </plugin>
     </plugins>
   </build>
-
+ <profiles>
+    <profile>
+      <id>datanucleus3</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
+        <datanucleus-core.version>3.2.12</datanucleus-core.version>
+        <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
+      <id>datanucleus4</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>4.2.1</datanucleus-api-jdo.version>
+        <datanucleus-core.version>4.1.6</datanucleus-core.version>
+        <datanucleus-rdbms.version>4.1.7</datanucleus-rdbms.version>
+        <datanucleus-jdo.version>3.2.0-m3</datanucleus-jdo.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>javax.jdo</artifactId>
+          <version>${datanucleus-jdo.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+ </profiles>
 </project>

http://git-wip-us.apache.org/repos/asf/sentry/blob/3be4330c/sentry-tests/sentry-tests-sqoop/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-sqoop/pom.xml 
b/sentry-tests/sentry-tests-sqoop/pom.xml
index 3989ced..34fe831 100644
--- a/sentry-tests/sentry-tests-sqoop/pom.xml
+++ b/sentry-tests/sentry-tests-sqoop/pom.xml
@@ -96,6 +96,68 @@ limitations under the License.
     </dependency>
   </dependencies>
   <profiles>
+    <profile>
+      <id>datanucleus3</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>3.2.6</datanucleus-api-jdo.version>
+        <datanucleus-core.version>3.2.12</datanucleus-core.version>
+        <datanucleus-rdbms.version>3.2.12</datanucleus-rdbms.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
+    <profile>
+      <id>datanucleus4</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <properties>
+        <datanucleus-api-jdo.version>4.2.1</datanucleus-api-jdo.version>
+        <datanucleus-core.version>4.1.6</datanucleus-core.version>
+        <datanucleus-rdbms.version>4.1.7</datanucleus-rdbms.version>
+        <datanucleus-jdo.version>3.2.0-m3</datanucleus-jdo.version>
+      </properties>
+      <dependencies>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-core</artifactId>
+          <version>${datanucleus-core.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-api-jdo</artifactId>
+          <version>${datanucleus-api-jdo.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>datanucleus-rdbms</artifactId>
+          <version>${datanucleus-rdbms.version}</version>
+        </dependency>
+        <dependency>
+          <groupId>org.datanucleus</groupId>
+          <artifactId>javax.jdo</artifactId>
+          <version>${datanucleus-jdo.version}</version>
+        </dependency>
+      </dependencies>
+    </profile>
    <profile>
      <id>download-sqoop2</id>
      <activation>

Reply via email to