簡體   English   中英

存儲庫中插件'org.codehaus.mojo:maven-war-plugin'的錯誤解決版本

[英]Error resolving version for plugin 'org.codehaus.mojo:maven-war-plugin' from the repositories

我正在使用安裝了JBoss工具的Eclipse Indigo Service Release 2,並創建了一個選擇了Maven集成的Seam Web項目。 創建項目后,我的pom.xml文件中出現此錯誤,有人知道如何解決嗎? 謝謝

Error resolving version for plugin 'org.codehaus.mojo:maven-war-plugin'
from the repositories [local (C:\Users\Jon\.m2\repository), 
jboss-public-repository-group 
(https://repository.jboss.org/nexus/content/groups/public/),
central (http://repo1.maven.org/maven2)]: 
Plugin not found in any plugin repository

我還嘗試再次創建一個與Maven集成的新Seam Web項目,這是我遵循的步驟: http : //docs.jboss.org/tools/nightly/trunk/en/seam/html/create_mavenized_seam.html#create_mavenized_project之后創建項目后,eclipse api中出現了這些錯誤,所有這些都與pom.xml有關(帶有紅色符號)

Missing artifact org.jboss.tools:Maven2:war:0.0.1-SNAPSHOT
Project build error: 'dependencies.dependency.version' for org.jboss.spec.javax.faces:jboss-jsf-    api_2.0_spec:jar is missing.
Project build error: Non-resolvable import POM: Failure to transfer 

org.jboss.spec:jboss-javaee-web-6.0:pom:${javaee6.web.spec.version} 
from https://repository.jboss.org/nexus/content/groups/public/ was 
cached in the local repository, resolution will not be reattempted 
until the update interval of jboss-public-repository-group has elapsed 
or updates are forced. Original error: Could not transfer artifact 
org.jboss.spec:jboss-javaee-web-6.0:pom:${javaee6.web.spec.version} 
from/to jboss-public-repository-group    
(https://repository.jboss.org/nexus/content/groups/public/): 
Illegal character in path at index 94: 
https://repository.jboss.org/nexus/content/groups/public/org/jboss/spec/jboss-javaee-web-6.0/    
${javaee6.web.spec.version}/jboss-javaee-web-6.0-${javaee6.web.spec.version}.pom    

不知道為什么每次都會出現不同的錯誤,我使用eclipse indigo新版本64big在這里下載: https ://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2並從中添加jboss工具具有Jboss服務器和Seam知名度的市場。 根據錯誤,我是否已安裝任何插件? 這是如此令人困惑,因為每次我都會得到不同的錯誤。

您使用了錯誤的groupId,它應該是org.apache.maven.plugins 還有一個提示:使用https://repository.jboss.org/nexus/content/repositories/releases/而不是public,因為公共倉庫是一個包含許多其他倉庫的組,包括發行版和SNAPSHOT。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM