HBASE-26917 Do not add --threads when running 'mvn site' (#4354)

Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
This commit is contained in:
Duo Zhang 2022-04-29 08:05:00 +08:00 committed by GitHub
parent f848c61e3d
commit f4eb9071fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -156,10 +156,14 @@ function personality_modules
# At a few points, hbase modules can run build, test, etc. in parallel
# Let it happen. Means we'll use more CPU but should be for short bursts.
# https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3
if [[ -n "${BUILD_THREAD}" ]]; then
extra="--threads=${BUILD_THREAD}"
if [[ "${testtype}" == mvnsite ]]; then
yetus_debug "Skip specifying --threads since maven-site-plugin does not support building in parallel."
else
extra="--threads=2"
if [[ -n "${BUILD_THREAD}" ]]; then
extra="--threads=${BUILD_THREAD}"
else
extra="--threads=2"
fi
fi
# Set java.io.tmpdir to avoid exhausting the /tmp space