首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven OpenSAML依赖问题

Maven OpenSAML依赖问题
EN

Stack Overflow用户
提问于 2012-12-13 17:39:43
回答 1查看 9.9K关注 0票数 8

我被分配了一项任务,在我的公司和客户之间实现SAML。我正在考虑使用OpenSAML,但我很难设置maven项目。

我添加依赖项:

代码语言:javascript
复制
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>2.5.1</version>
</dependency>

但是pom文件有一个错误:缺少工件xerces:xml-apis:jar:1.4.01

我在maven存储库中找不到这个依赖项。在检查OpenSAML站点时,它声明:

在基于Maven的项目中使用OpenSAML 下面是在基于Maven的项目中使用OpenSAML所必需的信息。Maven存储库:https://build.shibboleth.net/nexus/content/repositories/releases组ID: org.opensaml伪影ID: opensaml

但是,当我在pom文件中配置该存储库时,它仍然找不到依赖项。

代码语言:javascript
复制
<repositories>
    <repository>
      <id>org.opensaml</id>
      <url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
    </repository>
 </repositories>

有人在Maven中设置了OpenSAML来帮助您吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-12-14 18:27:40

您是否还从存储库中将xmltooling和openws依赖项添加到POM文件中:

https://build.shibboleth.net/nexus/content/repositories/releases/org/opensaml/

代码语言:javascript
复制
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>xmltooling</artifactId>
<version>1.3.2</version>
</dependency>

 <dependency>
<groupId>org.opensaml</groupId>
<artifactId>openws</artifactId>
<version>1.4.2</version>
 </dependency>

xml工具应该有缺少的xerces xml-api。

谢谢,Yogesh

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13865390

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档