| <?xml version="1.0" encoding="UTF-8"?> |
| <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/xsd/maven-4.0.0.xsd"> |
| |
| <!-- |
| |
| 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. |
| --> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.karaf</groupId> |
| <artifactId>decanter</artifactId> |
| <version>1.2.0-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.karaf.decanter</groupId> |
| <artifactId>manual</artifactId> |
| <packaging>pom</packaging> |
| <name>Apache Karaf :: Decanter :: Manual</name> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.asciidoctor</groupId> |
| <artifactId>asciidoctor-maven-plugin</artifactId> |
| <version>1.5.2</version> |
| <executions> |
| <execution> |
| <id>output-html</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>process-asciidoc</goal> |
| </goals> |
| <configuration> |
| <sourceHighlighter>coderay</sourceHighlighter> |
| <backend>html5</backend> |
| <doctype>article</doctype> |
| <attributes> |
| <toc/> |
| <linkcss>false</linkcss> |
| </attributes> |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <sourceDirectory>src/main/asciidoc</sourceDirectory> |
| <headerFooter>true</headerFooter> |
| <imagesDir>src/main/asciidoc/images</imagesDir> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-scm-publish-plugin</artifactId> |
| <version>1.0-beta-2</version> |
| <configuration> |
| <checkinComment>[scm-publish] Updating main site with Karaf Decanter documentation</checkinComment> |
| <pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/karaf/site/production/manual/decanter/latest-1</pubScmUrl> |
| <content>${project.build.directory}/generated-docs</content> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>pdf</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.6</version> |
| <executions> |
| <execution> |
| <id>create-user-guide</id> |
| <phase>package</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <mkdir dir="target"/> |
| <copy file="${project.build.directory}/generated-docs/index.html" tofile="target/documentation.html"/> |
| <echo message="Generating PDF using Prince XML (http://www.princexml.com/)"/> |
| <exec executable="prince"> |
| <arg value="target/documentation.html"/> |
| <arg value="target/documentation.pdf"/> |
| <arg value="--log"/> |
| <arg value="${project.build.directory}/prince.log"/> |
| </exec> |
| <attachartifact file="target/documentation.html" type="html"/> |
| <attachartifact file="target/documentation.pdf" type="pdf"/> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |