OpenAM с Maven

Я пытаюсь загрузить OpenAM через зависимости Maven, как указано на этом сайте:

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

Ниже приведен файл Maven pom.xml:

<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.

Проведя исследования в Google, кажется, ни у кого нет никаких проблем.

Есть идеи, почему?

РЕДАКТИРОВАТЬ

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:

[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

person user1646481    schedule 05.08.2013    source источник
comment
Вы работаете через доверенное лицо компании? Вы используете прямое подключение к репозиториям maven или используете менеджер репозиториев? Вероятно, вам нужно добавить репозиторий, который вы отметили в своем pom, в settings.xml или в менеджер репозитория.   -  person Eldad Assis    schedule 05.08.2013
comment
У меня есть прямое подключение к репозиториям Maven.   -  person user1646481    schedule 05.08.2013
comment
Итак, вы добавили репозиторий в свой файл settings.xml?   -  person Eldad Assis    schedule 05.08.2013
comment
пожалуйста, добавьте журнал установки maven.. чтобы показать людям именно ту ошибку, которая у вас есть   -  person mebada    schedule 05.08.2013
comment
Да, я сделал это.   -  person user1646481    schedule 05.08.2013
comment
сделайте 'mvn install › log.txt' и вставьте лог сюда   -  person mebada    schedule 05.08.2013
comment
Пожалуйста, смотрите журнал выше в разделе редактирования.   -  person user1646481    schedule 05.08.2013
comment
да, проверьте ответ сейчас :)   -  person mebada    schedule 05.08.2013


Ответы (2)


он говорит, что был закэширован в локальном репозитории

Перейдите в $HOME/.m2/repository/org/ и удалите каталог forgerock и повторите попытку.

у вас может быть ошибка подключения или что-то в этом роде

другой способ - попробовать щелкнуть правой кнопкой мыши> maven> обновить maven, если вы используете m2e, и проверить принудительное обновление выпуска

person mebada    schedule 05.08.2013
comment
Я попросил администратора, и он добавил репозиторий в Nexus. После этого все начало скачиваться как в EDIT 2. Не уверен, в чем сейчас проблема. - person user1646481; 05.08.2013
comment
Это еще одна ошибка... попросите его добавить org.forgerock.opendj:opendj-project:pom:3.0.0-SNAPSHOT в репозиторий - person mebada; 05.08.2013
comment
Ну и добавил оригинал в раздел репозиториев. Куда он добавит этот другой? Это не репозиторий? - person user1646481; 05.08.2013
comment
попробуйте использовать ‹openam.version›10.0.0‹/openam.version› - person mebada; 05.08.2013
comment
Maven не может найти 10.0.0 в Nexus. - person user1646481; 05.08.2013
comment
Что ж, попросите администратора нексуса добавить maven.forgerock.org/repo/releases в нексус репозитории. вот так books.sonatype.com/nexus-book/ ссылка/ - person mebada; 05.08.2013
comment
Артефакт opendj-project 3.0.0-SNAPSHOT находится в репозитории maven.forgerock.org/repo/snapshots/, вы должны добавить его в свою конфигурацию Nexus. - person Peter Major; 02.01.2014

зависимость OpenSSOclientsdk на данный момент не найдена ни в одном репозитории maven. Поэтому вы должны включить в свой локальный репозиторий:

{dir репозиторий maven}/com/sun/identity/OpenSSOclientsdk/8.0/OpenSSOclientsdk-8.0.jar.

Затем вы можете выполнить

$ mvn install

И провайдер будет находиться в

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

для использования в проектах maven. (Подробнее см. на http://maven.apache.org)

person user16096    schedule 06.02.2014