7

会社とクライアントの間に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をセットアップして助けてくれる人はいますか?

4

1 に答える 1

5

また、リポジトリから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には、欠落しているxercesxml-apiが含まれている必要があります。

ありがとう、ヨゲシュ

于 2012-12-14T18:27:40.707 に答える