Linux上安装编译lzo报错:Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run 已解决
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 已解决相关推荐
- 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 解决办法: 这个 ...
- 淘淘商城项目报错 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 ...
- 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 ...
- [雷]单元测试报错--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 ...
- 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 ...
- 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< ...
- Maven搭建webapp报错Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generat
在使用maven模板搭建webapp项目时,项目搭建失败 报错如下: 这里显示搭建项目的脚手架和插件等未找到 解决办法: 我们找到自己的maven的仓库,找到搭建webapp的xml文件,我的mave ...
- 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 ...
- SpringBoot打包报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
maven的setting文件内容这块修改成自己使用的JDK版本
最新文章
- 高校促进“智慧城市”信息化建设策略研究
- React Native开发指南-在原生和React Native间通信
- MOSS 2007 系列学习之安装篇(一)
- java打印条形码Code128C
- 数据可视:让科幻走向现实
- shell 封装mysql查询
- Docker 安装和基础用法
- 旅通软件:旅行社管理系统怎么选?
- VB简易密码登录窗体设计
- [Android-ARCore开发]ARCore从入门到放弃1-Demo上手
- switch语句里面使用break,return
- 眼镜的基础知识与挑选
- 【智能优化算法】鸡群算法 (Chicken Swarm Optimization, CSO),2014
- 2018麦考林杂志计算机科学,2018年加拿大大学麦考林杂志排名发布,快来围观你喜欢的学校排名有什么变动没?...
- 单人登录-踢下线功能实现
- Android晋级之路
- oracle查询视图时慢,oracle视图查询速度慢
- python 使用xlsx和pandas处理Excel表格
- 流程DEMO-付款申请单
- 【毕业生】简历究竟应该怎么“写”?