Fix javadoc tags to fix the jdk 1.8 javadoc lint checker
[odlparent.git] / odlparent-lite / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=2 tabstop=2: -->
3 <!--
4  Copyright (c) 2015 The Linux Foundation 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
13   <!--
14       Note: This parent is not meant to be used by code artifacts. Please use
15             odlparent instead.
16   -->
17
18   <groupId>org.opendaylight.odlparent</groupId>
19   <artifactId>odlparent-lite</artifactId>
20   <version>1.6.0-SNAPSHOT</version>
21   <packaging>pom</packaging>
22
23   <licenses>
24     <license>
25       <name>Eclipse Public License v1.0</name>
26       <url>https://www.eclipse.org/legal/epl-v10.html</url>
27     </license>
28   </licenses>
29
30   <organization>
31     <name>OpenDaylight</name>
32     <url>https://www.opendaylight.org</url>
33   </organization>
34
35   <issueManagement>
36     <system>Bugzilla</system>
37     <url>https://bugs.opendaylight.org/</url>
38   </issueManagement>
39
40   <ciManagement>
41     <system>Jenkins</system>
42     <url>https://jenkins.opendaylight.org/releng/</url>
43   </ciManagement>
44
45   <properties>
46     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
47
48     <!-- Variables required for Maven Site generation -->
49     <nexus.site.url>file:${user.dir}/target/staged-site</nexus.site.url>
50     <odl.site.url>https://nexus.opendaylight.org/content/sites/site/</odl.site.url>
51     <stream>latest</stream><!-- CI should pass in -Dstream={stream} -->
52
53     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
55   </properties>
56
57   <build>
58     <pluginManagement>
59       <plugins>
60         <plugin>
61           <groupId>org.apache.maven.plugins</groupId>
62           <artifactId>maven-site-plugin</artifactId>
63           <version>3.4</version>
64         </plugin>
65         <plugin>
66           <groupId>org.apache.maven.plugins</groupId>
67           <artifactId>maven-project-info-reports-plugin</artifactId>
68           <version>2.8.1</version>
69         </plugin>
70         <plugin>
71           <groupId>org.apache.maven.plugins</groupId>
72           <artifactId>maven-javadoc-plugin</artifactId>
73           <version>2.10.3</version>
74           <configuration>
75             <tags>
76               <!-- support for HelpMojo generated by the maven-plugin-plugin -->
77               <tag>
78                 <name>goal</name>
79                 <placement>t</placement>
80                 <head>Goal:</head>
81               </tag>
82               <tag>
83                 <name>requiresProject</name>
84                 <placement>t</placement>
85                 <head>Requires project:</head>
86               </tag>
87               <tag>
88                 <name>threadSafe</name>
89                 <placement>t</placement>
90                 <head>Threadsafe</head>
91               </tag>
92               <tag>
93                 <name>phase</name>
94                 <placement>t</placement>
95                 <head>Phase:</head>
96               </tag>
97               <!-- end HelpMojo support -->
98             </tags>
99           </configuration>
100         </plugin>
101       </plugins>
102     </pluginManagement>
103   </build>
104
105   <profiles>
106     <profile>
107       <!--
108           This profile is to ensure we only build javadocs reports
109           when we plan to deploy Maven site for our project.
110
111           It activates by checking for the existance of deploy-site.xml in the
112           user's current working directory. (Intent is that this is run from
113           the Project root directory)
114       -->
115       <id>maven-site</id>
116       <activation>
117         <file>
118           <exists>${user.dir}/deploy-site.xml</exists>
119         </file>
120       </activation>
121
122       <build>
123         <plugins>
124           <plugin>
125             <groupId>org.apache.maven.plugins</groupId>
126             <artifactId>maven-site-plugin</artifactId>
127
128             <executions>
129               <execution>
130                 <id>generate-site</id>
131                 <phase>package</phase>
132                 <goals>
133                   <goal>site</goal>
134                   <goal>attach-descriptor</goal>
135                 </goals>
136               </execution>
137             </executions>
138           </plugin>
139         </plugins>
140       </build>
141
142       <reporting>
143         <plugins>
144           <plugin>
145             <groupId>org.apache.maven.plugins</groupId>
146             <artifactId>maven-project-info-reports-plugin</artifactId>
147             <configuration>
148               <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
149             </configuration>
150           </plugin>
151           <plugin>
152             <groupId>org.apache.maven.plugins</groupId>
153             <artifactId>maven-javadoc-plugin</artifactId>
154             <reportSets>
155               <reportSet>
156                 <reports>
157                   <report>javadoc</report>
158                   <report>test-javadoc</report>
159                 </reports>
160               </reportSet>
161             </reportSets>
162           </plugin>
163         </plugins>
164       </reporting>
165     </profile>
166   </profiles>
167
168
169   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
170
171   <distributionManagement>
172     <repository>
173       <id>opendaylight-release</id>
174       <url>${nexusproxy}/repositories/opendaylight.release/</url>
175     </repository>
176     <snapshotRepository>
177       <id>opendaylight-snapshot</id>
178       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
179     </snapshotRepository>
180     <site>
181       <id>opendaylight-site</id>
182       <url>${nexus.site.url}/${project.artifactId}/</url>
183     </site>
184   </distributionManagement>
185 </project>