【问题标题】:spring-ws-security dependency conflictspring-ws-security 依赖冲突
【发布时间】:2013-08-07 16:31:54
【问题描述】:

我想使用 spring-ws-security 来使用 Wss4jSecurityInterceptor 和签名来保护我的 Web 服务。但是有一个依赖冲突使这个系统无法运行。 spring-ws-security:2.1.2.RELEASE 好像也不行。

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)

有没有办法解决这个问题?

非常感谢。

【问题讨论】:

  • 你试过我的答案了吗?
  • 是的,谢谢,但是没有用。最后我们拒绝了 spring ws security 的解决方案。

标签: spring-ws wss4j opensaml xmlsec


【解决方案1】:

问题是你已经包含了一个新版本的相同依赖项 我认为这方面的一些事情可以解决它。将其添加到您的 spring-ws-security 依赖声明中。

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

【讨论】:

    【解决方案2】:

    这里其实没有问题。 wss4j 直接依赖于 xmlsec,它只是覆盖了传递依赖的版本。 WSS4J 经过充分测试,可确保将 1.4.4 替换为 1.5.1 不会导致 OpenSAML 出现任何问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-23
      • 2020-06-08
      • 1970-01-01
      • 2020-01-20
      • 1970-01-01
      相关资源
      最近更新 更多