Maven异常总结001---Maven project导入到myeclipse时候出现异常:could not get mojo execution paramater value

Maven project导入到myeclipse时候出现异常:could not get mojo execution paramater value


解决方案:

这时候发生了一个错误:
could not get mojo execution paramater value
出异常会报错一个框:弹框中的内容:
Plugin org.apache.maven.plugins:maven-compiler-plugin:2.0.2 or one of its dependencies 
could not be resolved: Transfer error: Connection timed out: no further information
  org.codehaus.plexus:plexus-utils:jar:1.0.4


from the specified remote repositories:
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false),
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository, releases=false, snapshots=true)
Path to dependency: 
1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.2
2) org.codehaus.plexus:plexus-utils:jar:1.0.4


可以从错误信息中看到,是缺少:
plexus-utils-1.0.4.jar这个jar包


那么咱们可以从:
http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.3/
http://repo.maven.apache.org/maven2/plexus/plexus-utils/1.0.3/
下载,对应版本的jar包,然后放到本地仓库:
D:\Java\Maven\repos\org\codehaus\plexus\plexus-utils\1.0.4
中.


注意这里我没有找到plexus-utils-1.0.4.jar,我找到了
plexus-utils-1.0.3.jar


这个时候我把plexus-utils-1.0.3.jar给他改了一下名字:
plexus-utils-1.0.4.jar


然后放到了本地仓库:
D:\Java\Maven\repos\org\codehaus\plexus\plexus-utils\1.0.4
中.


然后也把这个问题解决了.


但是,注意最后也找到了这个jar包了:
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/
在上面这个地址,把这个jar包导入就可以了.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

添柴程序猿

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值