Skip to content
Permalink
Browse files
HBASE-26917 Do not add --threads when running 'mvn site' (#4354)
Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
  • Loading branch information
Apache9 committed Apr 29, 2022
1 parent f848c61 commit f4eb9071fdc3293be91a8f12570b4191543a4211
Showing 1 changed file with 7 additions and 3 deletions.
@@ -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

0 comments on commit f4eb907

Please sign in to comment.