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-17Getting issue details... STATUS
- COMMON-18Getting 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
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 |
---|
<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>
Example clone/build
obrienbiometrics:wse_onap michaelobrien$ mkdir onap7 obrienbiometrics:wse_onap michaelobrien$ cd onap7 obrienbiometrics:onap7 michaelobrien$ cp ../onap6/pom.xml . obrienbiometrics:onap7 michaelobrien$ cp ../onap6/git_recurse.sh . obrienbiometrics:onap7 michaelobrien$ ssh-add ../onap/onap_rsa Identity added: ../onap/onap_rsa (../onap/onap_rsa) obrienbiometrics:onap7 michaelobrien$ ./git_recurse.sh clone michael-obrien action: clone clone for michaelobrien Cloning into 'aai-common'... remote: Total 991 (delta 0), reused 991 (delta 0) Receiving objects: 100% (991/991), 631.33 KiB | 0 bytes/s, done. Resolving deltas: 100% (436/436), done. Cloning into 'aai-data'... remote: Total 32 (delta 0), reused 32 (delta 0) Receiving objects: 100% (32/32), 5.12 KiB | 0 bytes/s, done. Resolving deltas: 100% (8/8), done. Cloning into 'aai-config'... remote: Total 118 (delta 0), reused 118 (delta 0) Receiving objects: 100% (118/118), 29.22 KiB | 0 bytes/s, done. Resolving deltas: 100% (34/34), done. Cloning into 'aai-service'... remote: Total 920 (delta 0), reused 920 (delta 0) Receiving objects: 100% (920/920), 785.74 KiB | 407.00 KiB/s, done. Resolving deltas: 100% (299/299), done. Cloning into 'data-router'... remote: Total 128 (delta 0), reused 128 (delta 0) Receiving objects: 100% (128/128), 121.29 KiB | 0 bytes/s, done. Resolving deltas: 100% (17/17), done. Cloning into 'logging-service'... remote: Total 152 (delta 0), reused 152 (delta 0) Receiving objects: 100% (152/152), 50.09 KiB | 0 bytes/s, done. Resolving deltas: 100% (41/41), done. Cloning into 'model-loader'... remote: Total 376 (delta 0), reused 376 (delta 0) Receiving objects: 100% (376/376), 217.57 KiB | 0 bytes/s, done. Resolving deltas: 100% (120/120), done. Cloning into 'resources'... remote: Total 458 (delta 0), reused 458 (delta 0) Receiving objects: 100% (458/458), 323.70 KiB | 0 bytes/s, done. Resolving deltas: 100% (168/168), done. Cloning into 'rest-client'... remote: Total 78 (delta 0), reused 78 (delta 0) Receiving objects: 100% (78/78), 33.44 KiB | 0 bytes/s, done. Resolving deltas: 100% (14/14), done. Cloning into 'router-core'... remote: Total 50 (delta 0), reused 50 (delta 0) Receiving objects: 100% (50/50), 15.35 KiB | 0 bytes/s, done. Resolving deltas: 100% (12/12), done. Cloning into 'search-data-service'... remote: Total 232 (delta 0), reused 232 (delta 0) Receiving objects: 100% (232/232), 171.19 KiB | 0 bytes/s, done. Resolving deltas: 100% (63/63), done. Cloning into 'sparky-be'... remote: Total 2 (delta 0), reused 2 (delta 0) Receiving objects: 100% (2/2), done. Cloning into 'sparky-fe'... remote: Total 2 (delta 0), reused 2 (delta 0) Receiving objects: 100% (2/2), done. Cloning into 'test-config'... remote: Total 54 (delta 0), reused 54 (delta 0) Receiving objects: 100% (54/54), 56.94 KiB | 0 bytes/s, done. Resolving deltas: 100% (11/11), done. Cloning into 'traversal'... remote: Total 450 (delta 0), reused 450 (delta 0) Receiving objects: 100% (450/450), 252.44 KiB | 0 bytes/s, done. Resolving deltas: 100% (176/176), done. Cloning into 'deployment'... remote: Total 375 (delta 0), reused 375 (delta 0) Receiving objects: 100% (375/375), 89.12 KiB | 0 bytes/s, done. Resolving deltas: 100% (108/108), done. Cloning into 'ci-management'... remote: Total 2283 (delta 0), reused 2283 (delta 0) Receiving objects: 100% (2283/2283), 377.94 KiB | 679.00 KiB/s, done. Resolving deltas: 100% (1410/1410), done. Cloning into 'dcae'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: dcae: File exists Cloning into 'apod'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: apod: File exists Cloning into 'analytics'... remote: Total 811 (delta 0), reused 811 (delta 0) Receiving objects: 100% (811/811), 417.83 KiB | 688.00 KiB/s, done. Resolving deltas: 100% (291/291), done. Cloning into 'buildtools'... remote: Total 48 (delta 0), reused 48 (delta 0) Receiving objects: 100% (48/48), 15.70 KiB | 0 bytes/s, done. Resolving deltas: 100% (17/17), done. Cloning into 'cdap'... remote: Total 196 (delta 0), reused 196 (delta 0) Receiving objects: 100% (196/196), 78.53 KiB | 0 bytes/s, done. Resolving deltas: 100% (97/97), done. Cloning into 'collectors'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: collectors: File exists Cloning into 'ves'... remote: Total 217 (delta 0), reused 217 (delta 0) Receiving objects: 100% (217/217), 126.52 KiB | 0 bytes/s, done. Resolving deltas: 100% (66/66), done. Cloning into 'controller'... remote: Total 3254 (delta 0), reused 3254 (delta 0) Receiving objects: 100% (3254/3254), 1020.37 KiB | 743.00 KiB/s, done. Resolving deltas: 100% (1667/1667), done. mkdir: controller: File exists Cloning into 'analytics'... remote: Total 109 (delta 0), reused 109 (delta 0) Receiving objects: 100% (109/109), 44.26 KiB | 0 bytes/s, done. Resolving deltas: 100% (26/26), done. Cloning into 'dcae-inventory'... remote: Total 292 (delta 0), reused 292 (delta 0) Receiving objects: 100% (292/292), 200.14 KiB | 0 bytes/s, done. Resolving deltas: 100% (105/105), done. Cloning into 'demo'... remote: Total 458 (delta 0), reused 458 (delta 0) Receiving objects: 100% (458/458), 84.31 KiB | 0 bytes/s, done. Resolving deltas: 100% (227/227), done. mkdir: demo: File exists Cloning into 'startup'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: startup: File exists Cloning into 'aaf'... remote: Total 28 (delta 0), reused 28 (delta 0) Receiving objects: 100% (28/28), 9.15 KiB | 0 bytes/s, done. Resolving deltas: 100% (2/2), done. Cloning into 'controller'... remote: Total 26 (delta 0), reused 26 (delta 0) Receiving objects: 100% (26/26), 5.66 KiB | 0 bytes/s, done. Resolving deltas: 100% (5/5), done. Cloning into 'message-router'... remote: Total 228 (delta 0), reused 228 (delta 0) Receiving objects: 100% (228/228), 237.40 KiB | 0 bytes/s, done. Resolving deltas: 100% (74/74), done. Cloning into 'dmaapbc'... remote: Total 416 (delta 0), reused 416 (delta 0) Receiving objects: 100% (416/416), 1.28 MiB | 542.00 KiB/s, done. Resolving deltas: 100% (153/153), done. Cloning into 'operation'... remote: Total 55 (delta 0), reused 55 (delta 0) Receiving objects: 100% (55/55), 15.18 KiB | 0 bytes/s, done. Resolving deltas: 100% (7/7), done. mkdir: operation: File exists Cloning into 'utils'... remote: Total 117 (delta 0), reused 117 (delta 0) Receiving objects: 100% (117/117), 36.25 KiB | 0 bytes/s, done. Resolving deltas: 100% (32/32), done. Cloning into 'orch-dispatcher'... remote: Total 64 (delta 0), reused 64 (delta 0) Receiving objects: 100% (64/64), 58.34 KiB | 0 bytes/s, done. Resolving deltas: 100% (6/6), done. Cloning into 'pgaas'... remote: Total 542 (delta 0), reused 542 (delta 0) Receiving objects: 100% (542/542), 261.34 KiB | 0 bytes/s, done. Resolving deltas: 100% (202/202), done. Cloning into 'utils'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: utils: File exists Cloning into 'buildtools'... remote: Total 21 (delta 0), reused 21 (delta 0) Receiving objects: 100% (21/21), 15.22 KiB | 0 bytes/s, done. Cloning into 'demo'... remote: Total 2682 (delta 0), reused 2682 (delta 0) Receiving objects: 100% (2682/2682), 40.31 MiB | 6.95 MiB/s, done. Resolving deltas: 100% (1568/1568), done. Cloning into 'ecompsdkos'... remote: Total 5210 (delta 0), reused 5210 (delta 0) Receiving objects: 100% (5210/5210), 12.17 MiB | 5.03 MiB/s, done. Resolving deltas: 100% (1833/1833), done. Cloning into 'mso'... remote: Total 4596 (delta 0), reused 4596 (delta 0) Receiving objects: 100% (4596/4596), 3.12 MiB | 2.23 MiB/s, done. Resolving deltas: 100% (1814/1814), done. mkdir: mso: File exists Cloning into 'chef-repo'... remote: Total 33 (delta 0), reused 33 (delta 0) Receiving objects: 100% (33/33), 14.29 KiB | 0 bytes/s, done. Resolving deltas: 100% (4/4), done. Cloning into 'docker-config'... remote: Total 120 (delta 0), reused 120 (delta 0) Receiving objects: 100% (120/120), 56.41 KiB | 0 bytes/s, done. Resolving deltas: 100% (29/29), done. Cloning into 'libs'... remote: Total 658 (delta 0), reused 658 (delta 0) Receiving objects: 100% (658/658), 181.27 KiB | 0 bytes/s, done. Resolving deltas: 100% (173/173), done. Cloning into 'mso-config'... remote: Total 117 (delta 0), reused 117 (delta 0) Receiving objects: 100% (117/117), 38.02 KiB | 0 bytes/s, done. Resolving deltas: 100% (23/23), done. Cloning into 'ncomp'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: ncomp: File exists Cloning into 'cdap'... remote: Total 290 (delta 0), reused 290 (delta 0) Receiving objects: 100% (290/290), 125.99 KiB | 0 bytes/s, done. Resolving deltas: 100% (95/95), done. Cloning into 'core'... remote: Total 517 (delta 0), reused 517 (delta 0) Receiving objects: 100% (517/517), 249.01 KiB | 0 bytes/s, done. Resolving deltas: 100% (263/263), done. Cloning into 'docker'... remote: Total 359 (delta 0), reused 359 (delta 0) Receiving objects: 100% (359/359), 214.73 KiB | 0 bytes/s, done. Resolving deltas: 100% (137/137), done. Cloning into 'maven'... remote: Total 360 (delta 0), reused 360 (delta 0) Receiving objects: 100% (360/360), 67.68 KiB | 0 bytes/s, done. Resolving deltas: 100% (147/147), done. Cloning into 'openstack'... remote: Total 552 (delta 0), reused 552 (delta 0) Receiving objects: 100% (552/552), 402.91 KiB | 573.00 KiB/s, done. Resolving deltas: 100% (256/256), done. Cloning into 'sirius'... remote: Total 12 (delta 0), reused 12 (delta 0) Receiving objects: 100% (12/12), done. mkdir: sirius: File exists Cloning into 'manager'... remote: Total 1137 (delta 0), reused 1137 (delta 0) Receiving objects: 100% (1137/1137), 632.84 KiB | 623.00 KiB/s, done. Resolving deltas: 100% (519/519), done. Cloning into 'utils'... remote: Total 333 (delta 0), reused 333 (delta 0) Receiving objects: 100% (333/333), 227.40 KiB | 0 bytes/s, done. Resolving deltas: 100% (137/137), done. Cloning into 'common'... remote: Total 385 (delta 0), reused 385 (delta 0) Receiving objects: 100% (385/385), 211.35 KiB | 0 bytes/s, done. Resolving deltas: 100% (117/117), done. Cloning into 'docker'... remote: Total 254 (delta 0), reused 254 (delta 0) Receiving objects: 100% (254/254), 69.84 KiB | 0 bytes/s, done. Resolving deltas: 100% (113/113), done. Cloning into 'drools-applications'... remote: Total 490 (delta 0), reused 490 (delta 0) Receiving objects: 100% (490/490), 118.26 KiB | 0 bytes/s, done. Resolving deltas: 100% (164/164), done. Cloning into 'drools-pdp'... remote: Counting objects: 336, done remote: Finding sources: 100% (77/77) remote: Total 841 (delta 0), reused 817 (delta 0) Receiving objects: 100% (841/841), 385.39 KiB | 459.00 KiB/s, done. Resolving deltas: 100% (263/263), done. Cloning into 'engine'... remote: Total 6739 (delta 0), reused 6739 (delta 0) Receiving objects: 100% (6739/6739), 14.26 MiB | 2.55 MiB/s, done. Resolving deltas: 100% (2295/2295), done. Cloning into 'portal'... remote: Total 3313 (delta 0), reused 3313 (delta 0) Receiving objects: 100% (3313/3313), 10.44 MiB | 4.00 MiB/s, done. Resolving deltas: 100% (896/896), done. Cloning into 'sdc'... remote: Total 8544 (delta 0), reused 8544 (delta 0) Receiving objects: 100% (8544/8544), 27.19 MiB | 5.52 MiB/s, done. Resolving deltas: 100% (3151/3151), done. mkdir: sdc: File exists Cloning into 'sdc-distribution-client'... remote: Total 2670 (delta 0), reused 2670 (delta 0) Receiving objects: 100% (2670/2670), 9.82 MiB | 2.45 MiB/s, done. Resolving deltas: 100% (654/654), done. Cloning into 'sdc-titan-cassandra'... remote: Total 131 (delta 0), reused 131 (delta 0) Receiving objects: 100% (131/131), 86.71 KiB | 0 bytes/s, done. Resolving deltas: 100% (36/36), done. Cloning into 'sdc_common'... remote: Total 275 (delta 0), reused 275 (delta 0) Receiving objects: 100% (275/275), 98.55 KiB | 0 bytes/s, done. Resolving deltas: 100% (88/88), done. Cloning into 'adaptors'... remote: Total 2291 (delta 0), reused 2291 (delta 0) Receiving objects: 100% (2291/2291), 684.99 KiB | 1.12 MiB/s, done. Resolving deltas: 100% (1439/1439), done. Cloning into 'core'... remote: Counting objects: 376, done remote: Finding sources: 100% (37/37) remote: Total 1632 (delta 0), reused 1621 (delta 0) Receiving objects: 100% (1632/1632), 564.70 KiB | 0 bytes/s, done. Resolving deltas: 100% (551/551), done. Cloning into 'northbound'... remote: Total 945 (delta 0), reused 945 (delta 0) Receiving objects: 100% (945/945), 205.88 KiB | 0 bytes/s, done. Resolving deltas: 100% (279/279), done. Cloning into 'oam'... remote: Total 2308 (delta 0), reused 2308 (delta 0) Receiving objects: 100% (2308/2308), 696.53 MiB | 7.16 MiB/s, done. Resolving deltas: 100% (792/792), done. Cloning into 'plugins'... remote: Total 386 (delta 0), reused 386 (delta 0) Receiving objects: 100% (386/386), 91.73 KiB | 0 bytes/s, done. Resolving deltas: 100% (128/128), done. Cloning into 'testsuite'... remote: Total 501 (delta 0), reused 501 (delta 0) Receiving objects: 100% (501/501), 176.15 KiB | 0 bytes/s, done. Resolving deltas: 100% (210/210), done. mkdir: testsuite: File exists Cloning into 'heatbridge'... remote: Total 22 (delta 0), reused 22 (delta 0) Receiving objects: 100% (22/22), 7.61 KiB | 0 bytes/s, done. Resolving deltas: 100% (1/1), done. Cloning into 'properties'... remote: Total 86 (delta 0), reused 86 (delta 0) Receiving objects: 100% (86/86), 21.80 KiB | 0 bytes/s, done. Resolving deltas: 100% (35/35), done. Cloning into 'python-testing-utils'... remote: Total 35 (delta 0), reused 35 (delta 0) Receiving objects: 100% (35/35), 10.67 KiB | 0 bytes/s, done. Resolving deltas: 100% (4/4), done. Cloning into 'ui'... remote: Total 2 (delta 0), reused 2 (delta 0) Receiving objects: 100% (2/2), done. mkdir: ui: File exists Cloning into 'dmaapbc'... remote: Total 3796 (delta 0), reused 3796 (delta 0) Receiving objects: 100% (3796/3796), 12.11 MiB | 962.00 KiB/s, done. Resolving deltas: 100% (1277/1277), done. Cloning into 'vid'... remote: Total 3183 (delta 0), reused 3183 (delta 0) Receiving objects: 100% (3183/3183), 10.20 MiB | 3.45 MiB/s, done. Resolving deltas: 100% (708/708), done. mkdir: vid: File exists Cloning into 'asdcclient'... remote: Total 104 (delta 0), reused 104 (delta 0) Receiving objects: 100% (104/104), 52.72 KiB | 0 bytes/s, done. Resolving deltas: 100% (28/28), done. obrienbiometrics:onap7 michaelobrien$ |
---|