maven 搭建cxf 遇到的问题 :The POM for org.opensaml:opensaml-saml-impl:jar:4.2.0 is missing

针对以前的项目,现在想转换为maven项目,这样管理起来更加的方便,之前的项目中使用了cxf,

然后我在pom.xml文件中引入相关的jar

        <dependency>
            <groupId>org.apache.cxf.services.sts</groupId>
            <artifactId>cxf-services-sts-core</artifactId>
            <version>4.0.0</version>
        </dependency>

但是在项目编译的过程中总是出现这样的错误:

[WARNING] The POM for org.opensaml:opensaml-saml-impl:jar:4.2.0 is missing, no dependency information available
[WARNING] The POM for org.opensaml:opensaml-xacml-impl:jar:4.2.0 is missing, no dependency information available
[WARNING] The POM for org.opensaml:opensaml-xacml-saml-impl:jar:4.2.0 is missing, no dependency information available
[WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.3.0-b161121.1438 is missing, no dependency information available
[WARNING] The POM for com.sun.istack:istack-commons-runtime:jar:3.0.6 is missing, no dependency information available
[WARNING] The POM for com.sun.xml.fastinfoset:FastInfoset:jar:1.2.14 is missing, no dependency information available

原来在cxf-services-sts-core的4.0的版本中用到了opensaml-saml-impl:jar:4.2.0 但是我们到maven官网:Maven Repository: Search/Browse/Explore (mvnrepository.com) 去搜索

发现最新的jar才更新到4.0.1,所以我们这边相关联的版本在仓库中下载不到,出现了上面的问题

解决办法:降低cxf-services-sts-core的版本号

    <dependency>
            <groupId>org.apache.cxf.services.sts</groupId>
            <artifactId>cxf-services-sts-core</artifactId>
            <version>3.3.0</version>
        </dependency>

这样就解决了相关的问题,因为这个关联的opensaml-saml-impl版本比较低,在仓库中是存在的

希望对你有所帮助

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值