[ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.3.1: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom:2.3.1 from/to central (http://repo1.maven.org/maven2): Connect times out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
什么错误?
3 个解决方案
#1
出错信息说得很明白了,
到http://repo1.maven.org/maven2的下载不成功。
隔24小时后再试,或者改用镜像
<mirror>
<id>UK</id>
<name>UK Central</name>
<url>http://uk.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
#2
怎么更换镜像?这段代码加在哪个里面?maven没用过。
#3
找到你用户目录下的.m2目录下的setttings.xml文件,在其中把1楼的东西写进去。
参照
http://maven.apache.org/guides/mini/guide-mirror-settings.html
参照
http://maven.apache.org/guides/mini/guide-mirror-settings.html
#1
出错信息说得很明白了,
到http://repo1.maven.org/maven2的下载不成功。
隔24小时后再试,或者改用镜像
<mirror>
<id>UK</id>
<name>UK Central</name>
<url>http://uk.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
#2
怎么更换镜像?这段代码加在哪个里面?maven没用过。
#3
找到你用户目录下的.m2目录下的setttings.xml文件,在其中把1楼的东西写进去。
参照
http://maven.apache.org/guides/mini/guide-mirror-settings.html
参照
http://maven.apache.org/guides/mini/guide-mirror-settings.html