maven install之后报的错误如下:

[INFO] Scanning for projects...
[INFO] Downloading: http://xxx.xxx.xxx.xxx:xxxx/nexus/content/groups/public/DubboDemo/DubboDemo/1.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloading: http://xxx.xxx.xxx.xxx:xxxx/nexus/content/groups/public/DubboDemo/DubboDemo/1.0-SNAPSHOT/maven-metadata.xml
[WARNING]
[WARNING] Some problems were encountered while building the effective model for DubboDemo:dubbo-api:war:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit:jar -> version 3.8.1 vs 4.11 @ DubboDemo:DubboDemo:1.0-SNAPSHOT, D:\java\maven\maven_store\DubboDemo\DubboDemo\1.0-SNAPSHOT\DubboDemo-1.0-SNAPSHOT.pom, line 59, column 17
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dubbo-api Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for io.netty:netty:jar:3.10.5.Final is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dubbo-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ dubbo-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to D:\java\Workspaces\MyEclipse\dubbo-api\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.441 s
[INFO] Finished at: 2017-07-26T16:39:58+08:00
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project dubbo-api: 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

解决办法:

pom.xml文件中加入如下配置:

<build><plugins><!-- 解决本地的编译问题:maven找不到jdk 将jre中的这两个jar复制到jdk中 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.1</version><configuration><source>1.6</source><target>1.6</target><compilerArguments><verbose /><bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar</bootclasspath></compilerArguments></configuration></plugin></plugins>
</build>

【maven install报错】Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile相关推荐

  1. maven打包报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:cle

    问题记录: maven打包报错Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:cle 解决办法: 这个 ...

  2. maven打包报错 Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar

    Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:3.0.2:jar (default-jar) on project ...

  3. maven编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile

    在项目的pom.xml中加入: <build><plugins><plugin><groupId>org.springframework.boot< ...

  4. 淘淘商城项目报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-

    @[TOC](淘淘商城项目报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (d ...

  5. maven package 时报错 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test

    之前启动springboot的项目,报错:Failed to determine suitable jdbc url 但是本地配置文件也配置着spring.datasource.url,目录也没错,想 ...

  6. mvn help:effective-pom 报错 Failed to execute goal org.apache.maven.plugins

    报错内容 Failed to execute goal org.apache.maven.plugins:maven-help-plugin:2.2:effective-pom (default-cl ...

  7. [雷]单元测试报错--Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test

    项目场景: SpringBoot集成Mybatis-Plus时,进行单元测试时报错 问题描述: package com.mybatisplusstudty.mapper;import org.juni ...

  8. maven install出错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (d

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-c ...

  9. Maven搭建webapp报错Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generat

    在使用maven模板搭建webapp项目时,项目搭建失败 报错如下: 这里显示搭建项目的脚手架和插件等未找到 解决办法: 我们找到自己的maven的仓库,找到搭建webapp的xml文件,我的mave ...

  10. maven项目打包报错Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default

    原因:缺少maven打包插件 解决办法:在pom.xml中加入如下 <build><plugins><plugin><groupId>org.apach ...

最新文章

  1. Docker 入门系列(2)- Docker 镜像, 免 sudo 使用 docker 命令、获取查看、修改镜像标签、查找删除创建镜像、导入导出镜像
  2. SegmentFault 技术周刊 Vol.21 - 程序人生(二):2016 这一年
  3. [数字图像处理]图像去噪初步(2)--非线性滤波器
  4. TCP服务端收到syn但是不回复syn ack问题分析
  5. 10、MySQL权限控制实现原理
  6. jquery 获取checkbox的checked属性总是undefined
  7. 14 张Python数据科学速查表
  8. 如何在Windows上使用64位Web浏览器
  9. PS亮度蒙版扩展插件:Lumenzia for Mac 支持ps2021
  10. 信息论与编码_庆祝中山大学计算机科学系成立40周年系列活动 | 第四届“信息论与编码中大论坛”...
  11. apache php 500,apache出现500错误的原因是什么
  12. Java 集合 Collection、Iterator
  13. python数据生成可视化_Python数据分析:手把手教你用Pandas生成可视化图表
  14. jbox弹窗_关于使用 jBox 对话框的提交不能弹出问题解决方法
  15. 2018年值得推荐的20个Bootstrap网站模板
  16. 戴尔电脑开机卡logo无法开机问题及解决办法
  17. ttkefu邀请语、欢迎语、开场广告的区别?及图文演示
  18. Word不计算封面、目录页数将正文页码修改为第几页共几页的格式
  19. [SWF Investigator] Adobe官方开源 swf解析/编辑工具
  20. 创建一个动态空间存储未知大小的二维数组

热门文章

  1. 【一天一个shell命令】好管家-磁盘-du
  2. 【性能优化】 之10046 事件
  3. skipping incompatible
  4. 解决mxnet错误:OSError: libcudart.so.10.0: cannot open shared object file: No such file or directory
  5. Django:序列化的几种方法
  6. Android 12来了,支持更多设备,你的应用准备好了么?
  7. Android模拟位置出错IllegalArgumentException: Incomplete location object, missing timestamp or accuracy?
  8. 查询数据表结构并查出结构的结构信息
  9. The method getTextContent() is undefined ?
  10. LeetCode求能够装得最多的水