Я пытаюсь создать агент Tomcat OpenAM (11.0) 3.2.0. Я успешно построил с помощью Maven версию базового продукта 11.0. Однако у агента есть некоторая зависимость, которую мне не хватает. Я предполагаю, что это jar-файл tomcat 6, который «должен» быть помещен в определенный каталог.
Не могли бы вы помочь мне расшифровать pom.xml и сообщение об ошибке?
Ошибка:
...
Downloading: http://maven.forgerock.org/repo/maven-central/org/forgerock/openam/
openam-installtools-launcher/11.0.0-SNAPSHOT/maven-metadata.xml
Downloaded: http://maven.forgerock.org/repo/snapshots/org/forgerock/openam/
openam-installtools-launcher/11.0.0-SNAPSHOT/maven-metadata.xml (793 B at 8.6 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.607s
[INFO] Finished at: Tue Mar 25 17:15:16 EDT 2014
[INFO] Final Memory: 7M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jee-agents-tomcat-v6: Could not resolve
dependencies for project org.forgerock.openam.agents:jee-agents-tomcat-v6:jar:3.2.0-SNAPSHOT:
Failed to collect dependencies for [org.forgerock.openam.agents:jee-agents-sdk:jar:3.2.0-SNAPSHOT (compile),
org.apache.tomcat:catalina:jar:6.0.36 (provided), javax.servlet:servlet-api:jar:2.5 (provided),
javax.servlet.jsp:jsp-api:jar:2.1 (provided), javaee:javaee-api:jar:5 (provided),
commons-io:commons-io:jar:1.4 (provided), org.forgerock.openam:openam-clientsdk:jar:11.0.0-SNAPSHOT (provided),
org.forgerock.openam:openam-installtools:jar:11.0.0-SNAPSHOT (provided),
org.forgerock.openam:openam-installtools-launcher:jar:11.0.0-SNAPSHOT (provided),
com.sun:tools:jar:1.5 (system?)]: Failed to read artifact descriptor for
org.forgerock.openam.agents:jee-agents-sdk:jar:3.2.0-SNAPSHOT: Could not find artifact
org.forgerock.openam.agents:jee-agents:pom:3.2.0-SNAPSHOT in forgerock-snapshots-repo
(http://maven.forgerock.org/repo/snapshots) -> [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
$ pwd
/cygdrive/c/Dev/openam/11.0/openam-agents/jee-agents/jee-agents-tomcat/jee-agents-tomcat-v6
Файл pom.xml:
$ cat pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* Copyright 2013 ForgeRock AS.
*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Parent Project -->
<parent>
<groupId>org.forgerock.openam.agents</groupId>
<artifactId>jee-agents-tomcat</artifactId>
<version>3.2.0-SNAPSHOT</version>
</parent>
<!-- Component Definition -->
<name>OpenAM JavaEE Policy Agents Tomcat v6</name>
<description>OpenAM JavaEE Policy Agents Tomcat v6</description>
<artifactId>jee-agents-tomcat-v6</artifactId>
<packaging>jar</packaging>
<properties>
<jee-agents.properties>../../jee-agents.properties</jee-agents.properties>
</properties>
<!-- Build -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>false</addClasspath>
</manifest>
<manifestEntries>
<Specification-Title>OpenAM JavaEE Policy Agents Tomcat</Specification-Title>
<Specification-Version>${project.version} - ${maven.build.timestamp}</Specification-Version>
<Specification-Vendor>ForgeRock</Specification-Vendor>
<Implementation-Title>OpenAM JavaEE Policy Agents Tomcat</Implementation-Title>
<Implementation-Version>${project.version} - ${maven.build.timestamp}
</Implementation-Version>
<Implementation-Vendor>ForgeRock</Implementation-Vendor>
<Built-By>${user.name}</Built-By>
<Build-Jdk>${java.version}</Build-Jdk>
<Build-Time>${maven.build.timestamp}</Build-Time>
<Version>${project.version}</Version>
<Create-On>${maven.build.timestamp}</Create-On>
<SVN-Revision>${svn-revision.revision}</SVN-Revision>
<!-- TODO Add License to Manifest -->
<License/>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactSet>
<includes>
<include>org.forgerock.openam.agents:jee-agents-sdk</include>
</includes>
</artifactSet>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.forgerock.openam.agents</groupId>
<artifactId>jee-agents-sdk</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>catalina</artifactId>
<version>6.0.36</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
$
Когда я смотрю на эти файлы, я не могу не думать, что есть какой-то другой файл конфигурации, который определяет информацию, которую я ищу.
Любая помощь приветствуется.
-Деннис