Remove declarations of osgi.{annotation,cmpn,core}
[odlparent.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.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>10.0.0-SNAPSHOT</version>
16         <relativePath>../bundle-parent</relativePath>
17     </parent>
18
19     <artifactId>odlparent-docs</artifactId>
20     <packaging>jar</packaging>
21     <name>${project.artifactId}</name>
22     <description>ODL Root Parent documentation</description>
23
24     <properties>
25         <maven.javadoc.failOnWarnings>true</maven.javadoc.failOnWarnings>
26     </properties>
27
28     <dependencies>
29         <dependency>
30             <groupId>org.opendaylight.odlparent</groupId>
31             <artifactId>bundles-test-lib</artifactId>
32         </dependency>
33         <dependency>
34             <groupId>org.opendaylight.odlparent</groupId>
35             <artifactId>features-test</artifactId>
36             <version>${project.version}</version>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.odlparent</groupId>
40             <artifactId>filter-manifest-plugin</artifactId>
41             <version>${project.version}</version>
42         </dependency>
43         <dependency>
44             <groupId>org.opendaylight.odlparent</groupId>
45             <artifactId>karaf-plugin</artifactId>
46             <version>${project.version}</version>
47         </dependency>
48         <dependency>
49             <groupId>org.opendaylight.odlparent</groupId>
50             <artifactId>karaf-util</artifactId>
51             <version>${project.version}</version>
52         </dependency>
53         <dependency>
54             <groupId>org.opendaylight.odlparent</groupId>
55             <artifactId>logging-markers</artifactId>
56         </dependency>
57
58         <!-- Also add dependencies we are using -->
59         <dependency>
60             <groupId>org.apache.maven</groupId>
61             <artifactId>maven-core</artifactId>
62             <scope>provided</scope>
63         </dependency>
64         <dependency>
65             <groupId>junit</groupId>
66             <artifactId>junit</artifactId>
67             <scope>provided</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.mockito</groupId>
71             <artifactId>mockito-core</artifactId>
72             <scope>provided</scope>
73         </dependency>
74         <dependency>
75             <groupId>org.sonatype.plexus</groupId>
76             <artifactId>plexus-build-api</artifactId>
77             <scope>provided</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.ops4j.pax.exam</groupId>
81             <artifactId>pax-exam</artifactId>
82             <scope>provided</scope>
83         </dependency>
84         <dependency>
85             <groupId>org.ops4j.pax.exam</groupId>
86             <artifactId>pax-exam-junit4</artifactId>
87             <scope>provided</scope>
88         </dependency>
89         <dependency>
90             <groupId>org.ops4j.pax.exam</groupId>
91             <artifactId>pax-exam-container-karaf</artifactId>
92             <scope>provided</scope>
93         </dependency>
94         <dependency>
95             <groupId>org.ops4j.pax.url</groupId>
96             <artifactId>pax-url-aether</artifactId>
97             <scope>provided</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.apache.karaf.bundle</groupId>
101             <artifactId>org.apache.karaf.bundle.core</artifactId>
102             <version>${karaf.version}</version>
103             <scope>provided</scope>
104         </dependency>
105         <dependency>
106             <groupId>jakarta.xml.bind</groupId>
107             <artifactId>jakarta.xml.bind-api</artifactId>
108             <scope>provided</scope>
109         </dependency>
110     </dependencies>
111
112     <build>
113         <plugins>
114             <plugin>
115                 <groupId>org.asciidoctor</groupId>
116                 <artifactId>asciidoctor-maven-plugin</artifactId>
117                 <version>1.5.7.1</version>
118                 <executions>
119                     <execution>
120                         <id>output-html</id>
121                         <phase>generate-resources</phase>
122                         <goals>
123                             <goal>process-asciidoc</goal>
124                         </goals>
125                         <configuration>
126                             <sourceHighlighter>coderay</sourceHighlighter>
127                             <backend>html</backend>
128                             <attributes>
129                                 <toc/>
130                                 <linkcss>false</linkcss>
131                             </attributes>
132                         </configuration>
133                     </execution>
134                 </executions>
135                 <configuration>
136                     <attributes>
137                         <revnumber>${project.version}</revnumber>
138                         <revdate>${maven.build.timestamp}</revdate>
139                         <organization>${project.organization.name}</organization>
140                     </attributes>
141                 </configuration>
142             </plugin>
143
144             <plugin>
145                 <artifactId>maven-dependency-plugin</artifactId>
146                 <executions>
147                     <execution>
148                         <id>unpack-sources</id>
149                         <phase>process-classes</phase>
150                         <goals>
151                             <goal>unpack-dependencies</goal>
152                         </goals>
153                         <configuration>
154                             <silent>true</silent>
155                             <classifier>sources</classifier>
156                             <includes>org/opendaylight/**</includes>
157                             <includeGroupIds>org.opendaylight.odlparent</includeGroupIds>
158                             <outputDirectory>${project.build.directory}/src</outputDirectory>
159                         </configuration>
160                     </execution>
161                 </executions>
162             </plugin>
163             <plugin>
164                 <groupId>org.codehaus.mojo</groupId>
165                 <artifactId>build-helper-maven-plugin</artifactId>
166                 <executions>
167                     <execution>
168                         <id>add-source</id>
169                         <phase>process-classes</phase>
170                         <goals>
171                             <goal>add-source</goal>
172                         </goals>
173                         <configuration>
174                             <sources>
175                                 <source>${project.build.directory}/src</source>
176                             </sources>
177                         </configuration>
178                     </execution>
179                 </executions>
180             </plugin>
181
182             <plugin>
183                 <artifactId>maven-source-plugin</artifactId>
184                 <executions>
185                     <execution>
186                         <id>attach-sources</id>
187                         <!-- prepare-package so we build the source package before javadoc -->
188                         <phase>prepare-package</phase>
189                         <goals>
190                             <goal>jar-no-fork</goal>
191                         </goals>
192                     </execution>
193                 </executions>
194             </plugin>
195
196             <plugin>
197                 <artifactId>maven-javadoc-plugin</artifactId>
198                 <executions>
199                     <execution>
200                         <id>attach-javadocs</id>
201                         <goals>
202                             <goal>jar</goal>
203                         </goals>
204                     </execution>
205                 </executions>
206                 <!-- FIXME: remove this section once we can activate javadoc-links profile -->
207                 <configuration combine.children="append">
208                     <links>
209                         <link>https://junit.org/junit4/javadoc/4.13/</link>
210                         <link>http://hamcrest.org/JavaHamcrest/javadoc/2.2/</link>
211                         <link>http://google.github.io/truth/api/1.0.1/</link>
212                         <link>https://www.slf4j.org/apidocs/</link>
213                         <link>https://google.github.io/guava/releases/30.1.1-jre/api/docs/</link>
214                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
215                         <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.11/</link>
216                         <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
217                     </links>
218                     <groups>
219                         <group>
220                             <title>Bundle Test Library</title>
221                             <packages>org.opendaylight.odlparent.bundlestest.lib*</packages>
222                         </group>
223                         <group>
224                             <title>Single Feature Test</title>
225                             <packages>org.opendaylight.odlparent.featuretest*</packages>
226                         </group>
227                         <group>
228                             <title>Karaf Utilities</title>
229                             <packages>org.opendaylight.odlparent.karafutil*</packages>
230                         </group>
231                         <group>
232                             <title>Filter Manifest Maven Plugin</title>
233                             <packages>org.opendaylight.odlparent.filter.manifest.plugin*</packages>
234                         </group>
235                     </groups>
236                 </configuration>
237             </plugin>
238         </plugins>
239     </build>
240 </project>