You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Here we will show you how to setup APPC build environment on Ubuntu 16.04


  1. Install and setup Docker

    sudo apt update -y

    sudo apt install -y apt-transport-https ca-certificates curl software-properties-common wget zip

    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

    sudo apt update -y

    sudo apt install -y docker-ce

    sudo apt-get install -y docker-compose

    sudo usermod -aG docker $USER

    Note: You should logout and login back to execute docker commands

  2. Install Java & Maven 

    sudo apt update

    sudo apt install openjdk-8-jdk openjdk-8-jre -y

    sudo apt install maven -y

    bash -c 'echo  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 >> ~/.bashrc'

  3. Setup local maven repository

    mkdir -p $HOME/.m2

    Download and copy settings.xml settings.xml to $HOME/.m2 folder
  4. Clone APPC git repository

    mkdir -p $HOME/ONAP-APPC

    cd $HOME/ONAP-APPC


    # APPC Core projects

    git clone https://github.com/onap/appc-parent.git

    git clone https://gerrit.onap.org/r/appc

    # This for building APPC docker images

    git clone https://gerrit.onap.org/r/appc/deployment

  5. Build appc-parent

    # TODO, for now we are using 3.0.1-ONAP tag and it should be changed to master

    cd $HOME/ONAP-APPC/appc-parent

    git pull -v

    git checkout 3.0.1-ONAP


    # Do the following POM file changes

    # Edit the appc-parent/pom.xml and change the local appc-parent artifact version
    <modelVersion>4.0.0</modelVersion>
    <packaging>pom</packaging>
    <groupId>org.onap.appc.parent</groupId>
    <artifactId>parent</artifactId>
    <!--
    <version>1.4.1-SNAPSHOT</version>
    -->
    <version>1.4.2-SNAPSHOT</version>


  1. TODO
  2. TODO





  • No labels