简体   繁体   English

泽西岛Restful依赖版本

[英]Jersey Restful dependency version

I have an application which uses the following Jersey restful web services dependency (Maven): 我有一个使用以下Jersey Restful Web服务依赖项(Maven)的应用程序:

<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-server</artifactId>
<version>2.7</version>

And its jar ( jersey-server-2.7.jar ) is actually downloaded (using Maven). 它的jar( jersey-server-2.7.jar )实际上已下载(使用Maven)。 However, when I check for this very same dependency in Maven, it shows that the most recently version is 2.17 from 29-Jun-2015. 但是,当我在Maven中检查相同的依赖项时,它表明最新版本是2015年6月29日的2.17 How can this be possible ? 这怎么可能 ? The same situation I have for jersey-client-2.7.jar ... 我对jersey-client-2.7.jar的情况相同

Any hints welcome ! 任何提示欢迎! Thanks in advance 提前致谢

They used digits after the dot in the version to specify Java to compile the library (jersey 2.6 coresponds Java 6). 他们在版本中的点后使用数字来指定Java来编译该库(jersey 2.6 corespond Java 6)。 It was until java 7 was released (the same for jersey 1.X). 直到Java 7发行(球衣1.X相同)。 Then they kept using ascending numeration. 然后,他们继续使用升序计算。 in you case version 2.7 older then 2.17 because 17 >7. 在您的情况下,版本2.7早于2.17,因为17> 7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM