users@jersey.java.net

Re: [Jersey] Continue mavenization of jersey

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Mon, 16 Jun 2008 10:47:20 +0200

Hi Chris,

On Sat, 2008-06-14 at 07:17 -0700, Chris Wilkes wrote:
> Speaking of jersey-spring would it be possible to update jersey-
> spring's 0.8-sea-SNAPSHOT's pom.xml to have this for the spring version:
> <spring25-release-version>[2.5.2,)</spring25-release-version>
> The [2.5.2,) notation means 2.5.2 or newer. That way I can include
> 2.5.4 in my own pom.xml an I won't get the 2.5.2 jars that spring-
> jersey demands.
>
> I've only tested this with maven 2.0.9 so I'm not sure if this is a
> new feature or not.
Sounds interesting! Can you please give some hint where to find a
specification/description of this?

Until we're sure that this is what we want, can you just exclude the
spring-dependencies coming with jersey-spring? Is should look somehow
like this:

        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-spring</artifactId>
            <version>0.8-ea-SNAPSHOT</version>
            <exclusions>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring</artifactId>
               </exclusion>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-core</artifactId>
               </exclusion>
               <exclusion>
                   <groupId>org.springframework</groupId>
                   <artifactId>spring-webmvc</artifactId>
               </exclusion>
           </exclusions>
        </dependency>

Cheers,
Martin


On Sat, 2008-06-14 at 07:17 -0700, Chris Wilkes wrote:
> On Jun 13, 2008, at 12:37 AM, Martin Grotzke wrote:
> >
> > On Fri, 2008-06-13 at 09:15 +0200, Jakub Podlesak wrote:
> >>
> >> i have also commented out all modules but [contribs] in [jersey-
> >> project], so that it does not
> >> try to redeploy [jersey] (deployed separately for the time being).
> >>
> >> what is published now at m2 java.net repo should work, i have
> >> tested a simple project
> >> with [jersey-spring] dependency having cleaned my local repos in
> >> advance.
> >> Could you please double-check? I can then configure auto-deployment
> >> of [jersey-contribs] from Hudson.
> >> It will be done by % cd jersey ; mvn clean deploy
> > I'll give feedback when I find time to double check, not sure if I can
> > do this today.
>
> Speaking of jersey-spring would it be possible to update jersey-
> spring's 0.8-sea-SNAPSHOT's pom.xml to have this for the spring version:
> <spring25-release-version>[2.5.2,)</spring25-release-version>
> The [2.5.2,) notation means 2.5.2 or newer. That way I can include
> 2.5.4 in my own pom.xml an I won't get the 2.5.2 jars that spring-
> jersey demands.
>
> I've only tested this with maven 2.0.9 so I'm not sure if this is a
> new feature or not.
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net