blob: 388972e0fb3c8380f1962db23a6bbf5838c4f352 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
//
// ============LICENSE_START=======================================================
// Copyright (C) 2016-2018 Ericsson. All rights reserved.
// ================================================================================
// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
//
// SPDX-License-Identifier: CC-BY-4.0
// ============LICENSE_END=========================================================
//
// @author Sven van der Meer (sven.van.der.meer@ericsson.com)
//
== Quick Guide: How to build APEX from source
[IMPORTANT]
.A Build needs Space
====
Building APEX requires approximately 2-3 GB of hard disc space, 1 GB for the actual build with full distribution and 1-2 GB for the downloaded dependencies
====
[IMPORTANT]
.A Build requires Internet (for first build)
====
During the build, several (a lot) of Maven dependencies will be downloaded and stored in the configured local Maven repository.
The first standard build (and any first specific build) requires Internet access to download those dependencies.
====
[IMPORTANT]
.Building RPM distributions
====
RPM images are only build if the `rpm` package is installed (Unix).
To install `rpm` run `sudo apt-get install rpm`, then build APEX.
====
=== Standard build
A standard build will build all Maven projects, including the packages.
It will not build the APEX site oand documentation.
Note: APEX has a dependency to ONAP parent projects.
You might need to adjust your Maven M2 settings.
The most current settings can be found in the ONAP oparent repo: link:https://git.onap.org/oparent/plain/settings.xml[Settings].
Without tests, takes about 6 minutes.
----
mvn install -DskipTests
----
With standard tests, takes about 10-15 minutes.
----
mvn install
----
With all tests (requires some database and other software installed).
----
mvn install -DapexAll
----
=== Building the HowTo with all details
Build the APEX stand-alone documentation
----
mvn generate-resources -N -DapexDocs
----
Then open the HowTo in a browser, for example
----
firefox target/generated-docs/html/HowTo-Build-APEX.html
----
=== APEX Site
Building a complete site workflow (start with cleaning your local site staging directory).
[IMPORTANT]
.Building a Site takes Time
====
Building and staging the APEX web site can take very long.
The stand-alone documentation will take about 2 minutes.
The sites for all modules and projects and the main APEX site can take between 10-30 minutes depending on your build machine
(~10 minutes without generating source and test-source reports, closer to 30 minutes with all reports).
====
----
mvn clean -DapexAll
mvn install -DskipTests
mvn generate-resources -N -DapexDocs
mvn initialize site:attach-descriptor site site:stage -DapexSite
----
Terms & Conditions apply
* * *
*The ONAP APEX team*
|