pom.xml revision 75f0efb8
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  ~ Copyright (c) 2016 Cisco and/or its affiliates.
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at:
8  ~
9  ~     http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<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">
18
19  <parent>
20    <groupId>io.fd.honeycomb.common</groupId>
21    <artifactId>honeycomb-parent</artifactId>
22    <version>1.17.04-SNAPSHOT</version>
23    <relativePath>../common/honeycomb-parent</relativePath>
24  </parent>
25
26  <groupId>io.fd.honeycomb.nat</groupId>
27  <artifactId>release-notes-aggregator</artifactId>
28  <version>1.17.04-SNAPSHOT</version>
29  <name>${project.artifactId}</name>
30  <packaging>pom</packaging>
31  <modelVersion>4.0.0</modelVersion>
32  <description>Release notes</description>
33
34  <!-- Do not push, this is just a documentation producer -->
35  <build>
36    <plugins>
37      <plugin>
38        <groupId>org.apache.maven.plugins</groupId>
39        <artifactId>maven-deploy-plugin</artifactId>
40        <configuration>
41          <skip>true</skip>
42        </configuration>
43      </plugin>
44      <plugin>
45        <groupId>org.apache.maven.plugins</groupId>
46        <artifactId>maven-install-plugin</artifactId>
47        <configuration>
48          <skip>true</skip>
49        </configuration>
50      </plugin>
51
52      <plugin>
53        <groupId>org.asciidoctor</groupId>
54        <artifactId>asciidoctor-maven-plugin</artifactId>
55        <version>${asciidoctor.maven.plugin.version}</version>
56        <executions>
57          <execution>
58            <id>output-html</id>
59            <phase>generate-resources</phase>
60            <goals>
61              <goal>process-asciidoc</goal>
62            </goals>
63            <configuration>
64              <!-- https://github.com/asciidoctor/asciidoctor-maven-plugin -->
65              <!-- http://asciidoctor.org/docs/asciidoc-syntax-quick-reference -->
66              <backend>html5</backend>
67              <doctype>docbook</doctype>
68              <sourceHighlighter>coderay</sourceHighlighter>
69              <!-- http://asciidoc.org/userguide.html#X88 -->
70              <attributes>
71                <sectnums>true</sectnums>
72                <toc>left</toc>
73                <icons>font</icons>
74                <prewrap>false</prewrap>
75                <nowrap>true</nowrap>
76                <!-- Attributes below are inlined into resulting documentation,
77                making it much easier when bumping versions -->
78                <project-version>${project.version}</project-version>
79                <project-public-version>17.04</project-public-version>
80                <project-version-in-jira>10600</project-version-in-jira>
81                <project-branch>master</project-branch>
82                <project-git-web>https://git.fd.io/cgit/honeycomb/tree</project-git-web>
83              </attributes>
84            </configuration>
85          </execution>
86        </executions>
87        <!-- Diagrams not supported -->
88      </plugin>
89
90      <!-- Copy release notes also to site -->
91      <plugin>
92        <artifactId>maven-resources-plugin</artifactId>
93        <executions>
94          <execution>
95            <id>copy-release-notes-to-site</id>
96            <phase>site</phase>
97            <goals>
98              <goal>copy-resources</goal>
99            </goals>
100            <configuration>
101              <outputDirectory>${project.build.directory}/site</outputDirectory>
102              <resources>
103                <resource>
104                  <directory>${project.build.directory}/generated-docs/</directory>
105                </resource>
106              </resources>
107            </configuration>
108          </execution>
109        </executions>
110      </plugin>
111    </plugins>
112  </build>
113</project>
114