@@ -32,7 +32,7 @@ function build_profile() {
32
32
mkdir -p target/$profile
33
33
# Build the profile without tests (we did that separately).
34
34
mvn -T 2C -B --file pom.xml package -D descriptors=src/main/assembly/dir.xml -P $profile \
35
- $SKIP_TEST_ARGS $EXTRA_MAVEN_ARGS -D buildDirectory=target/$profile
35
+ -Dfmt.skip $SKIP_TEST_ARGS $EXTRA_MAVEN_ARGS -D buildDirectory=target/$profile
36
36
# Copy the resultant output to the profiles directory.
37
37
cp -rlv target/$profile /benchbase-$profile /benchbase-$profile profiles/$profile
38
38
# Later the container entrypoint will move into this directory to run it, so
105
105
# Fetch resources serially to work around mvn races with downloading the same
106
106
# file in multiple processes (mvn uses *.part instead of use tmpfile naming).
107
107
for profile in ${BENCHBASE_PROFILES} ; do
108
- mvn -T2C -B --file pom.xml -D buildDirectory=target/$profile $EXTRA_MAVEN_ARGS process-resources dependency:copy-dependencies
108
+ mvn -T2C -B --file pom.xml -Dfmt.skip - D buildDirectory=target/$profile $EXTRA_MAVEN_ARGS process-resources dependency:copy-dependencies
109
109
done
110
110
111
111
# Make sure that we've built the base stuff (and test) before we build individual profiles.
@@ -120,7 +120,13 @@ for profile in ${BENCHBASE_PROFILES}; do
120
120
done
121
121
wait
122
122
123
- deduplicate_profile_files
123
+ FIRST_BENCHBASE_PROFILE=$( echo " $BENCHBASE_PROFILES " | awk ' { print $1 }' )
124
+ if [ " $FIRST_BENCHBASE_PROFILE " == " $BENCHBASE_PROFILES " ]; then
125
+ echo " INFO: Single profile build: $FIRST_BENCHBASE_PROFILE . Skipping file dedup."
126
+ else
127
+ echo " INFO: deduplicating files in combo build."
128
+ deduplicate_profile_files
129
+ fi
124
130
125
131
for profile in ${BENCHBASE_PROFILES} ; do
126
132
test_profile_build " $profile " || exit 1
0 commit comments