blob: 1e08264f6c4ef045ec7142f011c3f17e22d963f1 [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
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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>23</version>
</parent>
<groupId>org.apache.db</groupId>
<artifactId>db-site</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache DB Site</name>
<description>Apache DB serves as an umbrella for several subprojects such as Derby, JDO and Torque.
This repository contains the sources for the Apache DB website</description>
<url>https://db.apache.org/</url>
<inceptionYear>2021</inceptionYear>
<organization>
<name>Apache Software Foundation</name>
<url>https://www.apache.org</url>
</organization>
<scm>
<connection>scm:git:https://gitbox.apache.org/repos/asf/db-site.git</connection>
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/db-site.git</developerConnection>
<url>https://gitbox.apache.org/repos/asf?p=db-site.git</url>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctor.maven.plugin.version>2.1.0</asciidoctor.maven.plugin.version>
<maven-resources-plugin.version>3.2.0</maven-resources-plugin.version>
<build.dir>${project.basedir}/target/site</build.dir>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<configuration>
<baseDir>${project.basedir}</baseDir>
<!-- Attributes common to all output formats -->
<attributes>
<endpoint-url>https://db.apache.org/jdo</endpoint-url>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<project-version>${project.version}</project-version>
</attributes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${build.dir}</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/javadoc</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources/quickref</directory>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>html</id>
<activation>
<property>
<name>!skip.html</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<sourceDirectory>src/main/asciidoc/</sourceDirectory>
<outputDirectory>${project.reporting.outputDirectory}/</outputDirectory>
<templateDirs>
<templateDir>src/main/template</templateDir>
</templateDirs>
<eruby>erb</eruby>
<preserveDirectories>true</preserveDirectories>
<relativeBaseDir>true</relativeBaseDir>
<attributes>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
<source-highlighter>coderay</source-highlighter>
<icons>font</icons>
<version>${project.version}</version>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>