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包导入就可以了.