Resolve JAXB license issue, use Eclipselink 77/55477/2
authorliamfallon <liam.fallon@ericsson.com>
Wed, 27 Jun 2018 11:50:17 +0000 (12:50 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Mon, 2 Jul 2018 22:03:18 +0000 (23:03 +0100)
Replaced Glassfish-based JAXB processing with eclipselink based JAXB
processing to resolve license issues.

Updated version of eclipselink from 2.6.2 to 2.6.5

Supporessed warning about use of Java APIs.

Issue-ID: POLICY-905
Change-Id: I68094230b710e971d096decfffdb53b003c5872f
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
model/basic-model/pom.xml
model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/concepts/AxKeyInformation.java
model/model-api/src/test/resources/models/PolicyModel.xml
model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java
plugins/plugins-event/plugins-event-carrier/plugins-event-carrier-kafka/pom.xml
plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-xml/pom.xml
pom.xml
testsuites/integration/integration-uservice-test/pom.xml

index 8d11fe5..a13bab5 100644 (file)
@@ -41,7 +41,7 @@
         <dependency>
             <groupId>org.eclipse.persistence</groupId>
             <artifactId>eclipselink</artifactId>
-            <version>2.6.2</version>
+            <version>${version.eclipselink}</version>
         </dependency>
     </dependencies>
 
@@ -70,4 +70,4 @@
             </plugin>
         </plugins>
     </build>
-</project>
\ No newline at end of file
+</project>
index 2ddbe5d..6590ff4 100644 (file)
@@ -457,4 +457,4 @@ public class AxKeyInformation extends AxConcept implements AxConceptGetter<AxKey
         return new AxConceptGetterImpl<>((NavigableMap<AxArtifactKey, AxKeyInfo>) keyInfoMap).getAll(conceptKeyName,
                 conceptKeyVersion);
     }
-}
+}
\ No newline at end of file
index a89f73d..684ce32 100644 (file)
         </eventMap>
     </events>
     <albums>
-        <key xmlns="">
+        <key xmlns="http://www.onap.org/policy/apex-pdp">
             <name xmlns="http://www.onap.org/policy/apex-pdp">context</name>
             <version xmlns="http://www.onap.org/policy/apex-pdp">0.0.1</version>
         </key>
-        <albums xmlns="">
+        <albums xmlns="http://www.onap.org/policy/apex-pdp">
             <entry>
                 <key>
                     <name xmlns="http://www.onap.org/policy/apex-pdp">contextAlbum0</name>
         </albums>
     </albums>
     <schemas>
-        <key xmlns="">
+        <key xmlns="http://www.onap.org/policy/apex-pdp">
             <name xmlns="http://www.onap.org/policy/apex-pdp">ContextSchemas</name>
             <version xmlns="http://www.onap.org/policy/apex-pdp">0.0.1</version>
         </key>
-        <schemas xmlns="">
+        <schemas xmlns="http://www.onap.org/policy/apex-pdp">
             <entry>
                 <key>
                     <name xmlns="http://www.onap.org/policy/apex-pdp">MapType</name>
index b4f9d2f..e806bd7 100644 (file)
@@ -36,6 +36,7 @@ import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;
  * <a href="https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083">
  * https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083</a><br>
  */
+@SuppressWarnings("restriction")
 public class ClassBuilder {
     private final Class<?> clazz;
     private final List<ClassBuilder> parameters = new ArrayList<>();
index f9bc167..297b3c4 100644 (file)
@@ -38,7 +38,7 @@
         <dependency>
             <groupId>org.apache.kafka</groupId>
             <artifactId>kafka-clients</artifactId>
-            <version>${kafka.version}</version>
+            <version>${version.kafka}</version>
         </dependency>
     </dependencies>
-</project>
\ No newline at end of file
+</project>
index a200faa..00f2938 100644 (file)
 
     <dependencies>
         <dependency>
-            <groupId>org.jvnet.jaxb2.maven2</groupId>
-            <artifactId>maven-jaxb2-plugin</artifactId>
-            <version>0.14.0</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.codehaus.plexus</groupId>
-                    <artifactId>plexus-utils</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>org.apache.ant</groupId>
-                    <artifactId>ant</artifactId>
-                </exclusion>
-            </exclusions>
+            <groupId>org.eclipse.persistence</groupId>
+            <artifactId>eclipselink</artifactId>
+            <version>${version.eclipselink}</version>
         </dependency>
         <dependency>
             <groupId>org.jvnet.jaxb2_commons</groupId>
             <artifactId>jaxb2-basics-runtime</artifactId>
             <version>1.11.1</version>
         </dependency>
-        <dependency>
-            <groupId>org.apache.ant</groupId>
-            <artifactId>ant</artifactId>
-            <version>1.10.3</version>
-        </dependency>
     </dependencies>
 
     <build>
             </plugin>
         </plugins>
     </build>
-</project>
\ No newline at end of file
+</project>
diff --git a/pom.xml b/pom.xml
index c4eaa5d..12b0d03 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <file.encoding>UTF-8</file.encoding>
         <version.derby>10.13.1.1</version.derby>
         <version.commons-cli>1.4</version.commons-cli>
-
-        <kafka.version>0.10.2.1</kafka.version>
+        <version.kafka>0.10.2.1</version.kafka>
         <version.grizzly2-http>2.27</version.grizzly2-http>
         <version.jersey.core>2.27</version.jersey.core>
+        <version.eclipselink>2.6.5</version.eclipselink>
     </properties>
 
     <distributionManagement>
         <module>packages</module>
         <module>testsuites</module>
     </modules>
-</project>
\ No newline at end of file
+</project>
index 3f3dbcf..5eeeeff 100644 (file)
         <dependency>
             <groupId>org.apache.kafka</groupId>
             <artifactId>kafka_2.11</artifactId>
-            <version>${kafka.version}</version>
+            <version>${version.kafka}</version>
             <scope>test</scope>
             <exclusions>
                 <exclusion>
         <dependency>
             <groupId>org.apache.kafka</groupId>
             <artifactId>kafka_2.11</artifactId>
-            <version>${kafka.version}</version>
+            <version>${version.kafka}</version>
             <classifier>test</classifier>
             <scope>test</scope>
             <exclusions>
         <dependency>
             <groupId>org.apache.kafka</groupId>
             <artifactId>kafka-clients</artifactId>
-            <version>${kafka.version}</version>
+            <version>${version.kafka}</version>
             <classifier>test</classifier>
             <scope>test</scope>
             <exclusions>
         </plugins>
     </build>
 
-</project>
\ No newline at end of file
+</project>