zoukankan      html  css  js  c++  java
  • maven compile启动报错

    ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project nutzbook: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1]

    [ERROR]

    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    [ERROR]

    [ERROR] For more information about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Fatal error compiling: 无效的目 标发行版 jdk环境和mvn配置的jdk不一样

    解决方案:

    修改pom.xml

    1. <build>  
    2.     <plugins>  
    3.         <plugin>  
    4.             <groupId>org.apache.maven.plugins</groupId>  
    5.             <artifactId>maven-compiler-plugin</artifactId>  
    6.             <version>2.0.2</version>  
    7.             <configuration>  
    8.                 <source>1.6</source>  
    9.                 <target>1.6</target>  
    10.             </configuration>  
    11.         </plugin>  
    12.     </plugins>  
    13. </build>  
  • 相关阅读:
    1
    最大子串
    线段树
    mybatis分页插件
    springmvc下载文件
    获“领跑衫”感言
    finnal 评论 II
    用户使用报告
    事后诸葛亮会议 (尸体解剖)
    final阶段成员贡献分
  • 原文地址:https://www.cnblogs.com/liubaihui/p/7484065.html
Copyright © 2011-2022 走看看