私の会社とクライアントの間でSAMLを実装するタスクが割り当てられました。私はOpenSAMLを使用していましたが、私はmavenプロジェクトをセットアップするのに苦労しています。Maven OpenSAMLの依存関係の問題
私は依存関係を追加します。
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml</artifactId>
<version>2.5.1</version>
</dependency>
が、ポンポンファイルにエラーがある:XMLのAPI:jarファイル:アーティファクトXercesの欠落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
しかし、私は私のポンポンファイルでそのレポジトリを設定するとき、それはまだ依存関係を見つける傾けます。
<repositories>
<repository>
<id>org.opensaml</id>
<url>https://build.shibboleth.net/nexus/content/repositories/releases</url>
</repository>
</repositories>
MavenにOpenSAMLがセットアップされている人はいますか?
感謝。 – Craig
私の問題を解決するために、私はopenaml、xmltooling、openwsの3つの異なるバージョンを使用していましたが、それらは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
@Craig同じ問題。あなたのソリューションは私を助けました、ありがとう。 –