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>  
  • 相关阅读:
    luogu_P3195 [HNOI2008]玩具装箱TOY
    CF_837D
    luogu_P3584 [POI2015]LAS
    大一下存活纪实
    Mathematical Logic for Computer Science 读书笔记
    集训补题合集
    图论笔记4 平面图与可平面图
    软件分析笔记3 DFA
    软件分析笔记2 IR
    软件分析笔记1 Intro
  • 原文地址:https://www.cnblogs.com/felixzh/p/6405234.html
Copyright © 2011-2022 走看看