在Eclipse中创建packing为war的Maven Project时,在pom.xml文件中出现如下错误:
原因在eclipse中新建的maven项目的pom.xml配置文件没有给出完整的基础配置,没有指定JDK
解决方法在pom.xml配置文件里添加JDK插件
org.apache.maven.plugins maven-compiler-plugin3.8.1 1.8 1.8

在Eclipse中创建packing为war的Maven Project时,在pom.xml文件中出现如下错误:
原因在eclipse中新建的maven项目的pom.xml配置文件没有给出完整的基础配置,没有指定JDK
解决方法在pom.xml配置文件里添加JDK插件
org.apache.maven.plugins maven-compiler-plugin3.8.1 1.8 1.8