Reduce javadoc links
[aaa.git] / docs / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11     <modelVersion>4.0.0</modelVersion>
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent</artifactId>
15         <version>5.0.2</version>
16         <relativePath/>
17     </parent>
18
19     <groupId>org.opendaylight.aaa</groupId>
20     <artifactId>aaa-docs</artifactId>
21     <packaging>jar</packaging>
22     <version>0.11.0-SNAPSHOT</version>
23     <name>${project.artifactId}</name>
24     <description>AAA documentation</description>
25
26     <dependencyManagement>
27         <dependencies>
28             <dependency>
29                 <groupId>org.opendaylight.aaa</groupId>
30                 <artifactId>aaa-artifacts</artifactId>
31                 <version>0.11.0-SNAPSHOT</version>
32                 <type>pom</type>
33                 <scope>import</scope>
34             </dependency>
35         </dependencies>
36     </dependencyManagement>
37
38     <dependencies>
39         <dependency>
40             <groupId>${project.groupId}</groupId>
41             <artifactId>aaa-authn-api</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>${project.groupId}</groupId>
45             <artifactId>aaa-cert</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>aaa-cli</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>${project.groupId}</groupId>
53             <artifactId>aaa-cli-jar</artifactId>
54         </dependency>
55         <dependency>
56             <groupId>${project.groupId}</groupId>
57             <artifactId>aaa-encrypt-service</artifactId>
58         </dependency>
59         <dependency>
60             <groupId>org.opendaylight.aaa</groupId>
61             <artifactId>aaa-encrypt-service-impl</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>${project.groupId}</groupId>
65             <artifactId>aaa-filterchain</artifactId>
66         </dependency>
67
68         <dependency>
69             <groupId>${project.groupId}</groupId>
70             <artifactId>aaa-shiro-api</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>${project.groupId}</groupId>
74             <artifactId>aaa-shiro</artifactId>
75         </dependency>
76
77         <dependency>
78             <groupId>${project.groupId}.web</groupId>
79             <artifactId>web-api</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>${project.groupId}.web</groupId>
83             <artifactId>web-jetty-impl</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>${project.groupId}.web</groupId>
87             <artifactId>web-osgi-impl</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>${project.groupId}.web</groupId>
91             <artifactId>servlet-api</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>${project.groupId}.web</groupId>
95             <artifactId>servlet-jersey2</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>${project.groupId}.web</groupId>
99             <artifactId>testutils</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>${project.groupId}</groupId>
103             <artifactId>aaa-password-service-api</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.opendaylight.aaa</groupId>
107             <artifactId>aaa-password-service-impl</artifactId>
108         </dependency>
109
110         <!-- Third-party dependencies -->
111         <dependency>
112             <groupId>org.opendaylight.infrautils</groupId>
113             <artifactId>infrautils-testutils</artifactId>
114             <version>1.7.0-SNAPSHOT</version>
115             <scope>provided</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.opendaylight.infrautils</groupId>
119             <artifactId>inject.guice.testutils</artifactId>
120             <version>1.7.0-SNAPSHOT</version>
121             <scope>provided</scope>
122         </dependency>
123         <dependency>
124             <groupId>org.eclipse.jetty</groupId>
125             <artifactId>jetty-servlets</artifactId>
126             <scope>provided</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.kohsuke.metainf-services</groupId>
130             <artifactId>metainf-services</artifactId>
131             <scope>provided</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.apache.karaf.shell</groupId>
135             <artifactId>org.apache.karaf.shell.core</artifactId>
136             <scope>provided</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.apache.aries.blueprint</groupId>
140             <artifactId>blueprint-maven-plugin-annotation</artifactId>
141             <scope>provided</scope>
142         </dependency>
143         <dependency>
144             <groupId>org.osgi</groupId>
145             <artifactId>org.osgi.core</artifactId>
146         </dependency>
147         <dependency>
148             <groupId>org.immutables</groupId>
149             <artifactId>value</artifactId>
150         </dependency>
151     </dependencies>
152
153     <build>
154         <plugins>
155             <plugin>
156                 <artifactId>maven-dependency-plugin</artifactId>
157                 <executions>
158                     <execution>
159                         <id>unpack-sources</id>
160                         <phase>prepare-package</phase>
161                         <goals>
162                             <goal>unpack-dependencies</goal>
163                         </goals>
164                         <configuration>
165                             <silent>true</silent>
166                             <classifier>sources</classifier>
167                             <includes>org/opendaylight/**</includes>
168                             <includeGroupIds>org.opendaylight.aaa</includeGroupIds>
169                             <outputDirectory>${project.build.directory}/src</outputDirectory>
170                         </configuration>
171                     </execution>
172                 </executions>
173             </plugin>
174
175             <plugin>
176                 <groupId>org.codehaus.mojo</groupId>
177                 <artifactId>build-helper-maven-plugin</artifactId>
178                 <executions>
179                     <execution>
180                         <id>add-source</id>
181                         <!-- post-compile, but before prepare-package -->
182                         <phase>process-classes</phase>
183                         <goals>
184                             <goal>add-source</goal>
185                         </goals>
186                         <configuration>
187                             <sources>
188                                 <source>${project.build.directory}/src</source>
189                             </sources>
190                         </configuration>
191                     </execution>
192                 </executions>
193             </plugin>
194
195             <plugin>
196                 <artifactId>maven-source-plugin</artifactId>
197                 <executions>
198                     <execution>
199                         <id>attach-sources</id>
200                         <!-- prepare-package so we build the source package before javadoc -->
201                         <phase>prepare-package</phase>
202                         <goals>
203                             <goal>jar-no-fork</goal>
204                         </goals>
205                     </execution>
206                 </executions>
207             </plugin>
208
209             <plugin>
210                 <artifactId>maven-clean-plugin</artifactId>
211                 <executions>
212                     <execution>
213                         <id>remove-undocumented-sources</id>
214                         <!-- Before javadoc runs -->
215                         <phase>prepare-package</phase>
216                         <goals>
217                             <goal>clean</goal>
218                         </goals>
219                         <configuration>
220                             <excludeDefaultDirectories>true</excludeDefaultDirectories>
221                             <filesets>
222                                 <fileset>
223                                     <directory>${project.build.directory}/src</directory>
224                                     <includes>
225                                         <include>**/$YangModelBindingProvider.java</include>
226                                         <include>**/$YangModuleInfoImpl.java</include>
227                                     </includes>
228                                 </fileset>
229                             </filesets>
230                         </configuration>
231                     </execution>
232                 </executions>
233             </plugin>
234             <plugin>
235                 <artifactId>maven-javadoc-plugin</artifactId>
236                 <executions>
237                     <execution>
238                         <id>attach-javadocs</id>
239                         <goals>
240                             <goal>jar</goal>
241                         </goals>
242                     </execution>
243                 </executions>
244                 <!-- FIXME: remove this section once we can activate javadoc-links profile -->
245                 <configuration combine.children="append">
246                     <links>
247                         <link>https://junit.org/junit4/javadoc/4.11/</link>
248                         <link>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</link>
249                         <link>http://google.github.io/truth/api/0.42/</link>
250                         <link>https://www.slf4j.org/apidocs/</link>
251                         <link>https://google.github.io/guava/releases/27.1-jre/api/docs/</link>
252                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
253                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.8.1/</link>
254                         <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
255                     </links>
256                     <!--groups>
257                         <group>
258                             <title>MD-SAL Tracing Utilities</title>
259                             <packages>org.opendaylight.controller.md.sal.trace.*:org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsaltrace.rev160908*</packages>
260                         </group>
261                     </groups-->
262                 </configuration>
263             </plugin>
264         </plugins>
265     </build>
266 </project>