Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
2014-04-27 21:43
393 查看
When you’re creating a project with
with Java 1.7, using Eclipse.
The “Markers” tab will be showing the next error:
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-webmodule3-java-error.png)
First check that 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.
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-project-java-compiler.png)
Next from the menu on the left select Project Facets > Java and
set its version to 1.7
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-project-facets.png)
If you didn’t find 1.7 as one of the drop down options in the previous preferences, then you have to add it to eclipse first.
Navigate to eclipse Preferences > Java > Installed
JREs, click Add, and locate your installed Java path.
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-adding-java.png)
Open your project’s
Finally, right click on your project > Maven > Update
Project…
This solution was tested using:
by Qussay Najjar
转载自http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/
Dynamic Web Module 3.0support, you should be using Java 1.6 or newer. I’ll be fixing this issue
with Java 1.7, using Eclipse.
The “Markers” tab will be showing the next error:
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-webmodule3-java-error.png)
First check that 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.
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-project-java-compiler.png)
Next from the menu on the left select Project Facets > Java and
set its version to 1.7
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-project-facets.png)
If you didn’t find 1.7 as one of the drop down options in the previous preferences, then you have to add it to eclipse first.
Navigate to eclipse Preferences > Java > Installed
JREs, click Add, and locate your installed Java path.
![](http://qussay.com/wp-content/uploads/2013/09/eclipse-adding-java.png)
Open your project’s
pom.xmland add this plugin tag
Project…
This solution was tested using:
Java 1.7,
Maven v3.1and
Eclipse Kepler on Mac OSX Lion.
by Qussay Najjar
转载自http://qussay.com/2013/09/13/solving-dynamic-web-module-3-0-requires-java-1-6-or-newer-in-maven-projects/
相关文章推荐
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- Solving “Dynamic Web Module 3.0 requires Java 1.6 or newer” in Maven Projects
- eclipse 中 maven项目 改为dynamic Web Project 时 显示 Dynamic Web Module 3.0 requires Java 1.6 or newer
- maven Dynamic Web Module 3.0 requires Java 1.6 or newer
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer
- Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse jdk1.7 Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- maven3 在创建web项目时:Dynamic Web Module 3.0 requires Java 1.6 or newer 错误
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Maven项目中出现Dynamic Web Module 3.0 requires Java 1.6 or newer
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- 解决Maven更新后错误Dynamic Web Module 3.0 requires Java 1.6 or newer
- 问题解决——maven出现“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- 解决maven的“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
- Maven问题2:Dynamic Web Module 3.0 requires Java 1.6 or newer