简体   繁体   English

存储库中插件'org.codehaus.mojo:maven-war-plugin'的错误解决版本

[英]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.

相关问题 是否可以使用org.codehaus.mojo:build-helper-maven-plugin将本机dll捆绑到war文件中? - Is it possible to use the org.codehaus.mojo:build-helper-maven-plugin to bundle native dlls into a war file? org.codehaus.mojo:jaxb2-maven-plugin 2.0在哪里? - Where is org.codehaus.mojo:jaxb2-maven-plugin 2.0? Maven错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec org.codehaus.mojo:cobertura-maven-plugin不存在或没有有效版本 - org.codehaus.mojo:cobertura-maven-plugin does not exist or no valid version 为什么我会遇到 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 错误? - Why am I running into org.codehaus.mojo:exec-maven-plugin:1.2.1:exec error? 尝试使用 org.codehaus.mojo:cobertura-maven-plugin:2.6 时出错 - Error when trying to use org.codehaus.mojo:cobertura-maven-plugin:2.6 netbeans运行错误:无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1 - netbeans Run error :Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1 Java POM 插件问题(无法解析 mojo org.codehaus.mojo:exec-maven-plugin 的配置) - Java POM plugin issue (Unable to parse configuration of mojo org.codehaus.mojo:exec-maven-plugin) 无法通过以下Maven错误org.codehaus.mojo:license-maven-plugin:1.12:check-file-header构建Maven项目 - Failed to build maven project with following maven error org.codehaus.mojo:license-maven-plugin:1.12:check-file-header 插件 org.codehaus.mojo:exec-maven-plugin:1.5.0 或其依赖项之一无法解析 - Plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 or one of its dependencies could not be resolved
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM