Download Jersey 1.9-ea01 User Guide

Transcript
Dependencies
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.9-ea01</version>
</dependency>
And the following repositories need to be added to the pom:
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
<repository>
<id>maven-repository.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
Non-maven developers require:
• jersey-server.jar
[http://download.java.net/maven/2/com/sun/jersey/jersey-server/1.9-ea01/jerseyserver-1.9-ea01.jar] ,
• jersey-core.jar
core-1.9-ea01.jar] ,
[http://download.java.net/maven/2/com/sun/jersey/jersey-core/1.9-ea01/jersey-
• asm.jar [http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.jar]
or, if using the jersey-bundle:
• jersey-bundle.jar
[http://download.java.net/maven/2/com/sun/jersey/jersey-bundle/1.9-ea01/jerseybundle-1.9-ea01.jar] ,
• asm.jar [http://repo1.maven.org/maven2/asm/asm/3.1/asm-3.1.jar]
For Ant developers the Ant Tasks for Maven [http://maven.apache.org/ant-tasks.html] may be used to add
the following to the ant document such that the dependencies do not need to be downloaded explicitly:
<artifact:dependencies pathId="dependency.classpath">
<dependency groupId="com.sun.jersey"
artifactId="jersey-server"
version="1.9-ea01"/>
<artifact:remoteRepository id="maven2-repository.java.net"
url="http://download.java.net/maven/2/" />
<artifact:remoteRepository id="maven-repository.java.net"
url="http://download.java.net/maven/1"
layout="legacy" />
</artifact:dependencies>
The path id “dependency.classpath” may then be referenced as the classpath to
be used for compiling or executing. Specifically the asm.jar [http://repo1.maven.org/
maven2/asm/asm/3.1/asm-3.1.jar] dependency is required when either of the following
com.sun.jersey.api.core.ResourceConfig [http://jersey.java.net/nonav/apidocs/1.9-ea01/jersey/com/sun/
jersey/api/core/ResourceConfig.html] implementations are utilized:
70