我在使用eclipse Indigo Service Release 2和JBoss安裝並創建了一個Seam Web項目,其中選擇了Maven集成。項目創建後,我在我的pom.xml文件中出現了這個錯誤,有人知道如何解決它嗎?感謝從版本庫解析plugin'org.codehaus.mojo:maven-war-plugin'的版本時出錯
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的集成新接縫Web項目,這是一步我也跟着:http://docs.jboss.org/tools/nightly/trunk/en/seam/html/create_mavenized_seam.html#create_mavenized_project 創建項目後,我得到了日食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
不知道爲什麼,我每次都得到了不同的錯誤,我用日食靛藍新版本64big這裏下載:https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2 並加入JBoss的工具,從市場,與JBoss服務器和Seam famework。根據錯誤,我是否安裝了任何插件?它很混亂,因爲我每次都得到不同的錯誤。
我刪除了這個項目並創建了一個新項目,但這次我得到了不同的錯誤,這些錯誤是:缺失的神器org.jboss.tools:Maven2:war:0.0.1-SNAPSHOT 項目構建錯誤:'dependencies.dependency .version'for org.jboss.spec.javax.faces:jboss-jsf-api_2.0_spec:jar缺失。 項目構建錯誤:不可解析的導入POM:未能從https://repository.jboss轉移 org.jboss.spec:jboss-javaee-web-6.0:pom:$ {javaee6.web.spec.version} 。 – user2949042