d07eb04bde2f20636863cbf9a67293ebbf373f16
[yangtools.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) 2013 Cisco Systems, Inc. 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.yangtools</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>2.1.9-SNAPSHOT</version>
16         <relativePath>../bundle-parent</relativePath>
17     </parent>
18
19     <artifactId>yangtools-docs</artifactId>
20     <packaging>jar</packaging>
21     <name>${project.artifactId}</name>
22     <description>YANG Tools documentation</description>
23
24     <dependencies>
25         <dependency>
26             <groupId>org.opendaylight.yangtools</groupId>
27             <artifactId>yang-data-util</artifactId>
28         </dependency>
29         <dependency>
30             <groupId>org.opendaylight.yangtools</groupId>
31             <artifactId>concepts</artifactId>
32         </dependency>
33         <dependency>
34             <groupId>org.opendaylight.yangtools</groupId>
35             <artifactId>yang-common</artifactId>
36         </dependency>
37         <dependency>
38             <groupId>org.opendaylight.yangtools</groupId>
39             <artifactId>yang-data-api</artifactId>
40         </dependency>
41         <dependency>
42             <groupId>org.opendaylight.yangtools</groupId>
43             <artifactId>yang-data-impl</artifactId>
44         </dependency>
45         <dependency>
46             <groupId>org.opendaylight.yangtools</groupId>
47             <artifactId>yang-data-transform</artifactId>
48         </dependency>
49         <dependency>
50             <groupId>org.opendaylight.yangtools</groupId>
51             <artifactId>yang-data-jaxen</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.opendaylight.yangtools</groupId>
55             <artifactId>yang-data-codec-gson</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>org.opendaylight.yangtools</groupId>
59             <artifactId>yang-data-codec-xml</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.opendaylight.yangtools</groupId>
63             <artifactId>yang-model-api</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.opendaylight.yangtools</groupId>
67             <artifactId>yang-model-export</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.opendaylight.yangtools</groupId>
71             <artifactId>yang-model-immutable</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.opendaylight.yangtools</groupId>
75             <artifactId>yang-model-util</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.opendaylight.yangtools</groupId>
79             <artifactId>yang-parser-api</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.opendaylight.yangtools</groupId>
83             <artifactId>yang-parser-spi</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.opendaylight.yangtools</groupId>
87             <artifactId>yang-parser-reactor</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>org.opendaylight.yangtools</groupId>
91             <artifactId>yang-parser-impl</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.opendaylight.yangtools</groupId>
95             <artifactId>yang-parser-rfc7950</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>org.opendaylight.yangtools</groupId>
99             <artifactId>yang-test-util</artifactId>
100             <scope>provided</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.opendaylight.yangtools</groupId>
104             <artifactId>yang-maven-plugin-spi</artifactId>
105         </dependency>
106
107         <dependency>
108             <groupId>org.opendaylight.yangtools</groupId>
109             <artifactId>odlext-model-api</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.opendaylight.yangtools</groupId>
113             <artifactId>odlext-parser-support</artifactId>
114         </dependency>
115
116         <dependency>
117             <groupId>org.opendaylight.yangtools</groupId>
118             <artifactId>openconfig-model-api</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>org.opendaylight.yangtools</groupId>
122             <artifactId>openconfig-parser-support</artifactId>
123         </dependency>
124
125         <dependency>
126             <groupId>org.opendaylight.yangtools</groupId>
127             <artifactId>rfc6536-model-api</artifactId>
128         </dependency>
129         <dependency>
130             <groupId>org.opendaylight.yangtools</groupId>
131             <artifactId>rfc6536-parser-support</artifactId>
132         </dependency>
133
134         <dependency>
135             <groupId>org.opendaylight.yangtools</groupId>
136             <artifactId>rfc7952-model-api</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>org.opendaylight.yangtools</groupId>
140             <artifactId>rfc7952-parser-support</artifactId>
141         </dependency>
142
143         <dependency>
144             <groupId>org.opendaylight.yangtools</groupId>
145             <artifactId>rfc8040-model-api</artifactId>
146         </dependency>
147         <dependency>
148             <groupId>org.opendaylight.yangtools</groupId>
149             <artifactId>rfc8040-parser-support</artifactId>
150         </dependency>
151
152         <dependency>
153             <groupId>org.opendaylight.yangtools</groupId>
154             <artifactId>yang-xpath-api</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.opendaylight.yangtools</groupId>
158             <artifactId>yang-xpath-impl</artifactId>
159         </dependency>
160
161         <dependency>
162             <groupId>org.opendaylight.yangtools</groupId>
163             <artifactId>util</artifactId>
164         </dependency>
165         <dependency>
166             <groupId>org.opendaylight.yangtools</groupId>
167             <artifactId>triemap</artifactId>
168         </dependency>
169
170         <dependency>
171             <groupId>org.opendaylight.yangtools</groupId>
172             <artifactId>testutils</artifactId>
173         </dependency>
174
175         <!-- Also add dependencies we are using -->
176         <dependency>
177             <groupId>org.kohsuke.metainf-services</groupId>
178             <artifactId>metainf-services</artifactId>
179             <scope>provided</scope>
180         </dependency>
181         <dependency>
182             <groupId>org.osgi</groupId>
183             <artifactId>org.osgi.core</artifactId>
184             <scope>provided</scope>
185         </dependency>
186         <dependency>
187             <groupId>org.immutables</groupId>
188             <artifactId>value</artifactId>
189             <scope>provided</scope>
190         </dependency>
191         <dependency>
192             <groupId>org.apache.maven</groupId>
193             <artifactId>maven-core</artifactId>
194             <scope>provided</scope>
195         </dependency>
196         <dependency>
197             <groupId>org.sonatype.plexus</groupId>
198             <artifactId>plexus-build-api</artifactId>
199             <scope>provided</scope>
200         </dependency>
201         <dependency>
202             <groupId>org.mockito</groupId>
203             <artifactId>mockito-core</artifactId>
204             <scope>provided</scope>
205         </dependency>
206     </dependencies>
207
208     <build>
209         <plugins>
210             <plugin>
211                                 <groupId>org.asciidoctor</groupId>
212                 <artifactId>asciidoctor-maven-plugin</artifactId>
213                 <version>1.5.7.1</version>
214                 <executions>
215                                         <execution>
216                                                 <id>output-html</id>
217                                                 <phase>generate-resources</phase>
218                                                 <goals>
219                                                         <goal>process-asciidoc</goal>
220                                                 </goals>
221                                                 <configuration>
222                                                         <sourceHighlighter>coderay</sourceHighlighter>
223                                                         <backend>html</backend>
224                                                         <attributes>
225                                                                 <toc/>
226                                                                 <linkcss>false</linkcss>
227                                                         </attributes>
228                                                 </configuration>
229                                         </execution>
230                 </executions>
231                 <configuration>
232                     <attributes>
233                         <revnumber>${project.version}</revnumber>
234                         <revdate>${maven.build.timestamp}</revdate>
235                         <organization>${project.organization.name}</organization>
236                     </attributes>
237                 </configuration>
238             </plugin>
239
240             <plugin>
241                 <groupId>org.apache.maven.plugins</groupId>
242                 <artifactId>maven-assembly-plugin</artifactId>
243                 <configuration>
244                     <descriptor>assembly/guides.xml</descriptor>
245                 </configuration>
246                 <executions>
247                     <execution>
248                         <phase>package</phase>
249                         <goals>
250                             <goal>single</goal>
251                         </goals>
252                     </execution>
253                 </executions>
254             </plugin>
255             <plugin>
256                 <!-- We do not want the jar to be created -->
257                 <artifactId>maven-jar-plugin</artifactId>
258                 <executions>
259                     <execution>
260                         <id>default-jar</id>
261                         <phase>none</phase>
262                     </execution>
263                 </executions>
264             </plugin>
265             <plugin>
266                 <artifactId>maven-dependency-plugin</artifactId>
267                 <executions>
268                     <execution>
269                         <id>unpack-sources</id>
270                         <phase>prepare-package</phase>
271                         <goals>
272                             <goal>unpack-dependencies</goal>
273                         </goals>
274                         <configuration>
275                             <silent>true</silent>
276                             <classifier>sources</classifier>
277                             <includes>org/opendaylight/**</includes>
278                             <includeGroupIds>org.opendaylight.yangtools</includeGroupIds>
279                             <outputDirectory>${project.build.directory}/src</outputDirectory>
280                         </configuration>
281                     </execution>
282                 </executions>
283             </plugin>
284
285             <plugin>
286                 <groupId>org.codehaus.mojo</groupId>
287                 <artifactId>build-helper-maven-plugin</artifactId>
288                 <executions>
289                     <execution>
290                         <id>add-source</id>
291                         <phase>prepare-package</phase>
292                         <goals>
293                             <goal>add-source</goal>
294                         </goals>
295                         <configuration>
296                             <sources>
297                                 <source>${project.build.directory}/src</source>
298                             </sources>
299                         </configuration>
300                     </execution>
301                 </executions>
302             </plugin>
303
304             <plugin>
305                 <artifactId>maven-javadoc-plugin</artifactId>
306                     <!-- FIXME: remove override once odlparent ships 3.1.0+ -->
307                 <version>3.0.0</version>
308                 <executions>
309                     <execution>
310                         <id>attach-javadocs</id>
311                         <goals>
312                             <goal>jar</goal>
313                         </goals>
314                     </execution>
315                 </executions>
316                 <!-- FIXME: remove this section once we can activate javadoc-links profile -->
317                 <configuration combine.children="append">
318                     <links>
319                         <link>https://static.javadoc.io/junit/junit/4.11/</link>
320                         <link>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</link>
321                         <link>http://google.github.io/truth/api/0.42/</link>
322                         <link>https://www.slf4j.org/apidocs/</link>
323                         <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
324                         <link>https://google.github.io/guava/releases/25.1-jre/api/docs/</link>
325                         <link>http://doc.akka.io/japi/akka/2.5.19/</link>
326                         <link>http://netty.io/4.1/api/</link>
327                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
328                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.8.1/</link>
329                         <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
330                     </links>
331                 </configuration>
332             </plugin>
333         </plugins>
334     </build>
335 </project>