解决“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误

  1. eclipse maven   
  2. 在项目的pom.xml的<build></build>标签中加入:   
  3.         <plugins>  
  4.             <plugin>  
  5.                 <groupId>org.apache.maven.plugins</groupId>  
  6.                 <artifactId>maven-compiler-plugin</artifactId>  
  7.                 <version>2.3.2</version>  
  8.                 <configuration>  
  9.                     <source>1.6</source>  
  10.                     <target>1.6</target>  
  11.                 </configuration>  
  12.             </plugin>  
  13.         </plugins>  
  14.   
  15. 保存,项目构建完成后在项目文件夹上点右键,选择Maven->Update Project Configuration,问题解决。  

猜你喜欢

转载自blog.csdn.net/hanshanyunhai/article/details/80277947
今日推荐