BUG-2159: deactivate Java 8 javadoc workaround
[yangtools.git] / common / parent / 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"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>1.5.0-SNAPSHOT</version>
17         <relativePath></relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>yangtools-parent</artifactId>
22     <groupId>org.opendaylight.yangtools</groupId>
23     <version>0.7.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25     <prerequisites>
26         <maven>3.0.4</maven>
27     </prerequisites>
28
29     <properties>
30         <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
31
32         <!-- FIXME: these will be upstreamed -->
33         <maven.depends.version>1.2</maven.depends.version>
34         <maven.javadoc.version>2.9.1</maven.javadoc.version>
35         <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
36         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
37         <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
38         <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
39         <sonar.profile>Sonar way with Findbugs</sonar.profile>
40     </properties>
41
42     <dependencyManagement>
43         <dependencies>
44             <!-- Testing Dependencies -->
45             <dependency>
46                 <groupId>org.apache.maven.shared</groupId>
47                 <artifactId>maven-verifier</artifactId>
48                 <version>1.5</version>
49                 <scope>test</scope>
50             </dependency>
51             <dependency>
52                 <groupId>equinoxSDK381</groupId>
53                 <artifactId>org.eclipse.osgi</artifactId>
54                 <version>3.8.1.v20120830-144521</version>
55                 <scope>test</scope>
56             </dependency>
57             <dependency>
58                 <groupId>org.codehaus.groovy</groupId>
59                 <artifactId>groovy</artifactId>
60                 <version>2.1.6</version>
61                 <scope>test</scope>
62             </dependency>
63             <dependency>
64                 <groupId>org.codehaus.groovy</groupId>
65                 <artifactId>groovy-xml</artifactId>
66                 <version>2.1.6</version>
67                 <scope>test</scope>
68             </dependency>
69             <dependency>
70                 <groupId>xmlunit</groupId>
71                 <artifactId>xmlunit</artifactId>
72                 <version>1.5</version>
73                 <scope>test</scope>
74             </dependency>
75             <dependency>
76                 <groupId>org.apache.maven</groupId>
77                 <artifactId>maven-core</artifactId>
78                 <version>3.1.1</version>
79             </dependency>
80             <dependency>
81                 <groupId>org.apache.maven</groupId>
82                 <artifactId>maven-plugin-api</artifactId>
83                 <version>3.1.1</version>
84             </dependency>
85             <dependency>
86                 <groupId>org.javassist</groupId>
87                 <artifactId>javassist</artifactId>
88                 <version>${javassist.version}</version>
89             </dependency>
90             <dependency>
91                 <groupId>xml-apis</groupId>
92                 <artifactId>xml-apis</artifactId>
93                 <version>2.0.2</version>
94             </dependency>
95             <dependency>
96                 <groupId>org.eclipse.xtend</groupId>
97                 <artifactId>org.eclipse.xtend.lib</artifactId>
98                 <version>2.7.3</version>
99             </dependency>
100             <dependency>
101                 <groupId>org.osgi</groupId>
102                 <artifactId>org.osgi.core</artifactId>
103                 <version>5.0.0</version>
104                 <scope>provided</scope>
105             </dependency>
106             <dependency>
107                 <groupId>javax.ws.rs</groupId>
108                 <artifactId>javax.ws.rs-api</artifactId>
109                 <version>2.0</version>
110             </dependency>
111
112             <dependency>
113                 <groupId>org.glassfish.jersey.ext</groupId>
114                 <artifactId>jersey-proxy-client</artifactId>
115                 <version>2.0</version>
116             </dependency>
117             <dependency>
118                 <groupId>org.glassfish.jersey.core</groupId>
119                 <artifactId>jersey-client</artifactId>
120                 <version>2.0</version>
121             </dependency>
122
123             <dependency>
124                 <groupId>org.opendaylight.yangtools</groupId>
125                 <artifactId>yangtools-artifacts</artifactId>
126                 <version>${yangtools.version}</version>
127                 <scope>import</scope>
128                 <type>pom</type>
129             </dependency>
130         </dependencies>
131     </dependencyManagement>
132
133     <dependencies>
134         <!-- Sonar -->
135         <dependency>
136             <groupId>org.codehaus.sonar-plugins.java</groupId>
137             <artifactId>sonar-jacoco-listeners</artifactId>
138             <version>${sonar-jacoco-listeners.version}</version>
139             <scope>test</scope>
140         </dependency>
141         <dependency>
142             <groupId>org.slf4j</groupId>
143             <artifactId>slf4j-simple</artifactId>
144             <scope>test</scope>
145         </dependency>
146     </dependencies>
147
148     <build>
149         <pluginManagement>
150             <plugins>
151                 <plugin>
152                     <groupId>org.apache.maven.plugins</groupId>
153                     <artifactId>maven-jar-plugin</artifactId>
154                     <version>${maven.jar.version}</version>
155                     <configuration>
156                         <archive>
157                             <!--
158                                  Bundle OSGi Manifest created by maven-bundle-plugin
159                                  into a jar file
160                                  -->
161                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
162                         </archive>
163                     </configuration>
164                 </plugin>
165                 <plugin>
166                     <groupId>org.apache.felix</groupId>
167                     <artifactId>maven-bundle-plugin</artifactId>
168                     <version>${maven.bundle.version}</version>
169                     <extensions>true</extensions>
170                     <executions>
171                         <execution>
172                             <id>bundle-manifest</id>
173                             <phase>process-classes</phase>
174                             <goals>
175                                 <goal>manifest</goal>
176                             </goals>
177                         </execution>
178                     </executions>
179                 </plugin>
180                 <plugin>
181                     <groupId>org.apache.maven.plugins</groupId>
182                     <artifactId>maven-failsafe-plugin</artifactId>
183                     <configuration>
184                         <!-- Specific to generate mapping between tests and covered code -->
185                         <argLine>${jacoco.agent.it.arg}</argLine>
186                         <properties>
187                             <property>
188                                 <name>listener</name>
189                                 <value>org.sonar.java.jacoco.JUnitListener</value>
190                             </property>
191                         </properties>
192                         <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
193                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
194                     </configuration>
195                 </plugin>
196                 <plugin>
197                     <groupId>org.apache.maven.plugins</groupId>
198                     <artifactId>maven-surefire-plugin</artifactId>
199                     <version>${maven.surefire.version}</version>
200                     <configuration>
201                         <!-- Specific to generate mapping between tests and covered code -->
202                         <argLine>${jacoco.agent.ut.arg}</argLine>
203                         <properties>
204                             <property>
205                                 <name>listener</name>
206                                 <value>org.sonar.java.jacoco.JUnitListener</value>
207                             </property>
208                         </properties>
209                     </configuration>
210                 </plugin>
211
212                 <plugin>
213                     <groupId>org.eclipse.m2e</groupId>
214                     <artifactId>lifecycle-mapping</artifactId>
215                     <version>1.0.0</version>
216                     <configuration>
217                         <lifecycleMappingMetadata>
218                             <pluginExecutions>
219                                 <pluginExecution>
220                                     <pluginExecutionFilter>
221                                         <groupId>org.apache.felix</groupId>
222                                         <artifactId>maven-bundle-plugin</artifactId>
223                                         <versionRange>[1.0,)</versionRange>
224                                         <goals>
225                                             <goal>manifest</goal>
226                                         </goals>
227                                     </pluginExecutionFilter>
228                                     <action>
229                                         <execute />
230                                     </action>
231                                 </pluginExecution>
232                                 <pluginExecution>
233                                     <pluginExecutionFilter>
234                                         <groupId>org.apache.maven.plugins</groupId>
235                                         <artifactId>maven-antrun-plugin</artifactId>
236                                         <versionRange>[1.0,)</versionRange>
237                                         <goals>
238                                             <goal>run</goal>
239                                         </goals>
240                                     </pluginExecutionFilter>
241                                     <action>
242                                         <execute/>
243                                     </action>
244                                 </pluginExecution>
245                                 <pluginExecution>
246                                     <pluginExecutionFilter>
247                                         <groupId>org.opendaylight.yangtools</groupId>
248                                         <artifactId>yang-maven-plugin</artifactId>
249                                         <versionRange>[0.5,)</versionRange>
250                                         <goals>
251                                             <goal>generate-sources</goal>
252                                         </goals>
253                                      </pluginExecutionFilter>
254                                      <action>
255                                          <ignore />
256                                      </action>
257                                  </pluginExecution>
258                                  <pluginExecution>
259                                     <pluginExecutionFilter>
260                                         <groupId>org.codehaus.mojo</groupId>
261                                         <artifactId>properties-maven-plugin</artifactId>
262                                         <versionRange>1.0-alpha-2</versionRange>
263                                         <goals>
264                                             <goal>write-project-properties</goal>
265                                         </goals>
266                                      </pluginExecutionFilter>
267                                      <action>
268                                          <ignore />
269                                      </action>
270                                  </pluginExecution>
271                                  <pluginExecution>
272                                     <pluginExecutionFilter>
273                                         <groupId>org.ops4j.pax.exam</groupId>
274                                         <artifactId>maven-paxexam-plugin</artifactId>
275                                         <versionRange>1.2.4</versionRange>
276                                         <goals>
277                                             <goal>generate-depends-file</goal>
278                                         </goals>
279                                      </pluginExecutionFilter>
280                                      <action>
281                                          <ignore />
282                                      </action>
283                                  </pluginExecution>
284                                  <pluginExecution>
285                                     <pluginExecutionFilter>
286                                         <groupId>org.jacoco</groupId>
287                                         <artifactId>jacoco-maven-plugin</artifactId>
288                                         <versionRange>[0.6,)</versionRange>
289                                         <goals>
290                                             <goal>prepare-agent</goal>
291                                         </goals>
292                                      </pluginExecutionFilter>
293                                      <action>
294                                          <ignore/>
295                                      </action>
296                                  </pluginExecution>
297                             </pluginExecutions>
298                         </lifecycleMappingMetadata>
299                     </configuration>
300                 </plugin>
301                 <plugin>
302                     <groupId>org.opendaylight.yangtools</groupId>
303                     <artifactId>yang-maven-plugin</artifactId>
304                     <version>0.7.0-SNAPSHOT</version>
305                     <executions>
306                         <execution>
307                             <goals>
308                                 <goal>generate-sources</goal>
309                             </goals>
310                             <configuration>
311                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
312                                 <codeGenerators>
313                                     <generator>
314                                         <codeGeneratorClass>
315                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
316                                         </codeGeneratorClass>
317                                         <outputBaseDir>
318                                             target/generated-sources/sal
319                                         </outputBaseDir>
320                                     </generator>
321                                     <generator>
322                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
323                                         <outputBaseDir>target/site/restconf</outputBaseDir>
324                                     </generator>
325                                     <generator>
326                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
327                                         <outputBaseDir>target/site/restconf</outputBaseDir>
328                                     </generator>
329                                 </codeGenerators>
330                                 <inspectDependencies>true</inspectDependencies>
331                             </configuration>
332                         </execution>
333                     </executions>
334                     <dependencies>
335                         <dependency>
336                             <groupId>org.opendaylight.yangtools</groupId>
337                             <artifactId>maven-sal-api-gen-plugin</artifactId>
338                             <version>0.7.0-SNAPSHOT</version>
339                             <type>jar</type>
340                         </dependency>
341                     </dependencies>
342                 </plugin>
343                 <plugin>
344                     <groupId>org.ops4j.pax.exam</groupId>
345                     <artifactId>maven-paxexam-plugin</artifactId>
346                     <version>1.2.4</version>
347                     <executions>
348                         <execution>
349                             <id>generate-config</id>
350                             <goals>
351                                 <goal>generate-depends-file</goal>
352                             </goals>
353                         </execution>
354                     </executions>
355                 </plugin>
356                 <plugin>
357                     <groupId>org.apache.maven.plugins</groupId>
358                     <artifactId>maven-javadoc-plugin</artifactId>
359                     <version>${maven.javadoc.version}</version>
360                     <configuration>
361                         <stylesheetfile>stylesheet.css</stylesheetfile>
362                     </configuration>
363                     <executions>
364                         <execution>
365                             <id>attach-javadocs</id>
366                             <goals>
367                                 <goal>jar</goal>
368                             </goals>
369                         </execution>
370                         <execution>
371                             <goals>
372                                 <goal>aggregate</goal>
373                             </goals>
374                             <phase>site</phase>
375                         </execution>
376                     </executions>
377                 </plugin>
378                 <plugin>
379                     <groupId>org.codehaus.mojo</groupId>
380                     <artifactId>build-helper-maven-plugin</artifactId>
381                     <version>1.8</version>
382                     <executions>
383                         <execution>
384                             <phase>generate-sources</phase>
385                             <goals>
386                                 <goal>add-source</goal>
387                             </goals>
388                             <configuration>
389                                 <sources>
390                                     <source>target/generated-sources/parser</source>
391                                     <source>target/generated-sources/sal</source>
392                                     <source>${basedir}/src/main/xtend-gen</source>
393                                 </sources>
394                             </configuration>
395                         </execution>
396                     </executions>
397                 </plugin>
398                 <plugin>
399                     <groupId>org.eclipse.xtend</groupId>
400                     <artifactId>xtend-maven-plugin</artifactId>
401                     <version>2.7.3</version>
402                     <executions>
403                         <execution>
404                             <goals>
405                                 <goal>compile</goal>
406                             </goals>
407                             <configuration>
408                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
409                             </configuration>
410                         </execution>
411                     </executions>
412                 </plugin>
413                 <plugin>
414                     <groupId>org.apache.servicemix.tooling</groupId>
415                     <artifactId>depends-maven-plugin</artifactId>
416                     <version>${maven.depends.version}</version>
417                     <executions>
418                         <execution>
419                             <id>generate-depends-file</id>
420                             <goals>
421                                 <goal>generate-depends-file</goal>
422                             </goals>
423                         </execution>
424                     </executions>
425                 </plugin>
426             </plugins>
427         </pluginManagement>
428
429         <plugins>
430             <plugin>
431                 <groupId>org.apache.maven.plugins</groupId>
432                 <artifactId>maven-enforcer-plugin</artifactId>
433                 <!--
434                 <executions>
435                     <execution>
436                         <id>enforce-dependencies</id>
437                         <configuration>
438                             <rules>
439                                 <DependencyConvergence />
440                             </rules>
441                         </configuration>
442                         <goals>
443                             <goal>enforce</goal>
444                         </goals>
445                     </execution>
446                 </executions>
447                 -->
448             </plugin>
449
450             <plugin>
451                 <artifactId>maven-clean-plugin</artifactId>
452                 <version>2.5</version>
453                 <configuration>
454                     <filesets>
455                         <fileset>
456                             <directory>${basedir}/src/main/xtend-gen</directory>
457                             <includes>
458                                 <include>**</include>
459                             </includes>
460                         </fileset>
461                     </filesets>
462                 </configuration>
463             </plugin>
464             <plugin>
465                 <groupId>org.apache.maven.plugins</groupId>
466                 <artifactId>maven-jar-plugin</artifactId>
467             </plugin>
468             <plugin>
469                 <groupId>org.apache.felix</groupId>
470                 <artifactId>maven-bundle-plugin</artifactId>
471             </plugin>
472             <plugin>
473                 <groupId>org.apache.maven.plugins</groupId>
474                 <artifactId>maven-source-plugin</artifactId>
475                 <version>${maven.source.version}</version>
476                 <executions>
477                     <execution>
478                         <id>attach-sources</id>
479                         <goals>
480                             <goal>jar</goal>
481                         </goals>
482                     </execution>
483                 </executions>
484             </plugin>
485             <plugin>
486                 <groupId>org.apache.maven.plugins</groupId>
487                 <artifactId>maven-javadoc-plugin</artifactId>
488             </plugin>
489             <plugin>
490                 <groupId>org.jacoco</groupId>
491                 <artifactId>jacoco-maven-plugin</artifactId>
492                 <version>0.7.2.201409121644</version>
493                 <executions>
494                     <execution>
495                         <id>prepare-ut-agent</id>
496                         <phase>process-test-classes</phase>
497                         <goals>
498                             <goal>prepare-agent</goal>
499                         </goals>
500                         <configuration>
501                             <destFile>${sonar.jacoco.reportPath}</destFile>
502                             <propertyName>jacoco.agent.ut.arg</propertyName>
503                         </configuration>
504                     </execution>
505                     <execution>
506                         <id>prepare-it-agent</id>
507                         <phase>pre-integration-test</phase>
508                         <goals>
509                             <goal>prepare-agent</goal>
510                         </goals>
511                         <configuration>
512                             <destFile>${sonar.jacoco.itReportPath}</destFile>
513                             <propertyName>jacoco.agent.it.arg</propertyName>
514                         </configuration>
515                     </execution>
516                 </executions>
517             </plugin>
518         </plugins>
519     </build>
520
521     <reporting>
522         <plugins>
523             <plugin>
524                 <groupId>org.codehaus.mojo</groupId>
525                 <artifactId>findbugs-maven-plugin</artifactId>
526                 <version>${findbugs.maven.plugin.version}</version>
527                 <configuration>
528                     <effort>Max</effort>
529                     <threshold>Low</threshold>
530                     <goal>site</goal>
531                 </configuration>
532             </plugin>
533             <plugin>
534                 <groupId>org.codehaus.mojo</groupId>
535                 <artifactId>jdepend-maven-plugin</artifactId>
536                 <version>${jdepend.maven.plugin.version}</version>
537             </plugin>
538         </plugins>
539     </reporting>
540
541
542     <!-- Note: we can not use variables for these URLs because we need to
543          be able to download the parent pom from the repository the first 
544          time we go to use it (since it is in a different project).
545          To override the settings, use the "mirror" section of the
546          settings.xml. See http://maven.apache.org/settings.html -->
547     <repositories>
548         <!-- OpenDayLight Repo Mirror -->
549         <repository>
550             <id>opendaylight-mirror</id>
551             <name>opendaylight-mirror</name>
552             <url>http://nexus.opendaylight.org/content/groups/public/</url>
553             <snapshots>
554                 <enabled>false</enabled>
555             </snapshots>
556             <releases>
557                 <enabled>true</enabled>
558                 <updatePolicy>never</updatePolicy>
559             </releases>
560         </repository>
561
562         <!-- OpenDayLight Snapshot artifact -->
563         <repository>
564             <id>opendaylight-snapshot</id>
565             <name>opendaylight-snapshot</name>
566             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
567             <snapshots>
568                 <enabled>true</enabled>
569             </snapshots>
570             <releases>
571                 <enabled>false</enabled>
572             </releases>
573         </repository>
574     </repositories>
575 </project>