@@ -6,6 +6,7 @@ CLONE_OPT="--filter=blob:none"
6
6
SET_PROPERTY_OPT=" -DgenerateBackupPoms=false -q"
7
7
HELP_EVAL_OPT=" -q -DforceStdout"
8
8
9
+ BUILD_OPT=" -T1C"
9
10
TEST_OPT=" "
10
11
11
12
MVN=" mvn -Dmaven.repo.local=$BUILD_DIR /m2_repository"
@@ -49,6 +50,7 @@ function usage() {
49
50
echo " - \" NONE\" : don't build anything (but retrieve the missing repos)"
50
51
echo " Possible options:"
51
52
echo " * --skip-tests: skip tests"
53
+ echo " * --mono-thread: maven build on single thread"
52
54
}
53
55
54
56
function success() {
@@ -71,6 +73,11 @@ case $key in
71
73
echo " -> skipping tests"
72
74
shift # past argument
73
75
;;
76
+ --mono-thread)
77
+ BUILD_OPT=" "
78
+ echo " -> maven build on single thread"
79
+ shift # past argument
80
+ ;;
74
81
* ) # unknown option
75
82
POSITIONAL+=(" $1 " ) # save it in an array for later
76
83
shift # past argument
@@ -274,7 +281,7 @@ pause
274
281
if [ $START_FROM -lt 1 ]
275
282
then
276
283
cd powsybl-core
277
- $MVN -batch-mode --no-transfer-progress clean install -DskipTests
284
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT -DskipTests
278
285
if [[ " $? " -ne 0 ]] ; then
279
286
exit 1
280
287
fi
283
290
if [ $START_FROM -lt 2 ]
284
291
then
285
292
cd powsybl-open-loadflow
286
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
293
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
287
294
if [[ " $? " -ne 0 ]] ; then
288
295
exit 1
289
296
fi
292
299
if [ $START_FROM -lt 3 ]
293
300
then
294
301
cd powsybl-diagram
295
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
302
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
296
303
if [[ " $? " -ne 0 ]] ; then
297
304
exit 1
298
305
fi
301
308
if [ $START_FROM -lt 4 ]
302
309
then
303
310
cd powsybl-entsoe
304
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
311
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
305
312
if [[ " $? " -ne 0 ]] ; then
306
313
exit 1
307
314
fi
310
317
if [ $START_FROM -lt 5 ]
311
318
then
312
319
cd powsybl-open-rao
313
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
320
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
314
321
if [[ " $? " -ne 0 ]] ; then
315
322
exit 1
316
323
fi
319
326
if [ $START_FROM -lt 6 ]
320
327
then
321
328
cd powsybl-dynawo
322
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
329
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
323
330
if [[ " $? " -ne 0 ]] ; then
324
331
exit 1
325
332
fi
328
335
if [ $START_FROM -lt 7 ]
329
336
then
330
337
cd powsybl-dependencies
331
- $MVN -batch-mode --no-transfer-progress clean install $TEST_OPT
338
+ $MVN -batch-mode --no-transfer-progress clean install $BUILD_OPT $ TEST_OPT
332
339
if [[ " $? " -ne 0 ]] ; then
333
340
exit 1
334
341
fi
0 commit comments