解决maven项目出现Dynamic Web Module 3.0 requires Java 1.6 or newer.错误

来源:互联网 发布:福建省软件行业协会 编辑:程序博客网 时间:2024/06/02 12:38

pom文件中增加插件

  <plugins>
   <!-- define the project compile level -->
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.3</version>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
  </plugins>



之后eclipse中maven--update project


0 0
原创粉丝点击