对于eclipseweb项目解决“DynamicWebModule3.0requiresJ感兴趣的读者,本文将提供您所需要的所有信息,我们将详细讲解eclipse的web项目,并且为您提供关于Dyna
对于eclipse web 项目 解决 “Dynamic Web Module 3.0 requires J感兴趣的读者,本文将提供您所需要的所有信息,我们将详细讲解eclipse的web项目,并且为您提供关于Dynamic Web Module 3.0 requires Java 1.6 or newer、Dynamic Web Module 4.0 requires Java 1.8 or newer.、eclipse maven Dynamic Web Module to 2.5、Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer的宝贵知识。
本文目录一览:- eclipse web 项目 解决 “Dynamic Web Module 3.0 requires J(eclipse的web项目)
- Dynamic Web Module 3.0 requires Java 1.6 or newer
- Dynamic Web Module 4.0 requires Java 1.8 or newer.
- eclipse maven Dynamic Web Module to 2.5
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer
eclipse web 项目 解决 “Dynamic Web Module 3.0 requires J(eclipse的web项目)
eclipse maven
在项目的pom.xml的<build></build>标签中加入:
<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>
保存,项目构建完成后在项目文件夹上点右键,选择Maven->Update Project Configuration,问题解决。
Dynamic Web Module 3.0 requires Java 1.6 or newer
Dynamic Web Module 3.0 requires Java 1.6 or newer
新建 maven 工程, Marker 出现这个问题
在 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>
再用 maven update project, 解决报错。
Dynamic Web Module 4.0 requires Java 1.8 or newer.
https://blog.csdn.net/cincoutcin/article/details/85096155
打开 eclipse for Java EE ,选择菜单栏 Windows-->preferences,弹出如下界面:
上图中,点击 “add” 的添加按钮,弹出如下界面:
上图中,选择对应的 Tomcat 版本,继续:
上图中,选择 Tomcat 的路径,以及 JRE,点击 “完成”,配置完毕
0、确定要修改到的地方:(个人 jdk 版本是 1.8)
0、1Project Facets
0、2Java Build Path ----Library
0、3Java Compiler
0、4.setting 文件
0、5pom.xml 文件添加 jdk 版本限制
1、Project Facets
右键项目 ----Properties----Maven
2、Java Build Path ----Library
右键项目 -----Build Path-----Configure Build Path----Libraries
删除非要求版本的 jdk 然后 Add Library,添加自己的 jdk 版本
Li
3、Java Compiler
项目右键 ----Properties
4、.setting 文件
1、打开 Navigator 视图
5、pom.xml,添加 jdk 版本
-
<build>
-
<plugins>
-
<plugin>
-
<groupId>org.apache.maven.plugins</groupId>
-
<artifactId>maven-compiler-plugin</artifactId>
-
<version>3.0</version>
-
<configuration>
-
<source>1.8</source>
-
<target>1.8</target>
-
</configuration>
-
</plugin>
-
</plugins>
-
</build>
maven update 项目,杀死 bug
eclipse maven Dynamic Web Module to 2.5
Cannot change version of project facet Dynamic Web Module to 2.5
等等问题 项目右键 --》maven--update project
Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer
处理办法
第一在 pom.xml 中添加如下代码 <build> </build > 包含的代码块
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>comstudy.shiro</groupId>
<artifactId>shiro</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<!-- 解决新建Maven web项目 报红叉问题 start-->
<build>
<plugins>
<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>
<!-- end -->
</project>
第二种办法:选择如图的选项
最后:项目右击–>Maven–>Update Project Configuration,红叉即消失。
关于eclipse web 项目 解决 “Dynamic Web Module 3.0 requires J和eclipse的web项目的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于Dynamic Web Module 3.0 requires Java 1.6 or newer、Dynamic Web Module 4.0 requires Java 1.8 or newer.、eclipse maven Dynamic Web Module to 2.5、Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer等相关知识的信息别忘了在本站进行查找喔。
本文标签: