zoukankan      html  css  js  c++  java
  • apache ranger源码编译

    官方文档 http://ranger.apache.org/quick_start_guide.html

    Quick Start Guide

    Build Process

    1. Check out the code from GIT repository

        git clone https://gitbox.apache.org/repos/asf/ranger.git
    
        cd ranger 

    Alternatively, you can checkout the code from github:

        git clone https://github.com/apache/ranger
    
        cd ranger 

    2. Please execute the following Maven command:

        $ export JAVA_HOME=%jdk 7 Home%
    
        $ mvn clean 
    
        $ mvn -DskipTests=false clean compile package install assembly:assembly 

    3. After the above build command execution, you should see the following TAR files in the target folder:

    ranger-%version-number%-%module-name%.tar.gz

    Create an Apache Release

    1. Checkout from ranger release branch

    $ git checkout ranger-%version%

    2. Run maven commands to build and validate the build is working fine (See Build Process: step 2):

        $ export JAVA_HOME=%jdk 7 Home%
    
        $ mvn clean 
    
        $ mvn -DskipTests=false clean compile package install assembly:assembly 

    3. Clean all generated files for building the source build

    $ mvn clean

    4. Create a TAR source file using the following command:

    $ ant -f release-build.xml -Dranger-release-version=%version-number%

    5. Now, the following files are ready to be published for release:

         ./target/apache-ranger-%version-number%.tar.gz
        ./target/apache-ranger-%version-number%.tar.gz.asc
        ./target/apache-ranger-%version-number%.tar.gz.mds

    实战

    编译环境:

    root@greenvm-v1:~/Downloads/ranger# java -version
    java version "1.8.0_181"
    Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
    root@greenvm-v1:~/Downloads/ranger# mvn -v
    Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
    Maven home: /home/h/pkg/mvn
    Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /home/h/pkg/jdk1.8.0_181/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "4.4.0-31-generic", arch: "amd64", family: "unix"

    编译命令:

    mvn -DskipTests clean compile package install assembly:assembly

    编译结果:(我这里是导入ubuntu系统中idea编译的,方便查看源码)

  • 相关阅读:
    第十二节:WebApi自动生成在线Api文档的两种方式
    第十一节:WebApi的版本管理的几种方式
    自学Python1.3-centos内python3并与python2共存
    自学Python1.2-环境的搭建:Pycharm及python安装详细教程
    自学Python1.1-简介
    Java通过ftp上传文件
    Java使用Spring初识
    Java中类似C#中Task.wait()的类CountDownLatch
    Java创建多线程和线程安全集合Vector
    未能加载文件或程序集“System.Data.SQLite”或它的某一个依赖项。试图加载格式不正确的程序。
  • 原文地址:https://www.cnblogs.com/felixzh/p/10443426.html
Copyright © 2011-2022 走看看