我想建立具有以下依賴Maven的抱怨依賴於WAR文件
<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/
- RichFaces的 - 展示 - 4.3.4.Final-jbas71.war
- RichFaces的 - 展示 - 4.3.4.Final-jbas71.war.lastUpdated
- RichFaces的 - 展示 - 4.3.4內容.Final-jbas71.war.pom
我試圖刪除文件,*.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]
當您從本地存儲庫(.m2)中刪除戰爭並運行mvn install時會發生什麼? – Kick
我相信你嘗試過使用'-U'強制更新選項? –
@ AndersR.Bystrup:當然,我忘了提及它 –