MAVEN MavenResourcesFiltering NoClassDefFoundError
[WARNING] Error injecting: org.apache.maven.plugin.resources.ResourcesMojo java.lang.NoClassDefFoundError: Lorg/apache/maven/shared/filtering/MavenResourcesFiltering;
解决办法一(估计是maven插件包的问题):
删除.m2下repository文件夹下org/apache/maven下的文件夹
解决办法二(指定各插件具体的版本号):
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>utf-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
</plugin>