HBASE-20389 Move website building flags into a profile.

Signed-off-by: Mike Drob <mdrob@apache.org>

 Conflicts:
	hbase-spark/pom.xml
	pom.xml
This commit is contained in:
Sean Busbey 2018-04-12 21:55:27 -05:00
parent dcd20e9cef
commit 1d133c005c
2 changed files with 33 additions and 9 deletions

View File

@ -173,20 +173,13 @@ echo "Building HBase"
# But! some sunshine: because we're doing a full install before running site, we can skip all the # But! some sunshine: because we're doing a full install before running site, we can skip all the
# compiling in the forked executions. We have to do it awkwardly because MJAVADOC-444. # compiling in the forked executions. We have to do it awkwardly because MJAVADOC-444.
if mvn \ if mvn \
-DskipTests \
-Dmaven.javadoc.skip=true \
--batch-mode \ --batch-mode \
-Denforcer.skip=true \ -Psite-install-step \
-Dcheckstyle.skip=true \
-Dfindbugs.skip=true \
--log-file="${working_dir}/hbase-install-log-${CURRENT_HBASE_COMMIT}.txt" \ --log-file="${working_dir}/hbase-install-log-${CURRENT_HBASE_COMMIT}.txt" \
clean install \ clean install \
&& mvn site \ && mvn site \
--batch-mode \ --batch-mode \
-Denforcer.skip=true \ -Psite-build-step \
-Dmaven.main.skip=true \
-Dmaven.test.skip=true \
-DskipTests \
--log-file="${working_dir}/hbase-site-log-${CURRENT_HBASE_COMMIT}.txt"; then --log-file="${working_dir}/hbase-site-log-${CURRENT_HBASE_COMMIT}.txt"; then
echo "Successfully built site." echo "Successfully built site."
else else

31
pom.xml
View File

@ -3376,6 +3376,37 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<!-- Used by the website generation script on jenkins to
do a local install of the jars we need to run a normal
site build w/o forking.
-->
<id>site-install-step</id>
<properties>
<skipTests>true</skipTests>
<maven.javadoc.skip>true</maven.javadoc.skip>
<enforcer.skip>true</enforcer.skip>
<checkstyle.skip>true</checkstyle.skip>
<findbugs.skip>true</findbugs.skip>
<warbucks.skip>true</warbucks.skip>
</properties>
</profile>
<profile>
<!-- Used by the website generation script on jenkins to
mitigate the impact of unneeded build forks while building
our javadocs.
-->
<id>site-build-step</id>
<properties>
<skipTests>true</skipTests>
<enforcer.skip>true</enforcer.skip>
<maven.main.skip>true</maven.main.skip>
<maven.test.skip>true</maven.test.skip>
<warbucks.skip>true</warbucks.skip>
<protoc.skip>true</protoc.skip>
<remoteresources.skip>true</remoteresources.skip>
</properties>
</profile>
</profiles> </profiles>
<!-- See http://jira.codehaus.org/browse/MSITE-443 why the settings need to be here and not in pluginManagement. --> <!-- See http://jira.codehaus.org/browse/MSITE-443 why the settings need to be here and not in pluginManagement. -->
<reporting> <reporting>