2

当我尝试构建我的网络应用程序时,我收到以下错误 -

无法在项目 MyApp 上执行目标:无法解析项目 com.myapp:MyApp:war:1.0-SNAPSHOT 的依赖项:在 primefaces 中找不到工件 org.atmosphere.samples:atmosphere-jaxrs2-chat:jar:1.0.5 ( http://repository.primefaces.org/) -> [帮助 1]

这是我的 pom.xml 的存储库和依赖项部分

<repositories>
    <repository>
        <url>http://repository.primefaces.org/</url>
        <id>primefaces</id>
        <layout>default</layout>
        <name>Repository for library PrimeFaces 3.2</name>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-web-api</artifactId>
        <version>6.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.primefaces</groupId>
        <artifactId>primefaces</artifactId>
        <version>3.5-SNAPSHOT</version>
    </dependency>  
    <dependency>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-runtime</artifactId>
        <version>1.0.6</version>
    </dependency>              
    <dependency>
        <groupId>org.atmosphere.samples</groupId>
        <artifactId>atmosphere-jaxrs2-chat</artifactId>
        <version>1.0.5</version>
    </dependency>
</dependencies>

我不明白为什么它在 primefaces 存储库中寻找工件 org.atmosphere.samples:atmosphere-jaxrs2-chat:jar:1.0.5 ?为什么不直接从中央 Maven 存储库中提取它?我认为默认情况下会自动使用存储库?

气氛运行时工件似乎没有问题,所以我不明白为什么其他气氛工件会导致此问题?

4

1 回答 1

2

该版本的工件不在 maven 存储库中,至少不在该组和工件 ID 中... maven 中央存储库中的最后一个版本是 1.0.1,您可以在此处看到

于 2012-12-22T20:04:13.857 回答