maven编译项目时报错:NoClassDefFoundError org/codehaus/plexus/compile/util/scan/mapping/SuffixMapping
原因是pom.xml中使用的maven插件版本过低。改成3.5.1就行了。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>