[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:

security-sdk-1.0.jar已经存在于D:/secServerSDK-test/src/main/resources/lib下

 

报错如下:

xxxxxx@xxxxxxxx /d/secServerSDK-test/src/main/resources/lib
$ mvn install:install-file -Dfile=security-sdk-1.0.jar -DgroupId=com.jd.security -DartifactId=security-sdk -D
version=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-pom ---
Downloading: http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.922s
[INFO] Finished at: Fri Dec 12 14:48:39 CST 2014
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file (default-cli) on project
standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file failed:
Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its dependencies could not be resolved: Could not t
ransfer artifact org.codehaus.plexus:plexus-digest:jar:1.0 from/to Nexus (http://repo2.maven.org/maven2): Error transfer
ring file: Connection reset -> [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

 

解决办法:

事了好多办法,最后这样解决的:

1)到C:\Users\Administrator\.m2\repository\org\apache\maven\plugins\下删除maven-install-plugin文件夹重新执行上述命令就行了。

$ mvn install:install-file -Dfile=security-sdk-1.0.jar -DgroupId=com.jd.security -DartifactId=security-sdk -D
version=1.0 -Dpackaging=jar
[INFO] Scanning for projects...
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.
1.pom
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1
.pom (5 KB at 1.3 KB/sec)
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.
1.jar
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1
.jar (23 KB at 1.7 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ standalone-pom ---
Downloading: http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
Downloaded: http://repo2.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar (12 KB at 9.5 KB/s
ec)
[INFO] Installing d:\secServerSDK-sgh-test\src\main\resources\lib\security-sdk-1.0.jar to C:\Users\Administrator\.m2\rep
ository\com\jd\security\security-sdk\1.0\security-sdk-1.0.jar
[INFO] Installing C:\Users\ADMINI~1\AppData\Local\Temp\mvninstall1506241331627767621.pom to C:\Users\Administrator\.m2\r
epository\com\jd\security\security-sdk\1.0\security-sdk-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.746s
[INFO] Finished at: Fri Dec 12 14:55:46 CST 2014
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------

至于原因,不是特别清楚,做个笔记吧!!!

转载于:https://www.cnblogs.com/shanguanghui/p/4159746.html

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值