blob: 3dda766f51af7f4fbb330d5ff217da13a5c4a756 [file] [log] [blame]
<?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.
-->
<parent>
<artifactId>unomi-root</artifactId>
<groupId>org.apache.unomi</groupId>
<version>1.5.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>manual</artifactId>
<name>Apache Unomi :: Manual</name>
<packaging>bundle</packaging>
<properties>
<doc.source>src/main/asciidoc</doc.source>
<doc.output.html>target/generated-docs/html</doc.output.html>
<doc.output.pdf>target/generated-docs/pdf</doc.output.pdf>
</properties>
<build>
<defaultGoal>process-resources</defaultGoal>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDocumentName>index.adoc</sourceDocumentName>
<sourceDirectory>${doc.source}</sourceDirectory>
<outputDirectory>${doc.output.html}</outputDirectory>
<preserveDirectories>true</preserveDirectories>
<headerFooter>true</headerFooter>
<imagesDir>${doc.source}/images</imagesDir>
<backend>html5</backend>
<doctype>article</doctype>
<attributes>
<toc />
<linkcss>true</linkcss>
<stylesheet>apache.css</stylesheet>
<imagesdir>images</imagesdir>
</attributes>
</configuration>
</execution>
</executions>
<configuration>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<inherited>true</inherited>
<extensions>true</extensions>
<configuration>
<instructions>
<Web-ContextPath>/documentation</Web-ContextPath>
<Import-Package>
org.slf4j;resolution:=optional
</Import-Package>
<Include-Resource>target/generated-docs/html</Include-Resource>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>pdf</id>
<build>
<defaultGoal>process-resources</defaultGoal>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.6.0</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>1.5.0-rc.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-pdf-doc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDocumentName>index.adoc</sourceDocumentName>
<sourceDirectory>${doc.source}</sourceDirectory>
<outputDirectory>${doc.output.pdf}</outputDirectory>
<preserveDirectories>true</preserveDirectories>
<headerFooter>true</headerFooter>
<backend>pdf</backend>
<attributes>
<project-version>${project.version}</project-version>
<pdf-stylesdir>${project.basedir}/src/theme</pdf-stylesdir>
<pdf-style>apache</pdf-style>
<pdf-fontsdir>${project.basedir}/src/theme/fonts</pdf-fontsdir>
<imagesdir>images</imagesdir>
<icons>font</icons>
<pagenums>true</pagenums>
<toc />
<idprefix />
<idseparator>-</idseparator>
<sectnums>true</sectnums>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>