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

Compare with Current View Page History

« Previous Version 7 Next »

You can build most of the projects directly in IntelliJ - but everything can be built using a root pom.xml example (docker is required for dcae-inventory)

Pending requests

COMMON-17 - Getting issue details... STATUS

COMMON-18 - Getting issue details... STATUS

Procedure

  • create a root directory like "onap"
  • copy the sh script there
  • run the sh script
  • notice the directory structure with embedded repos
  • copy the root pom.xml
  • maven build with the root pom
  • there will be a couple projects that may not build due to your settings.xml repos, the state of a couple of the projects, whether you have docker running - see the developer pages to make sure you are setup
    ONAP Developer Checklist
    Setting Up Your Development Environment

Clone/pull all repos sh script

pass in the command clone|pull and your onap gerrit id (note oam repo is the largest at 0.8Gb transferred at 6Mb/sec

./git_recurse.sh clone <your_gerrit_username>

to refresh project within a 5 min window

TODO: checkout branch and merge master into branch

Version 20170525

git_recurse.sh


Root pom.xml


This is a root reactor pom.xml that can be used to build all or parts of onap

Some repos like dcae-inventory will require docker installed to build the images.

for speed build with all 5 repos in (~.m2/settings.xml) and the maven options below

mvn clean install -U -DskipTests=true -Dadditionalparam=-Xdoclint:none

pom.xml

   <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.onap</groupId>
  <artifactId>org.onap</artifactId>
  <version>1.1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>onap.root</name>
  <url>http://maven.apache.org</url>
  <modules>
    <module>aai/aai-common</module> <!-- needs yang exclude -->
    <module>aai/aai-service</module>
    <module>aai/logging-service</module>
    <module>aai/model-loader</module>
    <module>aai/rest-client</module> <!-- org.openecomp.aai.logging-service:logging-api:jar:1.0.0 solved by staging onap repo-->
    <module>aai/router-core</module>
    <module>aai/search-data-service</module>
    <module>appc/deployment</module> <!-- emf resolution via public onap repo -->
    <module>dcae/apod/analytics</module>
    <module>dcae/collectors/ves</module>
    <module>dcae/controller/analytics</module>
    <module>dcae/controller/dcae-controller-core</module>
    <module>dcae/controller/dcae-controller-service/dcae-controller-service-dmaap-drsub</module>
    <module>dcae/controller/dcae-controller-service-cdap</module>
    <module>dcae/controller/dcae-controller-service-docker</module>
    <module>dcae/controller/dcae-controller-service-vm</module>
    <module>dcae/dcae-inventory</module> <!-- required docker to build images -->
    <module>dcae/demo</module>
    <module>dcae/dmaapbc</module>
    <module>dcae/operation/utils</module> <!-- emf solved by public onap repo -->
    <module>demo</module> <!-- error in parent refs in sample_plugin -->
    <module>ecompsdkos/ecomp-sdk</module>
    <module>ecompsdkos/ecomp-sdk/epsdk-app-os</module> <!-- until PORTAL-8 -->
    <module>mso</module>
    <module>ncomp/cdap</module>
    <module>ncomp/core</module>
    <module>ncomp/docker</module>
    <module>ncomp/maven</module>
    <module>ncomp/openstack</module>
    <module>ncomp/utils</module>
    <module>policy/common</module>
    <module>policy/docker</module>
    <module>policy/drools-applications</module>
    <module>policy/drools-pdp</module>
    <module>policy/engine</module>
    <module>portal/ecomp-portal-FE-common</module> <!-- parent not referenced -->
    <module>portal</module>
    <module>sdc</module> <!-- in catalog-be org/openrdf/sesame/sesame-rio-rdfjson/2.7.10/sesame-rio-rdfjson-2.7.10.jar; error in opening zip file?-->
    <module>sdnc/adaptors</module> <!-- sdnc/sli/aai/AAIClient.java:30  in sdnc/core/sliPluginUtils-->
    <module>sdnc/core</module> <!-- Felix issues in sdnc/core/slapi/provider -->
    <module>sdnc/northbound</module>
    <module>sdnc/oam</module>
    <module>sdnc/plugins</module>
    <module>ui/dmaapbc</module>
    <module>vid</module>
  </modules>
</project>
  • No labels