pom.xml revision 52ca7c2e
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  ~ Copyright (c) 2017 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
18<project xmlns="http://maven.apache.org/POM/4.0.0"
19         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21    <modelVersion>4.0.0</modelVersion>
22
23    <groupId>io.fd.hc2vpp.docs</groupId>
24    <artifactId>docs</artifactId>
25    <version>1.18.07-SNAPSHOT</version>
26    <name>${project.artifactId}</name>
27
28    <properties>
29        <!-- List of modules that are used to extract Writer/Reader factories, and therefore generate api documentation -->
30        <api.docs.modules>
31            io.fd.hc2vpp.docs.core.mock.binding.MockBindingModule,
32            io.fd.hc2vpp.management.VppManagementModule,
33            io.fd.hc2vpp.lisp.LispModule,
34            io.fd.hc2vpp.lisp.gpe.GpeModule,
35            io.fd.hc2vpp.v3po.V3poModule,
36            io.fd.hc2vpp.iface.role.InterfaceRoleModule,
37            io.fd.hc2vpp.l3.InterfaceL3Module,
38            io.fd.hc2vpp.l3.SubInterfaceL3Module,
39            io.fd.hc2vpp.l3.ProxyArpModule,
40            io.fd.hc2vpp.vpp.classifier.VppClassifierModule,
41            io.fd.hc2vpp.vpp.classifier.InterfaceClassifierAclModule,
42            io.fd.hc2vpp.vpp.classifier.SubInterfaceClassifierAclModule,
43            io.fd.hc2vpp.docs.core.mock.binding.MockNatModule,
44            io.fd.hc2vpp.routing.RoutingModule,
45            io.fd.hc2vpp.docs.core.mock.binding.MockAclModule,
46            io.fd.hc2vpp.dhcp.DhcpModule,
47            io.fd.hc2vpp.policer.PolicerModule,
48            io.fd.hc2vpp.mpls.MplsModule,
49            io.fd.hc2vpp.docs.core.mock.binding.MockNshModule,
50            io.fd.hc2vpp.docs.core.mock.binding.MockIoamModule,
51            io.fd.hc2vpp.bgp.inet.BgpInetModule,
52            io.fd.hc2vpp.bgp.prefix.sid.BgpPrefixSidModule
53        </api.docs.modules>
54        <project.root.folder>${project.basedir}/../../..</project.root.folder>
55    </properties>
56
57    <build>
58        <pluginManagement>
59            <plugins>
60                <!--
61                    Module is used just for build (docs are rendered in release-notes), so skip site.
62                    In case we change our minds, we need to provide distributionManagement.
63                -->
64                <plugin>
65                    <groupId>org.apache.maven.plugins</groupId>
66                    <artifactId>maven-site-plugin</artifactId>
67                    <configuration>
68                        <skip>true</skip>
69                        <skipDeploy>true</skipDeploy>
70                    </configuration>
71                </plugin>
72            </plugins>
73        </pluginManagement>
74        <plugins>
75            <plugin>
76                <groupId>org.apache.maven.plugins</groupId>
77                <artifactId>maven-compiler-plugin</artifactId>
78                <version>3.6.1</version>
79                <configuration>
80                    <source>1.8</source>
81                    <target>1.8</target>
82                </configuration>
83            </plugin>
84            <plugin>
85                <groupId>org.codehaus.gmaven</groupId>
86                <artifactId>groovy-maven-plugin</artifactId>
87                <executions>
88                    <execution>
89                        <id>generate-coverage-doc</id>
90                        <phase>prepare-package</phase>
91                        <goals>
92                            <goal>execute</goal>
93                        </goals>
94                        <configuration>
95                            <source>
96                                io.fd.hc2vpp.docs.scripts.ApiDocsIndexGenerator.generate(project, log)
97                            </source>
98                        </configuration>
99                    </execution>
100                </executions>
101                <dependencies>
102                    <dependency>
103                        <groupId>io.fd.hc2vpp.docs</groupId>
104                        <artifactId>scripts</artifactId>
105                        <version>${project.version}</version>
106                    </dependency>
107                </dependencies>
108            </plugin>
109        </plugins>
110    </build>
111</project>