| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| 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.openwebbeans</groupId> |
| <artifactId>openwebbeans</artifactId> |
| <version>1.2.7-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <artifactId>openwebbeans-doc</artifactId> |
| |
| <name>Documentation</name> |
| <packaging>jar</packaging> |
| <description> |
| Project for building the Apache OpenWebBeans Documentation |
| </description> |
| |
| <profiles> |
| <profile> |
| <id>doc</id> |
| <build> |
| <plugins> |
| <!-- Maven docbook configuration --> |
| <plugin> |
| <groupId>com.agilejava.docbkx</groupId> |
| <artifactId>docbkx-maven-plugin</artifactId> |
| <version>2.0.8</version> |
| <executions> |
| <execution> |
| <id>single-pdf-page</id> |
| <goals> |
| <goal>generate-pdf</goal> |
| </goals> |
| <configuration> |
| <calloutGraphicsPath>src/docbkx/resources/images/callouts/</calloutGraphicsPath> |
| <admonGraphicsPath>src/docbkx/resources/images/admons/</admonGraphicsPath> |
| <imgSrcPath>src/docbkx/resources/images/</imgSrcPath> |
| <foCustomization>${basedir}/src/docbkx/resources/xsl/fopdf.xsl</foCustomization> |
| <draftMode>1</draftMode> |
| <postProcess> |
| <copy todir="${basedir}/target/site"> |
| <fileset dir="${basedir}/target/docbkx"> |
| <include name="**/*.pdf" /> |
| </fileset> |
| </copy> |
| </postProcess> |
| </configuration> |
| <phase>generate-sources</phase> |
| </execution> |
| <execution> |
| <id>single-html-page</id> |
| <goals> |
| <goal>generate-html</goal> |
| </goals> |
| <configuration> |
| <imgSrcPath>images/</imgSrcPath> |
| <chunkedOutput>false</chunkedOutput> |
| <targetDirectory>${basedir}/target/docbkx/html-single</targetDirectory> |
| <htmlStylesheet>css/html.css</htmlStylesheet> |
| <htmlCustomization>${basedir}/src/docbkx/resources/xsl/html.xsl</htmlCustomization> |
| <!-- |
| Just because it's sometimes time costly, I |
| delete only this directory to allow re |
| generation by docbkx plugin During documentation |
| phase, it's useful because it allows a quick and |
| nice overview without costly pdf generation and |
| all packaging. |
| --> |
| <preProcess> |
| <delete dir="${basedir}/target/docbkx/html-single" /> |
| </preProcess> |
| <postProcess> |
| <copy todir="${basedir}/target/site/html-single"> |
| <fileset dir="${basedir}/target/docbkx/html-single"> |
| <include name="**/*.html" /> |
| </fileset> |
| </copy> |
| <copy todir="${basedir}/target/site/html-single"> |
| <fileset dir="${basedir}/src/docbkx/resources"> |
| <include name="**/*.css" /> |
| <include name="**/*.png" /> |
| <include name="**/*.gif" /> |
| <include name="**/*.jpg" /> |
| </fileset> |
| </copy> |
| </postProcess> |
| </configuration> |
| <phase>generate-sources</phase> |
| </execution> |
| </executions> |
| <configuration> |
| <xincludeSupported>true</xincludeSupported> |
| </configuration> |
| <dependencies> |
| <dependency> |
| <groupId>org.docbook</groupId> |
| <artifactId>docbook-xml</artifactId> |
| <version>4.4</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |