windows环境中hbase源码编译遇到的问题
转载请注明出处
问题一
[ERROR] Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (default)
on project
hbase: Unable to parse configuratio mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayList -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs (default) on project hbase: Unable to parse configuration of mojo org.codehaus.mojo:findbugs-maven-plugin:3.0.0:findbugs for parameter pluginArtifacts: Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}' of type java.util.Collections.UnmodifiableRandomAccessList to property of type java.util.ArrayList
解决方案:
降低maven的版本,在3.6.+的版本上会报这个错
问题二
[ERROR] Failed to execute gol org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce (min-maven-min-java-banned-xerces) on project hbase: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
解决方案:
修改一下pom
apache版本:
<compileSource>1.8</compileSource>
cdh版本
<javaVersion>1.8</javaVersion>
<targetJavaVersion>1.8</targetJavaVersion>
问题三
Caused by: java.io.IOException: Cannot run program "bash" (in directory "。。。。。“”): CreateProcess error=2, 系统找不到指定的文件。
解决方案:
这是因为在Windows环境不能执行bash。那么需要能执行bash环境,有一个神器:Git安装git后,打开Git Bash,即可在Windows系统中执行Linux命令。
cd到hbase源码项目根目录,执行mvn package -DskipTests=true即可。
问题四
[WARNING] Some problems were encountered while building the effective model for org.apache.hbase:hbase-shaded-client:jar:1.2.0-cdh5.14.4
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.apache.hbase:hbase:1.2.0-cdh5.14.4, D:\hbase_src\cdh\hbase-1.2.0-cdh5.14.4-src\hbase-1.2.0-cdh5.14.4\pom.xml, line 1059, column 15
[WARNING]
解决方案:
POM.xml中maven-compiler-plugin插件信息如下
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
问题五
编译太慢,修改镜像,找到mirrors元素, 在它里面添加子元素mirror:
<!-- 阿里云中央仓库 -->
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
windows环境中hbase源码编译遇到的问题的更多相关文章
- centos7.6环境zabbix3.2源码编译安装版升级到zabbix4.0长期支持版
		
zabbix3.2源码编译安装版升级到zabbix4.0长期支持版 项目需求: .2版本不再支持,想升级成4.0的长期支持版 环境介绍: zabbix服务端是编译安装的,数据库和web在一台机器上 整 ...
 - TensorFlow Python2.7环境下的源码编译(三)编译
		
一.源代码编译 这里要为仅支持 CPU 的 TensorFlow 构建一个 pip 软件包,需要调用以下命令: $ bazel build --cxxopt="-D_GLIBCXX_USE_ ...
 - windows中obs源码编译的坑
		
好用的版本: cmake-3.6.1-win64-x64 + vs2015 + qt-opensource-windows-x86-msvc2015_64-5.7.0 + obs-stu ...
 - windows环境中利用NMake工具编译连接C++源代码
		
这篇文章是上一篇文章(http://www.cnblogs.com/LCCRNblog/p/4532643.html)的补充,因此需要先看看上一篇文章. 最近在写代码的时候,需要通过命令的方式来执行生 ...
 - Tomcat9.0环境搭建与源码编译
		
使用IntelliJ IDEA 搭建Tomcat9.0项目 准备条件: 下载源码 这里我们下载的Tomcat的源码版本是9.0.12. 下载地址: https://tomcat.apache ...
 - Linux环境下levelDB源码编译与安装
		
1.下载源码并编译 git clone https://github.com/google/leveldb.git cd leveldb //编译源码的时候需要安装cmake,并且版本需要大于3.9, ...
 - JMeter二次开发(1)-eclipse环境配置及源码编译
		
1.下载src并解压 http://jmeter.apache.org/download_jmeter.cgi 2.获取所需jar包,编译 ant download_jars ant instal ...
 - git在windows及linux(源码编译)环境下安装
		
git在windows下安装 下载地址:https://git-scm.com/ 默认安装即可 验证 git --version git在linux下安装 下载地址:https://mirrors.e ...
 - TensorFlow Python2.7环境下的源码编译(一)环境准备
		
参考: https://blog.csdn.net/yhily2008/article/details/79967118 https://tensorflow.google.cn/install/in ...
 
随机推荐
- python 排序 拓扑排序
			
在计算机科学领域中,有向图的拓扑排序是其顶点的先行排序,对于每个从顶点u到顶点v的有向边uv,在排序的结果中u都在v之前. 如果图是有向无环图,则拓扑排序是可能的(为什么不说一定呢?) 任何DAG具有 ...
 - 如何在unbuntu 16.04上离线部署openssh
			
背景:由于部署环境不能联网,为了方便文件传输,需要用到openssh.故实施步骤是,先在可以联网机器上下载离线包,然后用U盘拷贝到部署环境中. 第一步:下载离线包,下载网址:https://packa ...
 - 深度学习-TensorFlow2.0笔记(一)
			
一.Tensor 1.1 什么是Tensor?Tensor的数据类型 Tensor是张量的意思,在TensorFlow中张量可以是标量(scalar).向量(vector).矩阵(matrix).高维 ...
 - ftp上传文件时遇到: ftplib.error_perm: 553 Could not create file
			
问题描述 今天在使用python的ftplib模块上传文件时,碰到了这样的问题: ftplib.error_perm: 553 Could not create file. 原因 原因是FTP下对应的 ...
 - 网络唤醒(WOL)全解指南:原理篇【转】
			
转自:https://blog.csdn.net/z5859095/article/details/82819075 什么是网络唤醒网络唤醒(Wake-on-LAN,WOL)是一种计算机局域网唤醒技术 ...
 - 基于Arduino和python的串口通信和上位机控制
			
引言 经常的时候我们要实现两个代码之间的通信,比如说两个不同不同人写的代码要对接,例如将python指令控制Arduino控件的开关,此处使用串口通信是非常方便的,下面笔者将结合自己踩过的坑来讲述下自 ...
 - ASIO库使用注意事项
			
1. 使用 io_service::work 实现 io_service 无任务时不退出 正常情况下向io_service抛任务,它执行完成后就会自动退出,而要实现那种chromium那种的循环队列, ...
 - AtCoder abc 141 F - Xor Sum 3(线性基)
			
传送门 题意: 给出\(n\)个数\(a_i\),现在要将其分为两堆,使得这两堆数的异或和相加最大. 思路: 考虑线性基贪心求解. 但直接上线性基求出一组的答案是行不通的,原因之后会说. 注意到如果二 ...
 - Python27期:错误宝典
			
错误信息1:SyntaxError:invalid syntax--无效语法 解决办法:变量名不能使用关键字如下图: 错误信息2:TypeError:'str' object is not calla ...
 - USACO 利润Profits
			
洛谷P3009 [USACO11JAN]利润Profits 题解 https://www.luogu.org/problemnew/solution/P3009 JDOJ 2727: USACO 2 ...