maven手动添加jar包,错误 Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4......

安装时提示错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: Error installing artifact 'jdiff:jdiff:jar': Failed to install artifact jdiff:jdiff:jar:1.0.9: /home/hadoop/下载 (是一个目录) ->

[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/MojoExecutionException

修改后,记得-Dfile是要写jar包的详细位置噢~   不要像我这样糊涂。 修改后:

hadoop@ThinkPad-X220-Tablet:~$ mvn install:install-file -Dfile=/home/hadoop/下载/jdiff-1.0.9.jar -DgroupId=jdiff -DartifactId=jdiff -Dversion=1.0.9 -Dpackaging=jar -DgeneratePom=true

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /home/hadoop/下载/jdiff-1.0.9.jar to /home/hadoop/.m2/repository/jdiff/jdiff/1.0.9/jdiff-1.0.9.jar
[INFO] Installing /tmp/mvninstall6285495980608602341.pom to /home/hadoop/.m2/repository/jdiff/jdiff/1.0.9/jdiff-1.0.9.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
就好啦~
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值