栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

Ranger-2.2源码编译

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ranger-2.2源码编译

一、编译环境准备 1、安装依赖软件
yum -y install wget git gcc gcc-c++ make autoconf automake libtool sharutils asciidoc xmlto cmake unzip zip
2、安装Java环境

下载地址:https://www.oracle.com/java/technologies/downloads/
解压安装

mkdir /usr/java
tar -zxvf jdk-8u321-linux-x64.tar.gz -C /usr/java
3、安装maven环境

下载地址:https://maven.apache.org/download.cgi
解压安装

mkdir /usr/local/maven
tar -zxvf apache-maven-3.8.4-bin.tar.gz -C /usr/local/maven

settings.xml配置

  
  
     
          MavenProxy
          true
          http
          admin
          admin
          proxy_ip
          proxy_port
          maven.aliyun.com|mirrors.huaweicloud.com
      
  

   
     nexus-aliyun
     central
     Nexus aliyun
     http://maven.aliyun.com/nexus/content/groups/public
   
   
     alimaven
     central
     aliyun maven
     https://maven.aliyun.com/nexus/content/repositories/central/
   
    
        huaweicloud
        central
        huawei cloud
        https://mirrors.huaweicloud.com/repository/maven/
    
   
     jboss-public-repository-group
     central
     JBoss Public Repository Group
     https://repository.jboss.org/nexus/content/groups/public
   

4、配置环境变量

编辑/etc/profile

export JAVA_HOME=/usr/java/jdk1.8.0_321
export PATH=$PATH:$JAVA_HOME/bin
export MAVEN_HOME=/usr/local/maven/apache-maven-3.8.4
export PATH=$MAVEN_HOME/bin:$PATH

使环境变量生效

source /etc/profile
二、编译Ranger 1、下载ranger
git clone https://github.com/apache/ranger.git
cd ranger
git checkout  remotes/origin/ranger-2.2
2、开始编译
mvn clean compile package install -DskipTests -Drat.skip=true
3、编译完成

4、编译成果
cd /root/ranger/target

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/863398.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号