pom.xml revision 0c5c324e
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.hc2vpp.common</groupId>
21    <artifactId>hc2vpp-parent</artifactId>
22    <version>1.19.08-SNAPSHOT</version>
23    <relativePath>../common/hc2vpp-parent</relativePath>
24  </parent>
25
26  <groupId>io.fd.hc2vpp</groupId>
27  <artifactId>release-notes-aggregator</artifactId>
28  <version>1.19.08-SNAPSHOT</version>
29  <name>${project.artifactId}</name>
30  <packaging>pom</packaging>
31  <modelVersion>4.0.0</modelVersion>
32  <description>Hc2vpp release notes</description>
33
34  <dependencies>
35    <dependency>
36        <groupId>io.fd.hc2vpp.docs</groupId>
37        <artifactId>docs</artifactId>
38        <version>${project.version}</version>
39    </dependency>
40  </dependencies>
41
42  <!-- Do not push, this is just a documentation producer -->
43  <build>
44    <plugins>
45      <plugin>
46        <groupId>org.apache.maven.plugins</groupId>
47        <artifactId>maven-deploy-plugin</artifactId>
48        <configuration>
49          <skip>true</skip>
50        </configuration>
51      </plugin>
52      <plugin>
53        <groupId>org.apache.maven.plugins</groupId>
54        <artifactId>maven-install-plugin</artifactId>
55        <configuration>
56          <skip>true</skip>
57        </configuration>
58      </plugin>
59
60      <plugin>
61         <groupId>org.apache.maven.plugins</groupId>
62         <artifactId>maven-dependency-plugin</artifactId>
63         <version>3.1.1</version>
64         <executions>
65            <execution>
66                <id>unpack-configuration</id>
67                <phase>generate-sources</phase>
68                <goals>
69                    <goal>unpack-dependencies</goal>
70                </goals>
71                <configuration>
72                    <includes>*.adoc</includes>
73                    <outputDirectory>${project.build.directory}/raw-adoc/api_docs</outputDirectory>
74                </configuration>
75            </execution>
76         </executions>
77      </plugin>
78
79     <plugin>
80        <groupId>org.asciidoctor</groupId>
81        <artifactId>asciidoctor-maven-plugin</artifactId>
82        <version>${asciidoctor.maven.plugin.version}</version>
83        <executions>
84          <execution>
85            <id>output-html</id>
86            <phase>generate-resources</phase>
87            <goals>
88              <goal>process-asciidoc</goal>
89            </goals>
90            <configuration>
91              <!-- https://github.com/asciidoctor/asciidoctor-maven-plugin -->
92              <!-- http://asciidoctor.org/docs/asciidoc-syntax-quick-reference -->
93              <!-- raw-adoc folder combines docs from src folder + generated api docs files,
94              in order to have them all available while generating site -->
95              <baseDir>${project.build.directory}/raw-adoc</baseDir>
96              <backend>html5</backend>
97              <doctype>docbook</doctype>
98              <sourceHighlighter>coderay</sourceHighlighter>
99              <!-- http://asciidoc.org/userguide.html#X88 -->
100              <attributes>
101                <sectnums>true</sectnums>
102                <toc>left</toc>
103                <icons>font</icons>
104                <prewrap>false</prewrap>
105                <nowrap>true</nowrap>
106                <!-- Attributes below are inlined into resulting documentation,
107                making it much easier when bumping versions -->
108                <project-version>${project.version}</project-version>
109                <project-public-version>19.08</project-public-version>
110                <project-config-version>1-19-08</project-config-version>
111                <project-version-in-jira>11802</project-version-in-jira>
112                <project-branch>master</project-branch>
113                <project-odl-version>oxygen</project-odl-version>
114                <project-vpp-version>19.08</project-vpp-version>
115                <!-- TODO set snapshot version to project-vpp-version after VPP is released-->
116                <!--<project-vpp-snapshot-version>19.08</project-vpp-snapshot-version>-->
117                <project-vpp-snapshot-version>19.08-SNAPSHOT</project-vpp-snapshot-version>
118                <project-nat-version>19.08</project-nat-version>
119                <!-- TODO set snapshot version to project-nat-version after VPP is released-->
120                <!--<project-nat-snapshot-version>19.08</project-nat-snapshot-version>-->
121                <project-nat-snapshot-version>19.08-SNAPSHOT</project-nat-snapshot-version>
122                <project-git-web>https://git.fd.io/cgit/hc2vpp/tree</project-git-web>
123                <project-infra-git-web>https://git.fd.io/cgit/honeycomb/tree</project-infra-git-web>
124              </attributes>
125            </configuration>
126          </execution>
127        </executions>
128        <!-- Diagrams not supported -->
129      </plugin>
130
131      <!-- Copy release notes also to site -->
132      <plugin>
133        <artifactId>maven-resources-plugin</artifactId>
134        <executions>
135          <execution>
136            <id>copy-raw-adoc</id>
137              <phase>generate-sources</phase>
138              <goals>
139                <goal>copy-resources</goal>
140              </goals>
141              <configuration>
142                <outputDirectory>${project.build.directory}/raw-adoc</outputDirectory>
143                <resources>
144                  <resource>
145                    <directory>${project.basedir}/src/main/asciidoc/</directory>
146                  </resource>
147                </resources>
148             </configuration>
149          </execution>
150          <execution>
151            <id>copy-release-notes-to-site</id>
152            <phase>site</phase>
153            <goals>
154              <goal>copy-resources</goal>
155            </goals>
156            <configuration>
157              <outputDirectory>${project.build.directory}/site</outputDirectory>
158              <resources>
159                <resource>
160                  <directory>${project.build.directory}/generated-docs/</directory>
161                </resource>
162              </resources>
163            </configuration>
164          </execution>
165        </executions>
166      </plugin>
167    </plugins>
168  </build>
169</project>
170