From 8a6bcb3d2a36343fae3feb3357bfea17be18239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Chicchiricc=C3=B2?= Date: Tue, 29 Apr 2014 16:36:59 +0200 Subject: [PATCH] [OLINGO-262] Additional ext sub-module provided for specific usage with Android --- ext/client-core-android/pom.xml | 82 +++++++++++++++++++ ext/pom.xml | 41 ++++++++++ .../commons/core/data/AtomDeserializer.java | 3 +- .../commons/core/data/AtomSerializer.java | 3 +- pom.xml | 6 ++ 5 files changed, 133 insertions(+), 2 deletions(-) create mode 100644 ext/client-core-android/pom.xml create mode 100644 ext/pom.xml diff --git a/ext/client-core-android/pom.xml b/ext/client-core-android/pom.xml new file mode 100644 index 000000000..b58498047 --- /dev/null +++ b/ext/client-core-android/pom.xml @@ -0,0 +1,82 @@ + + + + 4.0.0 + + olingo-client-core-android + jar + ${project.artifactId} + + + org.apache.olingo + olingo-ext + 0.1.0-SNAPSHOT + .. + + + + + org.apache.olingo + olingo-client-core + ${project.version} + + + + com.fasterxml.jackson.core + jackson-databind + + + + + + + org.sonatype.plugins + jarjar-maven-plugin + true + + + package + + jarjar + + + + javax.xml.stream:stax-api + org.codehaus.woodstox:stax2-api + com.fasterxml.jackson.dataformat:jackson-dataformat-xml + com.fasterxml:aalto-xml + org.apache.olingo:olingo-commons-core + + + + javax.xml.stream.** + org.apache.olingo.javax.xml.stream.@1 + + + + + + + + + diff --git a/ext/pom.xml b/ext/pom.xml new file mode 100644 index 000000000..37c943630 --- /dev/null +++ b/ext/pom.xml @@ -0,0 +1,41 @@ + + + + 4.0.0 + + org.apache.olingo + olingo-ext + pom + ${project.artifactId} + + + org.apache.olingo + olingo-parent + 0.1.0-SNAPSHOT + .. + + + + client-core-android + + diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomDeserializer.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomDeserializer.java index cd1852a7a..fb9b0dfa9 100644 --- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomDeserializer.java +++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomDeserializer.java @@ -18,6 +18,7 @@ */ package org.apache.olingo.commons.core.data; +import com.fasterxml.aalto.stax.InputFactoryImpl; import org.apache.olingo.commons.core.data.v4.AtomDeltaImpl; import org.apache.olingo.commons.core.domain.v4.ODataDeltaLinkImpl; import org.apache.olingo.commons.core.domain.v4.ODataDeletedEntityImpl; @@ -48,7 +49,7 @@ import org.apache.olingo.commons.core.edm.EdmTypeInfo; public class AtomDeserializer extends AbstractAtomDealer { - protected static final XMLInputFactory FACTORY = XMLInputFactory.newInstance(); + protected static final XMLInputFactory FACTORY = new InputFactoryImpl(); private final AtomGeoValueDeserializer geoDeserializer; diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomSerializer.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomSerializer.java index 68782d466..0fdab4230 100644 --- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomSerializer.java +++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/data/AtomSerializer.java @@ -18,6 +18,7 @@ */ package org.apache.olingo.commons.core.data; +import com.fasterxml.aalto.stax.OutputFactoryImpl; import java.io.Writer; import java.util.Collections; import java.util.List; @@ -42,7 +43,7 @@ import org.apache.olingo.commons.core.edm.EdmTypeInfo; public class AtomSerializer extends AbstractAtomDealer { - private static final XMLOutputFactory FACTORY = XMLOutputFactory.newInstance(); + private static final XMLOutputFactory FACTORY = new OutputFactoryImpl(); private final AtomGeoValueSerializer geoSerializer; diff --git a/pom.xml b/pom.xml index f10e77d2d..18c133b91 100644 --- a/pom.xml +++ b/pom.xml @@ -59,6 +59,7 @@ lib + ext fit @@ -317,6 +318,11 @@ + + org.sonatype.plugins + jarjar-maven-plugin + 1.8 +