users@jersey.java.net

[Jersey] Re: Jersey 1.6 transitive dependencies

From: Mohan KR \(mkannapa\) <"Mohan>
Date: Fri, 8 Apr 2011 11:09:01 -0500

Hello Pavel,

  jersey-spring also is pulling in newer version of Spring, I believe
because of use of version ranges in

  the default profile. Can this be "locked" down to 2.5.2 (the min.
required) instead of a range (I had

  sent out a note earlier regarding this).

 

  (The dependency management is the relevant section from a consumer side if
they wish

  to use another version of Spring 2.5.x)

 

 

Thanks!

Regards,

 

Mohan KR

 

From: Pavel Bucek [mailto:pavel.bucek_at_oracle.com]
Sent: Thursday, April 07, 2011 3:09 AM
To: users_at_jersey.java.net
Subject: [Jersey] Re: Jersey 1.6 transitive dependencies

 

Hello Stephen,

this is definitely a bug (introduced by jersey-server modifications), fixing
it right now. Will be fixed in 1.7-ea02 (tomorrows promoted build).

Thanks for letting us know.

Regards,
Pavel

On 04/06/2011 01:14 PM, Stephen Souness wrote:

Hi.

I have just tried updating my application to use Jersey server 1.6 and
noticed that something was bringing in javax-servlet 3.0 as a dependency and
including it when I deploy my web application.

From examining the dependency hierarchy it would appear that jersey-grizzly2
(which is required for jersey-spring) is the offender.

I would expect such a dependency to be scoped as "provided" in the pom.xml
to prevent it from being included in a generated war.

Given that I am not intending to deploy onto a servlet 3.0 compatible
server, should I be concerned at introduction of an apparent requirement for
Servlet 3.0 functionality?


--
Stephen