HBASE-26932 Skip generating ref guide when running 'mvn site' on branch other than master (#4360)
Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
(cherry picked from commit 30908482c5
)
This commit is contained in:
parent
c99f0f22b5
commit
5c15ac63de
|
@ -179,7 +179,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>xml-maven-plugin</artifactId>
|
<artifactId>xml-maven-plugin</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>${xml.maven.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<!-- xml-maven-plugin modifies each exemplar project's pom.xml file to convert to standalone project. -->
|
<!-- xml-maven-plugin modifies each exemplar project's pom.xml file to convert to standalone project. -->
|
||||||
<execution>
|
<execution>
|
||||||
|
|
114
pom.xml
114
pom.xml
|
@ -939,41 +939,6 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- parent-module only plugins -->
|
<!-- parent-module only plugins -->
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>xml-maven-plugin</artifactId>
|
|
||||||
<version>1.0</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<!-- Run the hbase-default.xml through a stylesheet so can show it in doc-->
|
|
||||||
<goals>
|
|
||||||
<goal>transform</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>pre-site</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
<configuration>
|
|
||||||
<transformationSets>
|
|
||||||
<!-- For asciidoc -->
|
|
||||||
<transformationSet>
|
|
||||||
<!--Reaching up and over into common sub-module for hbase-default.xml-->
|
|
||||||
<dir>${basedir}/hbase-common/src/main/resources/</dir>
|
|
||||||
<includes>
|
|
||||||
<include>hbase-default.xml</include>
|
|
||||||
</includes>
|
|
||||||
<stylesheet>${basedir}/src/main/xslt/configuration_to_asciidoc_chapter.xsl</stylesheet>
|
|
||||||
<fileMappers>
|
|
||||||
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
|
|
||||||
<pattern>^(.*)\.xml$</pattern>
|
|
||||||
<replacement>$1.adoc</replacement>
|
|
||||||
</fileMapper>
|
|
||||||
</fileMappers>
|
|
||||||
<outputDir>${basedir}/target/asciidoc</outputDir>
|
|
||||||
</transformationSet>
|
|
||||||
</transformationSets>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<!-- Special configuration for findbugs just in the parent so
|
<!-- Special configuration for findbugs just in the parent so
|
||||||
the filter file location can be more general (see definition in pluginManagement) -->
|
the filter file location can be more general (see definition in pluginManagement) -->
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -1108,83 +1073,6 @@
|
||||||
<outputEncoding>UTF-8</outputEncoding>
|
<outputEncoding>UTF-8</outputEncoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- For AsciiDoc docs building -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
||||||
<version>${asciidoctor.plugin.version}</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctorj-pdf</artifactId>
|
|
||||||
<version>1.5.0-alpha.11</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>target/site</outputDirectory>
|
|
||||||
<doctype>book</doctype>
|
|
||||||
<imagesDir>images</imagesDir>
|
|
||||||
<sourceHighlighter>coderay</sourceHighlighter>
|
|
||||||
<attributes>
|
|
||||||
<docVersion>${project.version}</docVersion>
|
|
||||||
<sourcedir>${project.build.sourceDirectory}</sourcedir>
|
|
||||||
<pdfmarks/>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>output-html</id>
|
|
||||||
<phase>site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<attributes>
|
|
||||||
<stylesheet>hbase.css</stylesheet>
|
|
||||||
</attributes>
|
|
||||||
<backend>html5</backend>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>output-pdf</id>
|
|
||||||
<phase>site</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<backend>pdf</backend>
|
|
||||||
<attributes>
|
|
||||||
<pagenums/>
|
|
||||||
<toc/>
|
|
||||||
<idprefix/>
|
|
||||||
<idseparator>-</idseparator>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
|
||||||
<version>${maven.antrun.version}</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<!-- Rename the book.pdf generated by asciidoctor -->
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>rename-pdf</id>
|
|
||||||
<phase>post-site</phase>
|
|
||||||
<configuration>
|
|
||||||
<target name="rename file">
|
|
||||||
<move file="${project.basedir}/target/site/book.pdf" tofile="${project.basedir}/target/site/apache_hbase_reference_guide.pdf" />
|
|
||||||
<move file="${project.basedir}/target/site/book.pdfmarks" tofile="${project.basedir}/target/site/apache_hbase_reference_guide.pdfmarks" />
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
|
@ -1300,10 +1188,10 @@
|
||||||
When updating checkstyle.version, please make the same change in `.idea/checkstyle-idea.xml`
|
When updating checkstyle.version, please make the same change in `.idea/checkstyle-idea.xml`
|
||||||
-->
|
-->
|
||||||
<checkstyle.version>6.18</checkstyle.version>
|
<checkstyle.version>6.18</checkstyle.version>
|
||||||
<asciidoctor.plugin.version>1.5.3</asciidoctor.plugin.version>
|
|
||||||
<plexus.errorprone.javac.version>2.8.2</plexus.errorprone.javac.version>
|
<plexus.errorprone.javac.version>2.8.2</plexus.errorprone.javac.version>
|
||||||
<spotbugs.version>3.1.0-RC1</spotbugs.version>
|
<spotbugs.version>3.1.0-RC1</spotbugs.version>
|
||||||
<maven.enforcer.version>3.0.0-M1</maven.enforcer.version>
|
<maven.enforcer.version>3.0.0-M1</maven.enforcer.version>
|
||||||
|
<xml.maven.version>1.0.1</xml.maven.version>
|
||||||
<!-- General Packaging -->
|
<!-- General Packaging -->
|
||||||
<package.prefix>/usr</package.prefix>
|
<package.prefix>/usr</package.prefix>
|
||||||
<package.conf.dir>/etc/hbase</package.conf.dir>
|
<package.conf.dir>/etc/hbase</package.conf.dir>
|
||||||
|
|
Loading…
Reference in New Issue