Maven Error Dynamic Web Module 3.0 requires Java 1.6 or newer resolution __maven

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.