2012-12-13 39 views
6

私の会社とクライアントの間で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がセットアップされている人はいますか?

答えて

4

はあなたにもリポジトリからあなたのPOMファイルにxmltoolingとopenws依存関係を追加しました:

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> 

xmltoolingが欠落しているのXercesのXML-APIを持つべきです。

おかげで、 ヨーゲッシュ他の二つの依存関係を追加するために私に思い出させため

+0

感謝。 – Craig

+2

私の問題を解決するために、私は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

+0

@Craig同じ問題。あなたのソリューションは私を助けました、ありがとう。 –