ba01721e7676f8a656198b11ad89267917ba082e
[honeycomb.git] / release-notes / pom.xml
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.18.01-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.18.01-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>18.01</project-public-version>
80                 <project-version-in-jira>11004</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                 <project-odl-branch>stable-carbon</project-odl-branch>
84               </attributes>
85             </configuration>
86           </execution>
87         </executions>
88         <!-- Diagrams not supported -->
89       </plugin>
90
91       <!-- Copy release notes also to site -->
92       <plugin>
93         <artifactId>maven-resources-plugin</artifactId>
94         <executions>
95           <execution>
96             <id>copy-release-notes-to-site</id>
97             <phase>site</phase>
98             <goals>
99               <goal>copy-resources</goal>
100             </goals>
101             <configuration>
102               <outputDirectory>${project.build.directory}/site</outputDirectory>
103               <resources>
104                 <resource>
105                   <directory>${project.build.directory}/generated-docs/</directory>
106                 </resource>
107               </resources>
108             </configuration>
109           </execution>
110         </executions>
111       </plugin>
112     </plugins>
113   </build>
114 </project>