Skip to content

Compilation

Sergio edited this page Dec 5, 2017 · 5 revisions

Compilation steps using Maven

Follow current steps to compile Droidefense

To successfully compilate latest version of Droidefense, please follow next guidelines:

  1. Clone remote repository
git clone [email protected]:droidefense/engine.git

or if you have ssh banned on your network, use HTTPS instead as follows:

git clone https://github.com/droidefense/engine
git clone [email protected]:droidefense/engine.git
  1. Execute build.sh script
cd engine
./build.sh

Building script

In case you are wondering what the hell the script doing, please check it out:

#!/bin/bash

function prerequirements(){
	echo " ########################################## "
	echo ' Installing prerequisites...'
	echo " ########################################## "

	sudo apt install -y maven
}

function main(){

	echo " ########################################## "
	echo ' Building droidefense from current version'
	echo " ########################################## "

	mvn clean install

	echo " Building done "
}

set -e
prerequirements
main
Clone this wiki locally