java - Maven 的新用户请求帮助破译 openam tomcat 6 代理的依赖关系

标签 java maven tomcat openam opensso

我正在尝试构建一个 OpenAM (11.0) 3.2.0 tomcat 代理。我已经使用 Maven 成功构建了基础产品的 11.0 版本。然而,代理有一些我缺少的依赖性。我假设它是一个“必须”放在特定目录中的 tomcat 6 jar 文件。

你能帮我破译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>
$

当我查看这些文件时,我不禁想到还有一些其他配置文件指定了我要查找的信息。

感谢任何帮助。

-丹尼斯

最佳答案

Maven 无法检索您需要的存储库依赖项之一 http://maven.forgerock.org/repo/snapshots .尝试使用网络浏览器探索它以确保它不存在。如果没有,您必须找到另一个存储库或依赖项的源代码,然后使用“mvn install”将其安装到本地存储库。

缺少的依赖是:org.forgerock.openam.agents:jee-agents:pom

祝你好运!

关于java - Maven 的新用户请求帮助破译 openam tomcat 6 代理的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22665493/

相关文章:

java - 在java中对依赖关系树进行排序

java - 如何为其他服务部署既是服务提供者又是消费者的 JAX-WS Web 服务?

tomcat - 无法从 logback.xml 文件加载 SLF4J 配置

java - Freemarker 配置问题(Maven 编译失败)

Java基于位置的文件解析

java - 使用未命名的对象

tomcat - Highcharts - 本地导出服务器安装问题(Tomcat Java)

java - Java 8 和 Felix bundle 中 Unresolved 约束

java - Spring MVC - BeanCreationException : Error creating bean with name 'org. springframework.validation.beanvalidation.LocalValidatorFactoryBean

java - Spring Boot 2.1.5 Java 11 模块,组装 JAR : Could not create modular JAR file. 时出错 JDK jar 工具退出 1 -> [帮助 1]