[英]Maven complains about dependency to a WAR file
我正在尝试建立一个具有以下依赖项的项目
<dependency>
<groupId>org.richfaces.examples</groupId>
<artifactId>richfaces-showcase</artifactId>
<version>4.3.4.Final</version>
<classifier>jbas71</classifier>
<type>war</type>
</dependency>
虽然WAR文件似乎在我的本地存储库中的正确位置。 .m2/repository/org/richfaces/examples/richfaces-showcase/4.3.4.Final/
我试图删除*.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]
依赖关系是错误的,因为war文件不是要依赖的。 war文件旨在用作示例,可以将其部署到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]
显示无法下载依赖项。 我假设war文件的大小为0。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.