Skip to content

Commit df4fa6d

Browse files
authored
Add maven option in build specs (#3591)
1 parent 4496c13 commit df4fa6d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

buildspecs/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ phases:
77

88
build:
99
commands:
10-
- mvn clean install -T1C
10+
- mvn clean install -T1C $MAVEN_OPTIONS
1111
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
1212
- echo $JAVA_VERSION
13+
- echo $MAVEN_OPTIONS
1314
- |
1415
if [ "$JAVA_VERSION" -ge "9" ]; then
1516
cd test/module-path-tests

buildspecs/integ-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ phases:
1515
AWS_SESSION_TOKEN=`echo $ASSUME_ROLE_OUTPUT | awk '{ print $3 }'`
1616
echo "Using role $INTEGRATION_TEST_ROLE_ARN with access key $AWS_ACCESS_KEY_ID."
1717
fi
18-
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C
18+
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C $MAVEN_OPTIONS
1919
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
2020
- echo $JAVA_VERSION
21+
- echo $MAVEN_OPTIONS
2122
- |
2223
if [ "$JAVA_VERSION" -ge "9" ]; then
2324
cd test/module-path-tests

buildspecs/stability-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ phases:
77

88
build:
99
commands:
10-
- mvn clean install -P stability-tests -pl :stability-tests --am
10+
- mvn clean install -P stability-tests -pl :stability-tests --am $MAVEN_OPTIONS
11+
- echo $MAVEN_OPTIONS
1112
finally:
1213
- mkdir -p codebuild-test-reports
1314
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;

0 commit comments

Comments
 (0)