2013-08-06 57 views
2

我想使用spring-ws-security来保护我的web服务和Wss4jSecurityInterceptor和签名。但是存在依赖冲突,这使得这个系统不可行。 spring-ws-security:2.1.2.RELEASE似乎也不可行。spring-ws-security依赖冲突

spring-ws-security : 2.1.3.RELEASE [compile] 
- wss4j : 1.6.5     [compile] 
    - xmlsec : 1.5.1    [compile] 
    - opensaml : 2.5.1-1   [compile] 
    - openws : 1.4.2-1   [compile] 
     - xmltooling : 1.3.2-1  [compile] 
     - xmlsec : 1.4.4   [compile] (omitted for conflict with 1.5.1) 

有什么办法可以解决这个问题吗?

非常感谢提前。

+0

你试过我的回答吗? –

+0

是的,谢谢,但它没有奏效。最后,我们拒绝了spring的安全解决方案。 – darkled

回答

5

问题是你已经包括一个相同的依赖关系与较新的版本 我认为在这行解决它。将它添加到你的spring-ws-security依赖声明中。

<exclusions> 
    <exclusion> 
      <groupId>org.apache.santuario</groupId> 
      <artifactId>xmlsec</artifactId> 
    </exclusion> 
</exclusions> 
0

这里实际上没有问题。 wss4jxmlsec有直接依赖关系,它只是覆盖传递依赖的版本。 WSS4J已经过充分测试,以确保用1.5.1替代1.4.4不会在OpenSAML中引起任何问题。