首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带Maven的OpenAM

带Maven的OpenAM
EN

Stack Overflow用户
提问于 2013-08-05 22:39:53
回答 2查看 4.3K关注 0票数 1

我正在尝试通过这个网站上声明的Maven依赖项来下载OpenAM:

https://wikis.forgerock.org/confluence/display/openam/Using+Maven+and+OpenAM

下面是Maven的pom.xml文件:

代码语言:javascript
复制
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven 4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.example</groupId>
  <artifactId>OpenAMExample</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>OpenAMExample</name>

  <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <openam.version>10.1.0-Xpress</openam.version>
  </properties> 

  <dependencies>
<dependency>
    <groupId>org.forgerock.openam</groupId>
    <artifactId>openam-core</artifactId>
    <version>${openam.version}</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.forgerock.openam</groupId>
    <artifactId>openam-shared</artifactId>
    <version>${openam.version}</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.forgerock.openam</groupId>
    <artifactId>openam-federation-library</artifactId>
    <version>${openam.version}</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.forgerock.openam</groupId>
    <artifactId>openam-clientsdk</artifactId>
    <version>${openam.version}</version>
    <scope>provided</scope>
</dependency>
      <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
      </dependency>
     </dependencies>

  <repositories>
<repository>
    <id>forgerock</id>
    <url>http://maven.forgerock.org/repo/releases</url>
</repository>
  </repositories>
</project>

我不能下载这个,好像有问题。它提到了OpenAM中每个工件缺失的工件。

在谷歌的研究中,似乎没有人有任何问题。

你知道为什么吗?

编辑

代码语言:javascript
复制
BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.305s
[INFO] Finished at: Mon Aug 05 16:01:44 BST 2013
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project OpenAMExample: Could not resolve dependencies for project com.webchannel.example:OpenAMExample:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: org.forgerock.openam:openam-core:jar:10.1.0-Xpress, org.forgerock.openam:openam-shared:jar:10.1.0-Xpress, org.forgerock.openam:openam-federation-library:jar:10.1.0-Xpress, org.forgerock.openam:openam-clientsdk:jar:10.1.0-Xpress: Failure to find org.forgerock.openam:openam-core:jar:10.1.0-Xpress in http://nexus.example.private:8081/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

编辑2:

代码语言:javascript
复制
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenAMExample 0.0.1-SNAPSHOT
 [INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.sun.web.ui:cc_zh_HK:jar:2008-08-08 is missing, no dependency information available
Downloading: http://nexus.example.private:8081/content/groups/public/com/sun/web/ui/cc_zh_TW/2008-08-08/cc_zh_TW-2008-08-08.pom

[WARNING] The POM for com.sun.web.ui:cc_zh_TW:jar:2008-08-08 is missing, no dependency information available
Downloading: http://nexus.example.private:8081/content/groups/public/external/esapiport/2009-26-07/esapiport-2009-26-07.pom

 [WARNING] The POM for external:esapiport:jar:2009-26-07 is missing, no dependency information available
Downloading: http://nexus.example.private:8081/content/groups/public/external/sleepycat-je/2011-04-07/sleepycat-je-2011-04-07.pom

[WARNING] The POM for external:webservices-rt:jar:2009-29-07 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.038s
[INFO] Finished at: Mon Aug 05 16:31:52 BST 2013
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project OpenAMExample: Could not resolve dependencies for project com.webchannel.example:OpenAMExample:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [org.forgerock.openam:openam-core:jar:10.1.0-Xpress (compile), org.forgerock.openam:openam-shared:jar:10.1.0-Xpress (compile), org.forgerock.openam:openam-federation-library:jar:10.1.0-Xpress (compile), org.forgerock.openam:openam-clientsdk:jar:10.1.0-Xpress (compile), junit:junit:jar:3.8.1 (test)]: Failed to read artifact descriptor for org.forgerock.opendj:opendj-server:jar:2.4.6: Could not find artifact org.forgerock.opendj:opendj-project:pom:3.0.0-SNAPSHOT in nexus (http://nexus.example.private:8081/content/groups/public) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
EN

回答 2

Stack Overflow用户

发布于 2013-08-05 23:06:44

它说缓存在本地存储库中

转到$HOME/.m2/repository/org/并删除forgerock目录,然后重试

您可能遇到了连接错误或类似的情况

另一种方法是,如果使用m2e,则尝试右键单击> maven > maven更新,并选中强制更新发布

票数 0
EN

Stack Overflow用户

发布于 2014-02-07 03:39:08

目前,在任何maven存储库中都找不到OpenSSOclientsdk的依赖项。因此,您必须在本地存储库中包含:

{目录maven repo}/com/sun/identity/OpenSSOclientsdk/8.0/OpenSSOclientsdk-8.0.jar.

然后,您可以执行

代码语言:javascript
复制
$ mvn install

提供程序将位于

{目录maven repo}/com/sun/identity/provider/springsecurity/0.1/springsecurity-0.1.jar

将在maven项目中使用。(更多详细信息请参见http://maven.apache.org)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18060947

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档