Dynamic Web Module 3.0 requires Java 1.6 or newer
The new Maven project, marker has this problem
Copy and paste the following in porm.xml
<build>
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
Then Use maven update project, Done!