在
<dependency><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId>
------------------<type>maven-plugin</type></dependency>
红色横杠处中添加版本号即可
<version>2.1</version>