blob: 94d3e94904fb20c49a4b4f0bf3cc88cffdfbec83 [file] [log] [blame]
<?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
~
~ https://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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cayenne-docs-parent</artifactId>
<groupId>org.apache.cayenne.docs</groupId>
<version>5.0-M1</version>
</parent>
<artifactId>cayenne-asciidoc-parent</artifactId>
<name>cayenne-asciidoc: Cayenne AsciiDoc Documentation parent</name>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<modules>
<module>cayenne-asciidoc-extension</module>
<module>cayenne-guide</module>
<module>getting-started-guide</module>
<module>getting-started-db-first</module>
<module>upgrade-guide</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctorj.version>2.5.12</asciidoctorj.version>
<asciidoctor.maven.plugin.version>2.2.6</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>2.1.4</asciidoctorj.pdf.version>
<cayenne.version>${project.version}</cayenne.version>
<cayenne.major.version>5.0</cayenne.major.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cayenne</groupId>
<artifactId>cayenne</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<configuration>
<sourceDirectory>src/docs/asciidoc</sourceDirectory>
<doctype>book</doctype>
<!-- Attributes common to all output formats -->
<attributes>
<endpoint-url>http://cayenne.apache.org</endpoint-url>
<basedir>${project.basedir}</basedir>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<project-version>${cayenne.version}</project-version>
<project-major-version>${cayenne.major.version}</project-major-version>
<imagesdir>images</imagesdir>
<icons>font</icons>
<sectnumlevels>4</sectnumlevels>
<sectanchors>true</sectanchors>
<idprefix /> <!-- set the idprefix to blank -->
<idseparator>-</idseparator>
</attributes>
</configuration>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- Move images to proper path for site -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy docs for site</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/tmp/</directory>
<includes>
<include>${project.artifactId}.html</include>
<include>${project.artifactId}.toc.html</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy additional docs for site</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site/${project.artifactId}/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/tmp/${project.artifactId}/</directory>
<includes>
<include>*.html</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy images for site</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/site/${project.artifactId}/images/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/tmp/images/</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>