dev@jersey.java.net

Re: [Jersey] jersey-spring Maven POM file mistake?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 04 Jan 2010 13:21:31 +0100

On Jan 4, 2010, at 12:41 PM, Adam Retter wrote:

> Perhaps there is something about Maven that I have not yet discovered,
> but it would seem to me that your version string should not have the
> erraneous characters '[' and ')' in it?
>
>
> Details of the version syntax are here -
> http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-pom-syntax.html#pom-reationships-sect-versions
>

That is for the version of a project, not for the version of a
dependency on a project:

   http://www.sonatype.com/books/maven-book/reference/pom-relationships-sect-version-ranges.html


> And for example the 2.5.5 release of Spring uses the version number
> "2.5.5", I dont understand why you have the '[' and ')' in there or
> the ",3" parts?
>

It is basically declaring an interval of dependent versions of a
project. It declares that jersey-spring can depend on any Spring
version >= 2.5.5 and < 3. The '[' means inclusive and the ')' means
exclusive.

Previously it was declared that jersey-spring can depend on any Spring
version >= 2.5.5

Hth,
Paul.

> http://repo2.maven.org/maven2/org/springframework/spring-webmvc/2.5.5/spring-webmvc-2.5.5.pom
>

>
>
>
>
> 2010/1/4 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>> Hi,
>>
>> I have modified the Spring version to be:
>>
>> [2.5.2,3)
>>
>> Can you please verify when a new SNAPSHOT is pushed to the repo?
>>
>> Paul.
>>
>> On Dec 29, 2009, at 10:59 AM, Paul Sandoz wrote:
>>
>>>
>>> On Dec 23, 2009, at 4:14 PM, Adam Retter wrote:
>>>
>>>> Hi there I think you might have some problems in your Maven POM
>>>> file
>>>> for jeresey-spring integration -
>>>>
>>>>
>>>> http://download.java.net/maven/2/com/sun/jersey/contribs/jersey-spring/1.1.4.1/jersey-spring-1.1.4.1.pom
>>>>
>>>> In the section where it describes its dependencies on Spring, this
>>>> appears -
>>>>
>>>> <properties>
>>>> <spring20-release-version>2.0.5</spring20-release-version>
>>>> <spring25-release-version>[2.5.2,)</spring25-release-version>
>>>> </properties>
>>>>
>>>> I should think that "[2.5.2,)" is an error and it should be just
>>>> "2.5.2" or even "2.5.6" these days?
>>>>
>>>
>>> Yes, i will change it.
>>>
>>>
>>>> Any chance this could be fixed as its playing havoc with my new
>>>> projects that use Jersey, Spring and Maven?
>>>>
>>>
>>> Sure. Someone else already opened an issue:
>>>
>>> https://jersey.dev.java.net/issues/show_bug.cgi?id=448
>>>
>>> Paul.
>>>
>>
>>
>
>
>
> --
> Adam Retter
>
> skype :adam.retter
> http://www.adamretter.org.uk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>