HBASE-26932 Skip generating ref guide when running 'mvn site' on branch other than master (#4360)
Signed-off-by: GeorryHuang <huangzhuoyue@apache.org>
This commit is contained in:
parent
fd2e7205ac
commit
30908482c5
|
@ -178,6 +178,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>xml-maven-plugin</artifactId>
|
<artifactId>xml-maven-plugin</artifactId>
|
||||||
|
<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>
|
||||||
|
|
117
pom.xml
117
pom.xml
|
@ -603,8 +603,6 @@
|
||||||
<commons-crypto.version>1.0.0</commons-crypto.version>
|
<commons-crypto.version>1.0.0</commons-crypto.version>
|
||||||
<curator.version>4.2.0</curator.version>
|
<curator.version>4.2.0</curator.version>
|
||||||
<!-- Plugin Dependencies -->
|
<!-- Plugin Dependencies -->
|
||||||
<asciidoctor.plugin.version>2.1.0</asciidoctor.plugin.version>
|
|
||||||
<asciidoctorj.pdf.version>1.5.3</asciidoctorj.pdf.version>
|
|
||||||
<build.helper.maven.version>3.0.0</build.helper.maven.version>
|
<build.helper.maven.version>3.0.0</build.helper.maven.version>
|
||||||
<buildnumber.maven.version>1.4</buildnumber.maven.version>
|
<buildnumber.maven.version>1.4</buildnumber.maven.version>
|
||||||
<!--
|
<!--
|
||||||
|
@ -2261,41 +2259,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>${xml.maven.version}</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<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>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<!-- Run the hbase-default.xml through a stylesheet so can show it in doc-->
|
|
||||||
<goals>
|
|
||||||
<goal>transform</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>site</phase>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<!-- Special configuration for spotbugs just in the parent so
|
<!-- Special configuration for spotbugs 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>
|
||||||
|
@ -2335,65 +2298,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- For AsciiDoc docs building -->
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
|
||||||
<version>${asciidoctor.plugin.version}</version>
|
|
||||||
<inherited>false</inherited>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.reporting.outputDirectory}/</outputDirectory>
|
|
||||||
<doctype>book</doctype>
|
|
||||||
<attributes>
|
|
||||||
<docVersion>${project.version}</docVersion>
|
|
||||||
<imagesdir>images</imagesdir>
|
|
||||||
<source-highlighter>coderay</source-highlighter>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.asciidoctor</groupId>
|
|
||||||
<artifactId>asciidoctorj-pdf</artifactId>
|
|
||||||
<version>${asciidoctorj.pdf.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jruby</groupId>
|
|
||||||
<artifactId>jruby-complete</artifactId>
|
|
||||||
<version>${jruby.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>output-html</id>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>site</phase>
|
|
||||||
<configuration>
|
|
||||||
<attributes>
|
|
||||||
<stylesheet>hbase.css</stylesheet>
|
|
||||||
</attributes>
|
|
||||||
<backend>html5</backend>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>output-pdf</id>
|
|
||||||
<goals>
|
|
||||||
<goal>process-asciidoc</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>site</phase>
|
|
||||||
<configuration>
|
|
||||||
<backend>pdf</backend>
|
|
||||||
<attributes>
|
|
||||||
<pagenums/>
|
|
||||||
<toc/>
|
|
||||||
<idprefix/>
|
|
||||||
<idseparator>-</idseparator>
|
|
||||||
</attributes>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
@ -2442,27 +2346,6 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<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>
|
|
||||||
<goals>
|
|
||||||
<goal>run</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>site</phase>
|
|
||||||
<configuration>
|
|
||||||
<target name="rename file">
|
|
||||||
<move file="${project.reporting.outputDirectory}/book.pdf" tofile="${project.reporting.outputDirectory}/apache_hbase_reference_guide.pdf"/>
|
|
||||||
</target>
|
|
||||||
</configuration>
|
|
||||||
</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>
|
||||||
|
|
Loading…
Reference in New Issue