zoukankan      html  css  js  c++  java
  • 在Eclipse中创建maven项目出现的环境警告 j2se-1.5

    Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. 

    新建maven2工程时,会自动将jre library指向为j2se-1.5,而不是我安装的jdk1.6, 

    在java build path 中奖j2se-1.5移除掉又选择jdk1.6后,右键项目maven -》update 

    project..又把我的jdk改成了1.5. 

    后来更改maven 的pom文件才解决这一问题: 

    Java代码  收藏代码
      1.    <build>  
      2.     <finalName>MavenProject</finalName>  
      3.       <plugins>  
      4.         <plugin>    
      5.         <groupId>org.apache.maven.plugins</groupId>    
      6.         <artifactId>maven-compiler-plugin</artifactId>    
      7.         <configuration>    
      8.             <source>1.6</source>    
      9.             <target>1.6</target>    
      10.         </configuration>    
      11.         </plugin>  
      12.       </plugins>  
      13. </build>  
  • 相关阅读:
    343. Integer Break
    338. Counting Bits
    322. Coin Change
    304. Range Sum Query 2D
    303. Range Sum Query
    221. Maximal Square
    213. House Robber II
    cf
    poj2478欧拉函数
    lightoj1138
  • 原文地址:https://www.cnblogs.com/felixzh/p/6405234.html
Copyright © 2011-2022 走看看