maven test项目时遇到一下错误
Some problems were encountered while building the effective model for cn.temptation:ssm:war:0.0.1-SNAPSHOT build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 175, column 12 It is highly recommended to fix these problems because they threaten the stability of your build. or this reason, future Maven versions might no longer support building such malformed projects.
即需要指定响应的版本
在pom.xml中修改
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin>
为
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>