maven-2 - Maven 给出错误缺少工件

标签 maven-2

我将 Google App Engine、Spring 和 Tiles2 添加到同一个项目中,由于某种原因 Apache Maven 给出了此错误。

Missing artifact org.apache.commons:com.springsource.org.apache.commons.collections:jar:3.2.1:compile

这是我的 pom.xml,其中包含依赖项:

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>com.springsource.org.apache.commons.collections</artifactId>
        <version>3.2.1</version>
        <type>pom</type>
    </dependency>

最佳答案

我通过添加以下存储库解决了这个问题:

<repository>
    <id>com.springsource.repository.bundles.release</id>
    <name>EBR Spring Release Repository</name>
    <url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
    <id>com.springsource.repository.bundles.external</id>
    <name>EBR External Release Repository</name>
    <url>http://repository.springsource.com/maven/bundles/external</url>
</repository>

关于maven-2 - Maven 给出错误缺少工件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2951205/

相关文章:

eclipse - 使用 Maven 为 Eclipse 设置项目

java - 编译错误 :- packages are missing

tomcat - 从 cargo-maven2-plugin 以嵌入式模式启动 tomcat 的最简单方法是什么?

未找到 Maven 测试依赖项

java - 代码分析工具和类型间声明

java - 如何在标准 Mac JDK6 上使用 BGGA 闭包原型(prototype)?

java - ClassNotFoundException : org. springframework.context.support.ClassPathXmlApplicationContext

maven-2 - child 完成后在 parent 身上执行目标

eclipse - 从 Eclipse 中的搜索结果中排除目标文件夹

java - 如何让 Cobertura 因低代码覆盖率而使 M2 构建失败