blob: 76ebfc2bf2bc1509ff687e53a96d2d5fd8defbe3 [file] [log] [blame]
ramvermaaf74a622018-07-31 18:25:39 +01001//
2// ============LICENSE_START=======================================================
3// Copyright (C) 2016-2018 Ericsson. All rights reserved.
4// ================================================================================
5// This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE
6// Full license text at https://creativecommons.org/licenses/by/4.0/legalcode
7//
8// SPDX-License-Identifier: CC-BY-4.0
9// ============LICENSE_END=========================================================
10//
11// @author Sven van der Meer (sven.van.der.meer@ericsson.com)
12//
13
14== Standard Build
15
16Use Maven to for a standard build without any tests.
17
18[width="100%",options="header",cols="5a,5a"]
19|====================
20| Unix, Cygwin | Windows
21|
22[source%nowrap,sh,numbered]
23----
24# cd /usr/local/src/apex
25# mvn clean install -DskipTests
26----
27|
28[source%nowrap,bat,numbered]
29----
30>c:
31>cd \dev\apex
32>mvn clean install -DskipTests
33----
34|====================
35
36The build takes 2-3 minutes on a standard development laptop.
37It should run through without errors, but with a lot of messages from the build process.
38
39When Maven is finished with the build, the final screen should look similar to this (omitting some `success` lines):
40
41[source%nowrap,sh,numbered,subs="attributes+"]
42----
43include::{adsite-main-dir}/site-docs/adoc/fragments/screens/mvn-install-skiptests.txt[mvn build, no tests]
44----
45
46
47The build will have created all artifacts required for an APEX installation.
48The following example show how to change to the target directory and how it should look like.
49
50[width="100%",options="header",cols="a"]
51|====================
52| Unix, Cygwin
53|
54[source%nowrap,sh,numbered]
55----
56# cd modules/apex-apps/apex-apps.uservice/apex-apps.uservice-packaging/apex-apps.uservice-package-full/target
57# ls -l
58----
59
60|
61[source%nowrap,sh,numbered,subs="attributes+"]
62----
63include::{adsite-main-dir}/site-docs/adoc/fragments/screens/target-ls-unix.txt[successful build, ls, unix]
64----
65
66|====================
67
68
69[width="100%",options="header",cols="a"]
70|====================
71| Windows
72|
73[source%nowrap,bat,numbered]
74----
75>cd modules\apex-apps\apex-apps.uservice\apex-apps.uservice-packaging\apex-apps.uservice-package-full\target
76>dir
77----
78
79|
80[source%nowrap,sh,numbered,subs="attributes+"]
81----
82include::{adsite-main-dir}/site-docs/adoc/fragments/screens/target-ls-win.txt[successful build, ls, windows]
83----
84
85|====================
86