1. Check out the code from GIT repository
git clone https://git-wip-us.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
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
1. Download the release source file, apache-ranger-%version-number%.tar.gz (from URL provided in the release email)
2. Download the PGP signature for, apache-ranger-%version-number%.tar.gz which usaully named as apache-ranger-%version-number%.tar.gz.asc (from URL provided in the release email)
3. Execute the following command to verify the release
$ gpg --verify apache-ranger-%version-number%.tar.gz.asc apache-ranger-%version-number%.tar.gz
4. Download MD5/SHA hash for apache-ranger-%version-number%.tar.gz which usaully named as apache-ranger-%version-number%.tar.gz.mds (from URL provided in the release email)
$ gpg --print-mds apache-ranger-%version-number%.tar.gz
$ export JAVA_HOME=%Jdk 7 Home%
$ mvn clean
$ mvn -DskipTests=false clean compile package install assembly:assembly
$ mvn eclipse:eclipse
Execute ./setup.sh
Execute ./enable-%component%-plugin.sh