M S*_*ith 2 java spring spring-ws version maven
当我们尝试使用org.springframework.wspring-ws作为maven项目中的依赖项时:
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws</artifactId>
<version>1.5.8</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
它没有找到.看着回购的pom就在那里,罐子也是如此,但罐子里的名字就像是spring-ws-1.5.8-all.jar.
我的问题:首先,我如何将其用作maven pom中的依赖项?第二,为什么这个文件这样命名?
你可以这样做:
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws</artifactId>
<version>1.5.8</version>
<classifier>all</classifier>
</dependency>
Run Code Online (Sandbox Code Playgroud)
不知道为什么他们有这个分类器.看起来这个lib没有其他分类器,所以没有意义.看起来现在有这个lib的更高版本:http://mvnrepository.com/artifact/org.springframework.ws
并且看起来他们已经稍微重新排列了一些东西,因此分类器对于最新版本来说是多余的.
| 归档时间: |
|
| 查看次数: |
3621 次 |
| 最近记录: |