| <?xml version="1.0"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.servicemix.docs</groupId> |
| <artifactId>parent</artifactId> |
| <version>3.3-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>docs</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache ServiceMix :: Documentation</name> |
| <description>Apache ServiceMix Documentation</description> |
| |
| <modules> |
| <module>manual</module> |
| </modules> |
| |
| <properties> |
| <docbkx.start.page>index.xml</docbkx.start.page> |
| |
| <!-- toolchain versions --> |
| <docs-maven-plugin.version>0.1-SNAPSHOT</docs-maven-plugin.version> |
| </properties> |
| |
| <build> |
| |
| <resources> |
| <resource> |
| <targetPath>${project.build.directory}/docbkx/sources</targetPath> |
| <directory>${basedir}/src/docbkx</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| |
| <plugins> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>resources</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| </configuration> |
| </plugin> |
| |
| <!-- extract common files (stylesheets, ...) --> |
| <plugin> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <version>1.1</version> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>process</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/common</outputDirectory> |
| <resourceBundles> |
| <resourceBundle>org.apache.servicemix.docs:common:${pom.version}</resourceBundle> |
| </resourceBundles> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- generate the HTML and PDF --> |
| <plugin> |
| <groupId>com.agilejava.docbkx</groupId> |
| <artifactId>docbkx-maven-plugin</artifactId> |
| <version>2.0.9</version> |
| <executions> |
| |
| <execution> |
| <id>generate-chuncked-html</id> |
| <goals> |
| <goal>generate-html</goal> |
| </goals> |
| <phase>verify</phase> |
| <configuration> |
| <htmlStylesheet>theme/master.css</htmlStylesheet> |
| <chunkToc>false</chunkToc> |
| <chunkedOutput>true</chunkedOutput> |
| <postProcess> |
| <property name="theme" location="${project.build.directory}/site/html/theme"/> |
| <mkdir dir="${theme}"/> |
| <copy todir="${theme}"> |
| <fileset dir="${project.build.directory}/common/theme"/> |
| </copy> |
| </postProcess> |
| <targetDirectory>${project.reporting.outputDirectory}/html</targetDirectory> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>generate-single-html</id> |
| <goals> |
| <goal>generate-html</goal> |
| </goals> |
| <phase>verify</phase> |
| <configuration> |
| <htmlStylesheet>theme/master.css</htmlStylesheet> |
| <chunkedOutput>false</chunkedOutput> |
| <postProcess> |
| <property name="theme" location="${project.build.directory}/site/single/theme"/> |
| <mkdir dir="${theme}"/> |
| <copy todir="${theme}"> |
| <fileset dir="${project.build.directory}/common/theme"/> |
| </copy> |
| </postProcess> |
| <targetDirectory>${project.reporting.outputDirectory}/single</targetDirectory> |
| </configuration> |
| </execution> |
| |
| <execution> |
| <id>generate-pdf</id> |
| <goals> |
| <goal>generate-pdf</goal> |
| </goals> |
| <phase>verify</phase> |
| <configuration> |
| <foCustomization>${project.build.directory}/common/styles/docbook-fo.xsl</foCustomization> |
| <targetDirectory>${project.reporting.outputDirectory}/pdf</targetDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| |
| <configuration> |
| <xincludeSupported>true</xincludeSupported> |
| <entities> |
| <entity> |
| <name>version</name> |
| <value>${servicemix-version}</value> |
| </entity> |
| </entities> |
| |
| <sourceDirectory>${project.build.directory}/docbkx/sources</sourceDirectory> |
| <includes>${docbkx.start.page}</includes> |
| </configuration> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.docbook</groupId> |
| <artifactId>docbook-xml</artifactId> |
| <version>4.4</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>net.sf.xslthl</groupId> |
| <artifactId>xslthl</artifactId> |
| <version>2.0.1</version> |
| </dependency> |
| </dependencies> |
| |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.servicemix.tooling</groupId> |
| <artifactId>docs-maven-plugin</artifactId> |
| <version>${docs-maven-plugin.version}</version> |
| <executions> |
| <execution> |
| <id>configure-snippet-handler</id> |
| <inherited>false</inherited> <!-- URL handlers only have to be registered once --> |
| <goals> |
| <goal>snippet</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>confluence-to-docbook</id> |
| <inherited>true</inherited> |
| <goals> |
| <goal>confluence-to-docbook</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <snippetBase>http://svn.apache.org/repos/asf/servicemix/</snippetBase> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |