maven项目-----Dynamic Web Module 3.0 requires Java 1.6 or newer
解决办法:
在pom文件中添加
<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins>