Turn from: http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/
When you are creating a project with Dynamic Web Module 3.0 support, your should be using Java 1.6 or newer. I ' ll be fixing this issue with Java 1.7, using Eclipse.
The "Markers" tab would be showing the next error:
The your project is configured probably to use Java 1.7.
Right click your project > Properties > Java Compiler and set ' Compiler compliance level ' to 1.7.
Next from the "menu on" the left select Project Facets > Java and set it version to 1.7
If you are didn ' t find 1.7 as one of the drop down options in the previous preferences, then your have to add it to eclipse fir St.
Navigate to eclipse Preferences > Java > Installed JREs, click Add, and locate your Java path.
Open your project ' s pom.xml and add this plugin tag
1 2 3 4 5 6 7 8 9 A |
< build > < plugins &G T < plugin > < groupId >org.apache.maven.plugins</GroupId > < Artifactid >maven-compiler-plugin</Artifactid > < Version >3.1</version > < configuration > < source >1.7</Source > < target >1.7</target > </configuration > </plugin > & nbsp </plugins > </build > |
Finally, right click your project > Maven > Update project ...
This solution is tested Using:java 1.7, Maven v3.1 and Eclipse Kepler on Mac OS X Lion.