1、详细报错信息

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (build-native-non-win) on project hadoop-lzo: An Ant BuildException has occured: exec returned: 1
[ERROR] around Ant part ...<exec failonerror="true" dir="${build.native}" executable="sh">... @ 16:66 in /data/hadoop-lzo-master/target/antrun/build-build-native-non-win.xml
[ERROR] -> [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

2、查看自己的java环境

vim /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_251-amd64/
export PATH=$PATH:$JAVA_HOME/bin
sorce /etc/profile

3、在maven中的settings.xml文件添加配置

cd /data/apache-maven/conf
vim settings.xml


添加内容:

<profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties>
</profile>

Linux上安装编译lzo报错:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run 已解决相关推荐

  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. 淘淘商城项目报错 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 ...

  3. 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 ...

  4. [雷]单元测试报错--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 ...

  5. 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 ...

  6. 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< ...

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

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

  8. 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 ...

  9. SpringBoot打包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile

    maven的setting文件内容这块修改成自己使用的JDK版本

最新文章

  1. 高校促进“智慧城市”信息化建设策略研究
  2. React Native开发指南-在原生和React Native间通信
  3. MOSS 2007 系列学习之安装篇(一)
  4. java打印条形码Code128C
  5. 数据可视:让科幻走向现实
  6. shell 封装mysql查询
  7. Docker 安装和基础用法
  8. 旅通软件:旅行社管理系统怎么选?
  9. VB简易密码登录窗体设计
  10. [Android-ARCore开发]ARCore从入门到放弃1-Demo上手
  11. switch语句里面使用break,return
  12. 眼镜的基础知识与挑选
  13. 【智能优化算法】鸡群算法 (Chicken Swarm Optimization, CSO),2014
  14. 2018麦考林杂志计算机科学,2018年加拿大大学麦考林杂志排名发布,快来围观你喜欢的学校排名有什么变动没?...
  15. 单人登录-踢下线功能实现
  16. Android晋级之路
  17. oracle查询视图时慢,oracle视图查询速度慢
  18. python 使用xlsx和pandas处理Excel表格
  19. 流程DEMO-付款申请单
  20. 【毕业生】简历究竟应该怎么“写”?

热门文章

  1. python中的super是什么?
  2. 面试问接口如何测试?
  3. 利用vs将cs文件编译成dll文件
  4. C++ ,C 筛法求素数
  5. win10 + Ubuntu 20.04 LTS 双系统安装 (UEFI + GPT)(图文,多图预警)
  6. 计算机实训报告思路,计算机实训报告优秀范文
  7. 让男生成熟的十部电影zt
  8. 【摘要】STC系列单片机ISP编程器/烧录器的说明
  9. 合成资产赛道风云突变,Linear Finance有望成为最具潜力的黑马
  10. 前端利器CodePen和JSRUN了解一下