[英]Error resolving version for plugin 'org.codehaus.mojo:maven-war-plugin' from the repositories
I am using eclipse Indigo Service Release 2 with JBoss tools installed and created a Seam Web project with Maven integration selected. 我正在使用安装了JBoss工具的Eclipse Indigo Service Release 2,并创建了一个选择了Maven集成的Seam Web项目。 After the project is created, I got this error in my pom.xml file, does anybody know how to resolve it? 创建项目后,我的pom.xml文件中出现此错误,有人知道如何解决吗? thanks 谢谢
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
I also tried to create a new Seam web project with Maven integration again, this is the step I followed: http://docs.jboss.org/tools/nightly/trunk/en/seam/html/create_mavenized_seam.html#create_mavenized_project After the project is created, I got these error in eclipse api, all are related to pom.xml (with a red sign) 我还尝试再次创建一个与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
No sure why I got different error each time, I use eclipse indigo new version 64big downloaded here: https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2 and add jboss tools from Marketplace, with Jboss server and Seam famework. 不知道为什么每次都会出现不同的错误,我使用eclipse indigo新版本64big在这里下载: https ://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigosr2并从中添加jboss工具具有Jboss服务器和Seam知名度的市场。 Based on the error, do I have install any plugins? 根据错误,我是否已安装任何插件? it is so confusing, because I got different error each time. 这是如此令人困惑,因为每次我都会得到不同的错误。
You're using the wrong groupId, it should be org.apache.maven.plugins
. 您使用了错误的groupId,它应该是org.apache.maven.plugins
。 And another hint: use https://repository.jboss.org/nexus/content/repositories/releases/ instead of public, because the public repo is a group containing a lot of other repo's, both releases and SNAPSHOTs. 还有一个提示:使用https://repository.jboss.org/nexus/content/repositories/releases/而不是public,因为公共仓库是一个包含许多其他仓库的组,包括发行版和SNAPSHOT。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.