简体   繁体   English

使用Netbeans 7.3.1无法执行MAVEN目标,JDK 7x64在Win 8 64位上不起作用

[英]Failed to execute MAVEN goal using netbeans 7.3.1, JDK 7x64 does not work on Win 8 64-bit

I'm new and I'm starting with maven using NETBEANS now install 7.3.1, JDK 7x64, I formatted my Win 8 64-bit machine now I have problems with NETBEANS or MAVEN've tried everything, create the variables JAVA_HOME, I installed maven NETBEANS matter and I have the same error. 我是新手,现在开始使用NETBEANS进行Maven安装,现在安装7.3.1,JDK 7x64,我格式化了Win 8 64位计算机,现在遇到了NETBEANS或MAVEN问题,尝试了所有方法,创建了变量JAVA_HOME,安装的Maven NETBEANS问题,我有同样的错误。 I've used VirtualBox with Win Xp and perfect running Maven, I have no connection error not use proxy, but in Win 8 does not work, I turned off antivirus, Firewall 我已经将VirtualBox与Win Xp一起使用,并且可以完美地运行Maven,没有连接错误,也没有使用代理,但是在Win 8中不起作用,我关闭了防病毒功能,防火墙

mvn.bat -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=webapp-javaee6 -DarchetypeVersion=1.5 -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=com.mycompany -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mavenproject1 -Dbasedir=C:\\Users\\jaime\\Documents\\NetBeansProjects -Darchetype.interactive=false --batch-mode archetype:generate -X -e
 Downloading: http://repo.maven.apache.org/maven2/org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar 

Downloading: http://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.1/ant-1.8.1.jar [DEBUG] Writing resolution tracking file C:\\Users\\jaime.m2\\repository\\org\\codehaus\\groovy\\groovy\\1.8.3\\groovy-1.8.3.jar.lastUpdated [DEBUG] Writing resolution tracking file C:\\Users\\jaime.m2\\repository\\org\\apache\\ant\\ant\\1.8.1\\ant-1.8.1.jar.lastUpdated 下载: http ://repo.maven.apache.org/maven2/org/apache/ant/ant/1.8.1/ant-1.8.1.jar [DEBUG]编写分辨率跟踪文件C:\\ Users \\ jaime.m2 \\ repository \\ org \\ codehaus \\ groovy \\ groovy \\ 1.8.3 \\ groovy-1.8.3.jar.lastUpdated [DEBUG]编写分辨率跟踪文件C:\\ Users \\ jaime.m2 \\ repository \\ org \\ apache \\ ant \\ ant \\ 1.8.1 \\ ant-1.8.1.jar.lastUpdated

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate failed: Plugin org.apache.maven.plugins:maven-archetype-plugin:2.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.groovy:groovy:jar:1.8.3, org.apache.ant:ant:jar:1.8.1: Could not transfer artifact org.codehaus.groovy:groovy:jar:1.8.3 from/to central ( http://repo.maven.apache.org/maven2 ): GET request of: org/codehaus/groovy/groovy/1.8.3/groovy-1.8.3.jar from central failed: Connection reset -> [Help 1] 无法在独立项目上执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate(default-cli):执行目标org.apache.maven.plugins:maven-archetype-的default-cli插件:2.2:生成失败:插件org.apache.maven.plugins:maven-archetype-plugin:2.2或其依赖项之一无法解析:以下工件无法解析:org.codehaus.groovy:groovy:jar :1.8.3,org.apache.ant:ant:jar:1.8.1:无法将工件org.codehaus.groovy:groovy:jar:1.8.3从/转移到中央( http://repo.maven.apache .org / maven2 ):从中央获取org / codehaus / groovy / groovy / 1.8.3 / groovy-1.8.3.jar的请求失败:连接重置-> [帮助1]

我遇到过类似的问题,但从来没有找到确切的问题,但是在某个地方,重新安装Java可以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM