3

我在很多 Maven 依赖项上都得到了这个,尽管当前的痛苦来源是 Spring。

我将设置一个 Spring 版本并像这样包含它:

 <spring-version>3.0.0.RELEASE</spring-version>

 <!-- Spring framework -->
 <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>${spring-version}</version>
 </dependency>

哪个按预期工作。

但是,我在设置对 web 服务的 spring-ws-core 的依赖时遇到问题。我可以在任何 repo 中找到的最新版本是 2.0.0-M1。

http://mvnrepository.com/artifact/org.springframework.ws/spring-ws-core

关于我需要在我的 Maven POM 中包含什么以使 Spring 3 Web 服务正常工作的任何线索:)

4

2 回答 2

7

嗯,2.0.0-M1 简直就是 spring-ws-core 的最新版本。

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
    <version>2.0.0-M1</version>
</dependency>

实际上,当前的稳定版本是 1.5.9。

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
    <version>1.5.9</version>
</dependency>
于 2010-04-13T18:24:49.420 回答
0

好的,

对maven不太了解。但是 spring 源有一个存储库,该存储库具有 maven 访问权限:-

http://www.springsource.com/repository/app/bundle/version/detail?name=org.springframework.web&version=3.0.2.RELEASE

看起来像maven的东西是

<dependency>  
 <groupId>org.springframework</groupId>    
 <artifactId>spring-web</artifactId>  
 <version>3.0.2.RELEASE</version> 
</dependency>

但是,我再次使用常春藤而不是行家!

编辑:

哦,添加 maven 存储库内容的说明在http://www.springsource.com/repository/app/faq#q8的常见问题解答中。

于 2010-04-13T11:14:44.220 回答