我正在使用Eclipse靛蓝Service Release 2,安装了 JBoss 工具,并创建了一个选择了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
我还尝试创建一个新的Seam web项目,再次与Maven集成,这是我遵循的步骤: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靛蓝新版本64big,下载位置:https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2和添加jboss工具从市场,与Jboss服务器和接缝famework.根据错误,我必须安装任何插件吗?这是如此混乱,因为我得到不同的错误每一次.
1条答案
按热度按时间7cwmlq891#
您使用了错误的groupId,它应该是
org.apache.maven.plugins
。还有一个提示:我使用https://repository.jboss.org/nexus/content/repositories/releases/而不是public,因为public存储库是一个包含许多其他存储库(包括release和SNAPSHOT)的组。