Maven 2 Maven安装/编译失败

Maven 2 Maven安装/编译失败,maven-2,Maven 2,当我在命令提示符/eclipse中通过maven编译/安装时,我遇到了以下异常 [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dashboard --- May 22, 2013 3:55:50 PM org.sonatype.guice.bean.reflect.Logs$JULSink warnWARNING: Error injecting: org.apache.maven.plugin.res

当我在命令提示符/eclipse中通过maven编译/安装时,我遇到了以下异常

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ dashboard ---
May 22, 2013 3:55:50 PM org.sonatype.guice.bean.reflect.Logs$JULSink warnWARNING: Error injecting: org.apache.maven.plugin.resources.ResourcesMojo java.lang.NoClassDefFoundError: org/apache/maven/shared/filtering/MavenFiltering
Exception
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
        at java.lang.Class.getDeclaredConstructors(Class.java:1855)
        at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.
java:245)


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.050s
[INFO] Finished at: Wed May 22 15:55:50 MDT 2013
[INFO] Final Memory: 9M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources) on project dashboard: Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:resources: org/apache/maven/shared/filtering/MavenFilteringException

我尝试过更改存储库位置,并删除存储库目录中现有的插件

如果另一个任务锁定了maven filtering jar文件(
.m2/repository/org/apache/maven/shared/maven filtering/1.xx/maven-filtering-1.xx.jar
)。在我的例子中,Eclipse以某种方式锁定了该文件。杀死该任务,maven应该可以。

请提供进一步的信息和一个更有意义的标题以引起注意:)首先尝试在命令行上构建,并在出现错误时发布输出。我复制的输出来自命令行。尝试删除本地存储库中的路径
$HOME/.m2/repository/org/apache/maven/plugins
,然后请在命令行上重试,检查在构建过程中是否有关于未下载pom文件(依赖项)的警告。感谢我打开了eclipse和Intellij,Intellij中出现了相同的错误。我关闭了eclipse,然后解决了Intellij中的错误。