A Christmas present for Jersey ant users?

!/bin/bash

version=1.0.1

function getJerseyModule {
    curl http://download.java.net/maven/2/com/sun/jersey/$1/${version}/{$1-${version}.jar} -o "#1"
}

for module in jersey-core jersey-server jersey-client; do
    getJerseyModule $module
done

curl http://download.java.net/maven/2/javax/ws/rs/jsr311-api/1.0/{jsr311-api-1.0.jar} -o "#1"
curl http://repo1.maven.org/maven2/asm/asm/3.1/{asm-3.1.jar} -o "#1"

I jest of course :-) but there is a serious point.

Since we moved to maven we longer provide a zip of Jersey. This has advantages because we no longer have to get approval to bundle and then bundle third party jars, especially for samples that could depend on many things, making for a rather large download.

But perhaps for ant users we can make it a little easier to obtain the core Jersey jars and dependencies. What do Jersey ant users prefer?

  1. download a script that when run downloads the core Jersey jars and dependencies; or
  2. download a zip containing the same jars as would be downloaded in 1).
Comments:

Please please please give us a normal zip file. I loathe maven, and I know a ton of others that do as well.

Posted by ben on January 13, 2009 at 05:16 AM CET #

@Ben: you can download the zip file at http://download.java.net/maven/2/com/sun/jersey/jersey-archive/1.0.2-SNAPSHOT/jersey-archive-1.0.2-SNAPSHOT.zip

Posted by Jakub on January 23, 2009 at 02:19 PM CET #

Hi Paul,

To use Jersey, so far I found out two ways;
1-Using web.xml in WebContent\\WEB-INF of web applications, or

2-using POM.XML and using Maven.

Is there anyway that I can setup my point out my Jersey in an application-context.xml file, but without having my application as a web application or using Maven?

thanks,

Posted by Amir on February 03, 2009 at 08:36 AM CET #

What do you mean by "application-context.xml " do you mean configuring in some Spring way?

You can use Jersey with Grizzly
without requiring a web-app, you can configure up by coding (no XML required). Some of the maven-based samples do that (like the helloworld sample). But you are not required to use maven, you can use ant if you like, or say java -jar <app>.jar. You just need to resolve the dependencies correctly, see here for more details:

https://jersey.dev.java.net/source/browse/\*checkout\*/jersey/tags/jersey-1.0.1/jersey/dependencies.html/jersey/dependencies.html

Paul.

Posted by Paul Sandoz on February 03, 2009 at 08:44 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

sandoz

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today