在github上的javaEE maven项目上有很多示例,但是当我尝试清理该示例时:https://github.com/javaee-samples/javaee7-samples,我在命令行中遇到错误,请在pom.xml中出什么问题:

[ERROR] Failed to execute goal on project cdi-decorators: Could not resolve dependencies for project org.javaee7:cdi-decorators:war:1.0-SNAPSHOT: Could not find artifact org.javaee7:test-utils:jar:1.0-SNAPSHOT in codehaus-snapshots (http://nexus.codehaus.org/snapshots/) -> [Help 1]

这是pom.xml的一部分:
<repositories>
    <repository>
        <id>codehaus-snapshots</id>
        <name>Codehaus Snapshots</name>
        <url>http://nexus.codehaus.org/snapshots/</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>codehaus-snapshots</id>
        <name>Codehaus Snapshots</name>
        <url>http://nexus.codehaus.org/snapshots/</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

我想念什么?
提前致谢。

最佳答案

从样本的根目录,即javaee7-samples目录:mvn -DskipTests=true clean install
从javaee7-samples / cdi / decorators目录中:mvn test

09-27 11:15