users@jersey.java.net

Another spring issue

From: tarjei <tarjei_at_nu.no>
Date: Tue, 19 May 2009 09:36:56 +0200

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