我被分配了一项任务,在我的公司和客户之间实现SAML。我正在考虑使用OpenSAML,但我很难设置maven项目。
我添加依赖项:
<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文件中配置该存储库时,它仍然找不到依赖项。
<repositories>
<repository>
<id>org.opensaml</id>
<url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
</repository>
</repositories>有人在Maven中设置了OpenSAML来帮助您吗?
发布于 2012-12-14 18:27:40
您是否还从存储库中将xmltooling和openws依赖项添加到POM文件中:
https://build.shibboleth.net/nexus/content/repositories/releases/org/opensaml/
<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
https://stackoverflow.com/questions/13865390
复制相似问题