users@jersey.java.net

Re: [Jersey] Another spring issue

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 19 May 2009 16:30:19 +0200

On May 19, 2009, at 4:23 PM, tarjei wrote:

> On 05/19/2009 10:01 AM, Paul Sandoz wrote:
>> Hi,
>>
>> As a test i removed that module you mentioned and rebuilt the
>> jersey-spring module, and it worked fine. Maven downloaded
>> spring-2.5.6.jar.
>>
>> See below for the maven output.
>>
>
> This proves that other Spring components will depend on
> org.springframework.spring. Less explicit dependencies in the jersey-
> spring package is a good thing.

I did not remove the dependency from the pom (just the artifacts from
the localrepo), it is required as other dependencies do not pull it in:

[INFO] [dependency:tree]
[INFO] com.sun.jersey.contribs:jersey-spring:jar:1.1.1-ea-SNAPSHOT
[INFO] +- com.sun.jersey:jersey-server:jar:1.1.1-ea-SNAPSHOT:compile
[INFO] | +- com.sun.jersey:jersey-core:jar:1.1.1-ea-SNAPSHOT:compile
[INFO] | | \- javax.ws.rs:jsr311-api:jar:1.1:compile
[INFO] | \- asm:asm:jar:3.1:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided
[INFO] +- com.sun.grizzly:grizzly-servlet-webserver:jar:1.9.8:test
[INFO] | +- com.sun.grizzly:grizzly-http:jar:1.9.8:test
[INFO] | | +- com.sun.grizzly:grizzly-framework:jar:1.9.8:test
[INFO] | | +- com.sun.grizzly:grizzly-rcm:jar:1.9.8:test
[INFO] | | \- com.sun.grizzly:grizzly-portunif:jar:1.9.8:test
[INFO] | \- com.sun.grizzly:grizzly-http-servlet:jar:1.9.8:test
[INFO] | \- com.sun.grizzly:grizzly-utils:jar:1.9.8:test
[INFO] +- com.sun.jersey:jersey-client:jar:1.1.1-ea-SNAPSHOT:test
[INFO] +- org.testng:testng:jar:jdk15:5.5:test
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.1.10:test
[INFO] | \- javax.xml.bind:jaxb-api:jar:2.1:test
[INFO] | +- javax.xml.stream:stax-api:jar:1.0-2:test
[INFO] | \- javax.activation:activation:jar:1.1:test
[INFO] +- javax.annotation:jsr250-api:jar:1.0:test
[INFO] +- junit:junit:jar:3.8.1:test
[INFO] +- org.springframework:spring-core:jar:2.5.6:compile
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.springframework:spring:jar:2.5.6:compile
[INFO] +- org.springframework:spring-beans:jar:2.5.6:compile
[INFO] +- org.springframework:spring-context:jar:2.5.6:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-web:jar:2.5.6:compile
[INFO] +- org.springframework:spring-aop:jar:2.5.6:test
[INFO] +- org.aspectj:aspectjrt:jar:1.5.4:test
[INFO] +- org.aspectj:aspectjweaver:jar:1.5.4:test
[INFO] \- cglib:cglib:jar:2.2:test

>
>
> I'm a at loss to explain why the repos I use do not report the
> package as existing, and also why maven suddenly reported this as an
> issue.

Perhaps you should scrub your local repository?

Paul.

> I've been using 1.0.3 for over a month now without this error.
>
>
>
> Kind regards,
> tarjei
>
>
>
>
>> Paul.
>>
>> INFO] Building jersey-spring
>> [INFO] task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] artifact org.codehaus.mojo:buildnumber-maven-plugin:
>> checking for
>> updates from maven2-repository.dev.java.net
>> [INFO] artifact org.codehaus.mojo:buildnumber-maven-plugin:
>> checking for
>> updates from maven-repository.dev.java.net
>> [INFO] [clean:clean]
>> [INFO] Deleting directory
>> /Users/paulsandoz/Projects/jersey/trunk/jersey/contribs/spring/target
>> [INFO] [buildnumber:create {execution: default}]
>> [INFO] Storing buildNumber: 05/19/2009 09:58 AM at timestamp:
>> 1242719887131
>> [INFO] Preparing source:jar
>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
>> invocation.
>> [INFO] [buildnumber:create {execution: default}]
>> [INFO] Storing buildNumber: 05/19/2009 09:58 AM at timestamp:
>> 1242719887141
>> [INFO] [source:jar {execution: attach-sources}]
>> [INFO] Building jar:
>> /Users/paulsandoz/Projects/jersey/trunk/jersey/contribs/spring/
>> target/jersey-spring-1.1.1-ea-SNAPSHOT-sources.jar
>>
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] artifact org.springframework:spring: checking for updates from
>> m1.dev.java.net
>> [INFO] artifact org.springframework:spring: checking for updates from
>> m2.dev.java.net
>> [INFO] artifact org.springframework:spring: checking for updates from
>> central
>> Downloading:
>> http://download.java.net/maven/1/org.springframework/poms/spring-2.5.6.pom
>> Downloading:
>> http://download.java.net/maven/2/org/springframework/spring/2.5.6/spring-2.5.6.pom
>>
>> Downloading:
>> http://repo1.maven.org/maven2/org/springframework/spring/2.5.6/spring-2.5.6.pom
>>
>> 12K downloaded
>> Downloading:
>> http://repo1.maven.org/maven2/org/springframework/spring/2.5.6/spring-2.5.6.jar
>>
>> 2880K downloaded
>>
>>
>> On May 19, 2009, at 9:36 AM, tarjei wrote:
>>
>>> Hi, when I started working today, I suddenly got errors like:
>>>
>>> [DEBUG] Trace
>>> org.apache.maven.lifecycle.LifecycleExecutionException: No versions
>>> are present in the repository for the artifact with a range [2.5.2,)
>>> org.springframework:spring:jar:null
>>>
>>> Which was (IMHO) very odd as the only difference from the day before
>>> was a reboot.
>>>
>>> Good thing mr Gerrard had just highlighted the Spring 3.x issue as I
>>> thus got a hint that the problem might be Jersey related. I solved
>>> the
>>> problem by editing out the following from the
>>> .m2/repository/com/sun/jersey/contribs/jersey-spring/1.0.3/jersey-
>>> spring-1.0.3.pom
>>>
>>>
>>> file:
>>>
>>> @@ -184,13 +187,7 @@
>>> <version>${spring25-release-version}</version>
>>> <scope>compile</scope>
>>> </dependency>
>>> - <dependency>
>>> - <groupId>org.springframework</groupId>
>>> - <artifactId>spring</artifactId>
>>> - <version>${spring25-release-version}</version>
>>> - <scope>compile</scope>
>>> - </dependency>
>>> - <dependency>
>>> + <dependency>
>>>
>>> I'm not a Spring or Maven expert, but it seems that the
>>> org.springframework.spring jar was removed for the 2.5.x series and
>>> therefore should not be in the pom at all.
>>>
>>> Kind regards,
>>> Tarjei
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>