我已經分配了一個任務來在我的公司和客戶端之間實現SAML。我正在研究使用OpenSAML,但我正在努力設置maven項目。Maven OpenSAML依賴項問題
我添加的依賴:
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>2.5.1</version>
</dependency>
但POM文件有錯誤:缺少神器的Xerces:XML的API中:jar:1.4.01
我不能找到在Maven倉庫這種依賴性。當檢查OpenSAML網站它指出:
Using OpenSAML in Maven-based Projects
Following is the information necessary to use OpenSAML within Maven-based projects. Maven Repository: https://build.shibboleth.net/nexus/content/repositories/releases Group ID: org.opensaml Artifact ID: opensaml
但是,當我配置程序存儲庫在我的POM文件,但它仍然無法找到的依賴。
<repositories>
<repository>
<id>org.opensaml</id>
<url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
</repository>
</repositories>
是否有人在Maven中設置了OpenSAML可以提供幫助?
謝謝你提醒我添加其他兩個依賴。 – Craig
爲了解決我的問題,我使用了三個不同版本的opensaml,xmltooling和openws依賴,這些依賴在maven中,並且不依賴於xerces。依賴項: \t \t \t \t \t org.opensaml \t \t \t opensaml \t \t \t 2.5.1-1 \t \t \t \t \t \t \t org.opensaml \t \t \t openws \t \t \t 1.4.2-1 \t \t \t \t \t \t \t org.opensaml \t \t \t xmltooling \t \t \t 1.3。2-1 \t \t –
Craig
@克雷格同樣的問題。您的解決方案幫助了我,謝謝。 –