如何在POM.xml中设置对Spring Web Services的依赖

Ben*_*Ben 2 spring maven-2 web-services spring-ws

我在很多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>
Run Code Online (Sandbox Code Playgroud)

哪个按预期工作.

然而,我在设置我对spring-ws-core对web服务的依赖时遇到了问题.我能在任何回购中找到的最新版本是2.0.0-M1.

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

关于我需要包含在我的maven POM中以获得Spring 3 Web服务工作的任何线索:)

Pas*_*ent 6

好吧,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>
Run Code Online (Sandbox Code Playgroud)

实际上,目前的稳定版本是1.5.9.

<dependency>
    <groupId>org.springframework.ws</groupId>
    <artifactId>spring-ws-core</artifactId>
    <version>1.5.9</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)