使用maven构建时出错:缺少必需的类

时间:2015-05-12 11:27:53

标签: maven pom.xml

构建maven应用程序(2.0.4)。我在POM.xml(eclipse)中遇到了以下构建错误:

Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources failed: A required class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.6:resources: org/apache/maven/shared/filtering/MavenFilteringException
-----------------------------------------------------
realm =    plugin>org.apache.maven.plugins:maven-resources-plugin:2.6
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/NM28088/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.jar
urls[1] = file:/C:/Users/NM28088/.m2/repository/org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
urls[2] = file:/C:/Users/NM28088/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
-----------------------------------------------------
(org.apache.maven.plugins:maven-resources-plugin:2.6:resources:default-resources:process-resources)

可能是什么问题?

0 个答案:

没有答案