D:\Eclipse workspace>mvn archetype:generate -DgroupId=com.nrifintech -DartifactId=DBAIEI -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
clean-plugin/2.5/maven-clean-plugin-2.5.pom
Jan 23, 2014 2:47:53 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Jan 23, 2014 2:47:53 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: Retrying request
Jan 23, 2014 2:48:14 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Jan 23, 2014 2:48:28 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: Retrying request
Jan 23, 2014 2:48:49 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Jan 23, 2014 2:48:49 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: Retrying request
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
n-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or on
e of its dependencies could not be resolved: Failed to read artifact descriptor
for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
install-plugin/2.4/maven-install-plugin-2.4.pom
Jan 23, 2014 2:49:34 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset
Jan 23, 2014 2:49:34 PM org.apache.maven.wagon.providers.http.httpclient.impl.cl
ient.DefaultRequestDirector tryExecute
INFO: Retrying request
当我尝试使用此命令创建maven项目时,会显示此错误。 这继续。不知道为什么会发生这种情况。我的maven安装正确。 我的maven安装在C:驱动器中。
答案 0 :(得分:0)
这里的重要部分是Connection reset
。这意味着:在与服务器通信的过程中,连接突然丢失。
这意味着您和服务器之间存在防火墙或服务器出现问题( - >检查服务器的错误日志)。
您还可以尝试在浏览器中打开http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom(POM是简单的XML文件)。这可能会给你一个更好的错误信息或一个想法在哪里看(如果浏览器可以打开文件,你可能需要配置Maven使用与浏览器相同的代理设置)。