Jakarta ee 为什么在pom.xml中会出现此依赖项解析错误?

Jakarta ee 为什么在pom.xml中会出现此依赖项解析错误?,jakarta-ee,maven,pom.xml,atmosphere,Jakarta Ee,Maven,Pom.xml,Atmosphere,当我尝试构建我的web应用程序时,出现以下错误- 无法在项目MyApp上执行目标:无法解析 project com的依赖项。myapp:myapp:war:1.0-SNAPSHOT:can 找不到神器 samples:atmosphere-jaxrs2-chat:jar:1.0.5在primefaces中 (http://repository.primefaces.org/)->[帮助1] 下面是mypom.xml的存储库和依赖项部分 <repositories> <r

当我尝试构建我的web应用程序时,出现以下错误-

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

下面是mypom.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>

http://repository.primefaces.org/
素面
违约
库PrimeFaces 3.2的存储库
爪哇
javaeewebapi
6
假如
org.primefaces
素面
3.5-1
组织气氛
大气运行时间
1.0.6
org.atmosphere.samples
大气-jaxrs2-chat
1.0.5
我不明白它为什么要在primefaces存储库中查找工件org.atmosphere.samples:atmosphere-jaxrs2-chat:jar:1.0.5?为什么它不直接从中央maven存储库中提取呢?我以为默认情况下会自动使用存储库


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

该工件的版本不在maven存储库中,至少不在该组和工件id中。。。maven central repo的最后一个版本是1.0.1,正如您所见

我也经历过类似的经历,直到我删除了
~/.m2/repository
per@ManfredMoser's。也许这对你也有帮助?