[jackson-jaxrs-providers] 03/162: ...

Timo Aaltonen tjaalton at moszumanska.debian.org
Mon Sep 8 22:16:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

tjaalton pushed a commit to branch master
in repository jackson-jaxrs-providers.

commit 3a1695e426c98da84fec8fdbf7223e7cfc2d7e27
Author: Tatu Saloranta <tsaloranta at gmail.com>
Date:   Mon Feb 4 13:45:59 2013 -0800

    ...
---
 json/pom.xml | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 pom.xml      |   7 ++--
 2 files changed, 111 insertions(+), 2 deletions(-)

diff --git a/json/pom.xml b/json/pom.xml
new file mode 100644
index 0000000..8c3dad2
--- /dev/null
+++ b/json/pom.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ |  Copyright 2012 FasterXML.com
+ |
+ |  Licensed 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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion> 
+
+  <parent>
+    <groupId>com.fasterxml.jackson.jaxrs</groupId>
+    <artifactId>jackson-jaxrs-providers</artifactId>
+    <version>2.2.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>jackson-jaxrs-json-provider</artifactId>
+  <name>Jackson-JAXRS-JSON</name>
+  <description>Functionality to handle JSON input/output for JAX-RS implementations (like Jersey and RESTeasy) using standard Jackson data binding.
+  </description>
+
+  <properties>
+    <osgi.export>${project.groupId}.json.*;version=${project.version}</osgi.export>
+    <!-- NOTE: JAXB annotations module is optional dependency, need to try to mark
+         as such here.
+      -->
+    <osgi.import>javax.ws.rs
+,javax.ws.rs.core
+,javax.ws.rs.ext
+,com.fasterxml.jackson.annotation
+,com.fasterxml.jackson.core
+,com.fasterxml.jackson.core.type
+,com.fasterxml.jackson.core.util
+,com.fasterxml.jackson.databind
+,com.fasterxml.jackson.databind.introspect
+,com.fasterxml.jackson.databind.type
+,com.fasterxml.jackson.databind.util
+,com.fasterxml.jackson.module.jaxb;resolution:=optional
+</osgi.import>
+  </properties>
+
+  <dependencies>
+    <!-- Extends Jackson core, mapper, and also (sort of optionally) on JAXB annotation handler -->
+    <dependency>
+      <groupId>com.fasterxml.jackson.core</groupId>
+      <artifactId>jackson-core</artifactId>
+      <version>${version.jackson.core}</version>
+    </dependency>
+    <dependency>
+      <groupId>com.fasterxml.jackson.core</groupId>
+      <artifactId>jackson-databind</artifactId>
+      <version>${version.jackson.core}</version>
+    </dependency>
+    <!-- also need JAXB annotation support -->
+    <dependency> 
+      <groupId>com.fasterxml.jackson.module</groupId>
+      <artifactId>jackson-module-jaxb-annotations</artifactId>
+      <version>${version.jackson.jaxb}</version>
+    </dependency>
+
+    <!-- and we need JAX-RS annotations as well; but usually provided by container
+        (and app should definitely have direct dep too, when using annotations)
+       -->
+    <dependency>
+      <groupId>javax.ws.rs</groupId>
+      <artifactId>jsr311-api</artifactId>
+      <version>1.1.1</version>
+      <scope>provided</scope>
+    </dependency>
+
+     <!-- and for testing, JUnit (or TestNG?) is needed -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.10</version>
+      <scope>test</scope>
+    </dependency>
+    <!-- tests require JAX-RS impl; otherwise components fail to load
+        (some oddity with API classes; should NOT be needed...)
+
+        NOTE: use 1.2 as that's JDK 1.5; later (1.8) versions need JDK 1.6
+      -->
+    <dependency>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-core</artifactId>
+      <version>1.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.sun.jersey</groupId>
+      <artifactId>jersey-server</artifactId>
+      <version>1.2</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>
diff --git a/pom.xml b/pom.xml
index 255d5e1..2cd03d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,8 +43,11 @@
     <url>http://github.com/FasterXML/jackson-jaxrs-json-providers</url>    
   </scm>
   <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <version.jackson>2.2.0-SNAPSHOT</version.jackson>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
+    <!-- core/databind should have same version; annotations may differ -->
+    <version.jackson.core>2.2.0-SNAPSHOT</version.jackson.core>
+    <version.jackson.annotations>2.2.0-SNAPSHOT</version.jackson.annotations>
+    <version.jackson.jaxb>2.2.0-SNAPSHOT</version.jackson.jaxb>
   </properties>
 
   <dependencies>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-jaxrs-providers.git



More information about the pkg-java-commits mailing list