Maven抱怨依赖战争文件



我正在尝试构建一个具有以下依赖关系

的项目
<dependency>
     <groupId>org.richfaces.examples</groupId>
     <artifactId>richfaces-showcase</artifactId>
     <version>4.3.4.Final</version>
     <classifier>jbas71</classifier>
     <type>war</type>
</dependency>

战争文件似乎位于我本地存储库中的正确位置。.m2/repository/org/richfaces/examples/richfaces-showcase/4.3.4.Final/的内容

  • Richfaces-showcase-4.3.4.3.4.final-jbas71.war
  • Richfaces-showcase-4.3.4.3.4.final-jbas71.war.lastupdated
  • Richfaces-showcase-4.3.4.3.4.final-jbas71.war.pom

我试图删除*.lastUpdated文件,*.war.pom似乎也可以,但是我仍然可以得到

[ERROR] Failed to execute goal on project richfaces-showcase-portlet: 
Could not resolve dependencies for project org.jboss.portletbridge.examples:richfaces-showcase-portlet:war:3.3.1.Final: 
Failure to find org.richfaces.examples:richfaces-showcase:war:jbas71:4.3.4.Final in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution 
will not be reattempted until the update interval of central has elapsed or updates are 
forced -> [Help 1]

依赖项意味着错误,因为战争文件不是旨在的依赖性。战争文件旨在用作一个可以部署到tomcat等的示例,以查看它的外观等等。

除此之外,您还试图从Maven Central那里获得Richfaces,这是不可能的,因为Richfaces不在Maven Central中。他们有自己的存储库。您需要将此存储库添加到您的配置或存储库管理器中。

此外消息:

Failure to find org.richfaces.examples:richfaces-showcase:war:jbas71:4.3.4.Final in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution 
will not be reattempted until the update interval of central has elapsed or updates are 
forced -> [Help 1]

表明无法下载依赖关系。我认为战争文件的大小为0 ..

最新更新