从存储库解析插件'org.codehaus.mojo:maven-war-plugin'的版本时出错

时间:2014-04-12 02:41:16

标签: java eclipse maven jboss

我正在使用安装了 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服务器和Seam famework从Marketplace添加jboss工具。根据错误,我是否安装了任何插件?它太混乱了,因为每次都有不同的错误。

1 个答案:

答案 0 :(得分:0)

您使用了错误的groupId,它应该是org.apache.maven.plugins。另一个提示:使用https://repository.jboss.org/nexus/content/repositories/releases/而不是公开,因为公共回购是一个包含许多其他回购的组,包括版本和SNAPSHOT。