Fix unit test coverage settings
[lispflowmapping.git] / commons / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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/maven-v4_0_0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4
5   <!-- NOTE: Tags we removed: SCM: We don't use maven to pull and push code, so
6              the SCM section does not appear to be needed. See http://maven.apache.org/scm/maven-scm-plugin/usage.html
7
8        NOTE: Our ultimate goal is to remove this pom, and move everything in here
9              up to ODL parent or the root of this project, depending on
10              its relevance. Only the logical root should reference this file. -->
11
12   <parent>
13     <!-- We want to inherit of ODL parent so we can inherit common third party
14          versions etc instead of redefining them here. Also we get some common definitions
15          for plugin configuration etc. -->
16     <groupId>org.opendaylight.odlparent</groupId>
17     <artifactId>odlparent</artifactId>
18     <version>1.5.0-SNAPSHOT</version>
19   </parent>
20
21   <groupId>org.opendaylight.lispflowmapping</groupId>
22   <artifactId>lispflowmapping-commons</artifactId>
23   <version>1.2.0-SNAPSHOT</version>
24   <packaging>pom</packaging>
25   <name>Parent POM</name>
26   <description></description>
27
28   <properties>
29     <branding.version>1.1.0-SNAPSHOT</branding.version>
30     <build.suffix>1.0.0</build.suffix>
31     <clustering.services.version>0.6.0-SNAPSHOT</clustering.services.version>
32     <config.version>0.3.0-SNAPSHOT</config.version>
33     <controller.checkstyle.version>0.1.0-SNAPSHOT</controller.checkstyle.version>
34     <feature.test.version>0.7.0-SNAPSHOT</feature.test.version>
35     <forwardingrulesmanager.version>0.5.0</forwardingrulesmanager.version>
36     <ietf-inet-types.version>2010.09.24.7-SNAPSHOT</ietf-inet-types.version>
37     <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
38     <karaf.empty.version>1.5.0-SNAPSHOT</karaf.empty.version>
39     <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
40     <lispflowmapping.version>1.2.0-SNAPSHOT</lispflowmapping.version>
41     <mdsal.version>1.2.0-SNAPSHOT</mdsal.version>
42     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
43     <nsf.version>0.5.0-SNAPSHOT</nsf.version>
44     <sal.version>0.9.0-SNAPSHOT</sal.version>
45     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
46     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
47     <sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
48     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
49     <statisticsmanager.version>0.5.0</statisticsmanager.version>
50     <xtend.dstdir>src/main/xtend-gen</xtend.dstdir>
51     <yang-jmx-generator.version>1.1.0-SNAPSHOT</yang-jmx-generator.version>
52     <yang.binding.version>0.6.1</yang.binding.version>
53     <yang.codegen.version>0.6.1</yang.codegen.version>
54     <yang.src.path>src/main/yang</yang.src.path>
55     <yang.version>0.6.1</yang.version>
56     <yangtools.binding.version>0.6.1</yangtools.binding.version>
57     <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
58   </properties>
59
60   <dependencyManagement>
61     <dependencies>
62       <!-- NOTE: The "Type" jar is considered default. You only need to specify
63                  the type when it is something other than jar. -->
64       <dependency>
65         <groupId>com.google.guava</groupId>
66         <artifactId>guava</artifactId>
67         <version>${guava.version}</version>
68       </dependency>
69       <dependency>
70         <groupId>equinoxSDK381</groupId>
71         <artifactId>org.eclipse.osgi</artifactId>
72         <version>3.8.1.v20120830-144521</version>
73       </dependency>
74       <dependency>
75         <groupId>junit</groupId>
76         <artifactId>junit</artifactId>
77         <version>4.8.1</version>
78       </dependency>
79       <dependency>
80         <groupId>junit-addons</groupId>
81         <artifactId>junit-addons</artifactId>
82         <version>1.4</version>
83       </dependency>
84       <dependency>
85         <groupId>org.apache.karaf.features</groupId>
86         <artifactId>framework</artifactId>
87         <version>${karaf.version}</version>
88         <type>kar</type>
89       </dependency>
90       <dependency>
91         <groupId>org.hamcrest</groupId>
92         <artifactId>hamcrest-core</artifactId>
93         <version>1.3</version>
94       </dependency>
95       <dependency>
96         <groupId>org.jmock</groupId>
97         <artifactId>jmock-junit4</artifactId>
98         <version>2.6.0</version>
99       </dependency>
100       <dependency>
101         <groupId>org.jmock</groupId>
102         <artifactId>jmock-legacy</artifactId>
103         <version>2.6.0</version>
104       </dependency>
105       <dependency>
106         <groupId>org.opendaylight.controller</groupId>
107         <artifactId>clustering.services</artifactId>
108         <version>0.6.0-SNAPSHOT</version>
109       </dependency>
110       <dependency>
111         <groupId>org.opendaylight.controller</groupId>
112         <artifactId>commons.northbound</artifactId>
113         <version>0.5.0-SNAPSHOT</version>
114       </dependency>
115       <dependency>
116         <groupId>org.opendaylight.controller</groupId>
117         <artifactId>config-api</artifactId>
118         <version>0.3.0-SNAPSHOT</version>
119       </dependency>
120       <dependency>
121         <groupId>org.opendaylight.controller</groupId>
122         <artifactId>config-manager</artifactId>
123         <version>${config.version}</version>
124       </dependency>
125       <dependency>
126         <groupId>org.opendaylight.controller</groupId>
127         <artifactId>config-util</artifactId>
128         <version>0.3.0-SNAPSHOT</version>
129       </dependency>
130       <dependency>
131         <groupId>org.opendaylight.controller</groupId>
132         <artifactId>containermanager</artifactId>
133         <version>0.6.0-SNAPSHOT</version>
134       </dependency>
135       <dependency>
136         <groupId>org.opendaylight.controller</groupId>
137         <artifactId>distribution.opendaylight</artifactId>
138         <version>0.2.0-SNAPSHOT</version>
139         <classifier>osgipackage</classifier>
140         <type>zip</type>
141         <!-- Make sure this isn't included on any classpath -->
142       </dependency>
143       <dependency>
144         <groupId>org.opendaylight.controller</groupId>
145         <artifactId>features-adsal</artifactId>
146         <version>${sal.version}</version>
147         <classifier>features</classifier>
148         <type>xml</type>
149       </dependency>
150       <dependency>
151         <groupId>org.opendaylight.controller</groupId>
152         <artifactId>features-mdsal</artifactId>
153         <version>${mdsal.version}</version>
154         <classifier>features</classifier>
155         <type>xml</type>
156       </dependency>
157       <dependency>
158         <groupId>org.opendaylight.controller</groupId>
159         <artifactId>features-netconf-connector</artifactId>
160         <version>${mdsal.version}</version>
161         <classifier>features</classifier>
162         <type>xml</type>
163       </dependency>
164       <dependency>
165         <groupId>org.opendaylight.controller</groupId>
166         <artifactId>features-nsf</artifactId>
167         <version>${nsf.version}</version>
168         <classifier>features</classifier>
169         <type>xml</type>
170       </dependency>
171
172       <dependency>
173         <groupId>org.opendaylight.controller</groupId>
174         <artifactId>karaf.branding</artifactId>
175         <version>${branding.version}</version>
176         <scope>compile</scope>
177       </dependency>
178       <dependency>
179         <groupId>org.opendaylight.controller</groupId>
180         <artifactId>netty-event-executor-config</artifactId>
181         <version>${config.version}</version>
182       </dependency>
183       <dependency>
184         <groupId>org.opendaylight.controller</groupId>
185         <artifactId>networkconfig.neutron</artifactId>
186         <version>0.5.0-SNAPSHOT</version>
187       </dependency>
188       <dependency>
189         <groupId>org.opendaylight.controller</groupId>
190         <artifactId>opendaylight-karaf-empty</artifactId>
191         <version>${karaf.empty.version}</version>
192         <type>zip</type>
193       </dependency>
194
195       <dependency>
196         <groupId>org.opendaylight.controller</groupId>
197         <artifactId>opendaylight-karaf-resources</artifactId>
198         <version>${karaf.resources.version}</version>
199       </dependency>
200       <dependency>
201         <groupId>org.opendaylight.controller</groupId>
202         <artifactId>sal</artifactId>
203         <version>0.9.0-SNAPSHOT</version>
204       </dependency>
205       <dependency>
206         <groupId>org.opendaylight.controller</groupId>
207         <artifactId>sal-binding-api</artifactId>
208         <version>${mdsal.version}</version>
209       </dependency>
210       <dependency>
211         <groupId>org.opendaylight.controller</groupId>
212         <artifactId>sal-binding-broker-impl</artifactId>
213         <version>${mdsal.version}</version>
214       </dependency>
215       <dependency>
216         <groupId>org.opendaylight.controller</groupId>
217         <artifactId>sal-binding-config</artifactId>
218         <version>${mdsal.version}</version>
219       </dependency>
220       <dependency>
221         <groupId>org.opendaylight.controller</groupId>
222         <artifactId>sal-broker-impl</artifactId>
223         <version>${mdsal.version}</version>
224       </dependency>
225       <dependency>
226         <groupId>org.opendaylight.controller</groupId>
227         <artifactId>sal-common-util</artifactId>
228         <version>${mdsal.version}</version>
229       </dependency>
230       <dependency>
231         <groupId>org.opendaylight.controller</groupId>
232         <artifactId>sal-netconf-connector</artifactId>
233         <version>${mdsal.version}</version>
234       </dependency>
235       <dependency>
236         <groupId>org.opendaylight.controller</groupId>
237         <artifactId>threadpool-config-api</artifactId>
238         <version>${config.version}</version>
239       </dependency>
240       <dependency>
241         <groupId>org.opendaylight.controller</groupId>
242         <artifactId>threadpool-config-impl</artifactId>
243         <version>0.3.0-SNAPSHOT</version>
244       </dependency>
245       <dependency>
246         <groupId>org.opendaylight.lispflowmapping</groupId>
247         <artifactId>common.build.tools</artifactId>
248         <version>${lispflowmapping.version}</version>
249       </dependency>
250       <dependency>
251         <groupId>org.opendaylight.lispflowmapping</groupId>
252         <artifactId>lispflowmapping-code-commons</artifactId>
253         <version>${lispflowmapping.version}</version>
254       </dependency>
255       <dependency>
256         <groupId>org.opendaylight.lispflowmapping</groupId>
257         <artifactId>lispflowmapping-commons</artifactId>
258         <version>${lispflowmapping.version}</version>
259       </dependency>
260       <dependency>
261         <groupId>org.opendaylight.lispflowmapping</groupId>
262         <artifactId>mappingservice.api</artifactId>
263         <version>${lispflowmapping.version}</version>
264       </dependency>
265       <dependency>
266         <groupId>org.opendaylight.lispflowmapping</groupId>
267         <artifactId>mappingservice.clusterdao</artifactId>
268         <version>${lispflowmapping.version}</version>
269       </dependency>
270       <dependency>
271         <groupId>org.opendaylight.lispflowmapping</groupId>
272         <artifactId>mappingservice.config</artifactId>
273         <version>${lispflowmapping.version}</version>
274       </dependency>
275       <dependency>
276         <groupId>org.opendaylight.lispflowmapping</groupId>
277         <artifactId>mappingservice.implementation</artifactId>
278         <version>${lispflowmapping.version}</version>
279       </dependency>
280
281       <dependency>
282         <groupId>org.opendaylight.lispflowmapping</groupId>
283         <artifactId>mappingservice.netconf</artifactId>
284         <version>${lispflowmapping.version}</version>
285       </dependency>
286       <dependency>
287         <groupId>org.opendaylight.lispflowmapping</groupId>
288         <artifactId>mappingservice.neutron</artifactId>
289         <version>${lispflowmapping.version}</version>
290       </dependency>
291       <dependency>
292         <groupId>org.opendaylight.lispflowmapping</groupId>
293         <artifactId>mappingservice.northbound</artifactId>
294         <version>${lispflowmapping.version}</version>
295       </dependency>
296       <dependency>
297         <groupId>org.opendaylight.lispflowmapping</groupId>
298         <artifactId>mappingservice.southbound</artifactId>
299         <version>${lispflowmapping.version}</version>
300       </dependency>
301       <dependency>
302         <groupId>org.opendaylight.lispflowmapping</groupId>
303         <artifactId>mappingservice.yangmodel</artifactId>
304         <version>${lispflowmapping.version}</version>
305       </dependency>
306       <dependency>
307         <groupId>org.opendaylight.yangtools</groupId>
308         <artifactId>yang-binding</artifactId>
309         <version>0.7.0-SNAPSHOT</version>
310       </dependency>
311       <dependency>
312         <groupId>org.opendaylight.yangtools</groupId>
313         <artifactId>yang-common</artifactId>
314         <version>0.7.0-SNAPSHOT</version>
315       </dependency>
316       <dependency>
317         <groupId>org.opendaylight.yangtools</groupId>
318         <artifactId>yang-data-api</artifactId>
319         <version>0.7.0-SNAPSHOT</version>
320       </dependency>
321       <dependency>
322         <groupId>org.opendaylight.yangtools</groupId>
323         <artifactId>yang-data-impl</artifactId>
324         <version>${yangtools.version}</version>
325       </dependency>
326       <dependency>
327         <groupId>org.opendaylight.yangtools</groupId>
328         <artifactId>yang-data-util</artifactId>
329         <version>0.7.0-SNAPSHOT</version>
330       </dependency>
331       <dependency>
332         <groupId>org.opendaylight.yangtools</groupId>
333         <artifactId>yang-model-api</artifactId>
334         <version>0.7.0-SNAPSHOT</version>
335       </dependency>
336       <dependency>
337         <groupId>org.opendaylight.yangtools</groupId>
338         <artifactId>yang-parser-impl</artifactId>
339         <version>${yangtools.version}</version>
340       </dependency>
341       <dependency>
342         <groupId>org.opendaylight.yangtools.model</groupId>
343         <artifactId>ietf-inet-types</artifactId>
344         <version>2010.09.24.7-SNAPSHOT</version>
345       </dependency>
346       <dependency>
347         <groupId>org.opendaylight.yangtools.model</groupId>
348         <artifactId>ietf-yang-types</artifactId>
349         <version>2010.09.24.7-SNAPSHOT</version>
350       </dependency>
351       <dependency>
352         <groupId>org.apache.karaf.features</groupId>
353         <artifactId>standard</artifactId>
354         <version>${karaf.version}</version>
355         <classifier>features</classifier>
356         <type>xml</type>
357         <scope>runtime</scope>
358       </dependency>
359
360       <dependency>
361         <groupId>org.opendaylight.lispflowmapping</groupId>
362         <artifactId>features-lispflowmapping</artifactId>
363         <version>${lispflowmapping.version}</version>
364         <classifier>features</classifier>
365         <type>xml</type>
366         <scope>runtime</scope>
367       </dependency>
368       <dependency>
369         <groupId>org.opendaylight.lispflowmapping</groupId>
370         <artifactId>common.unittest.tools</artifactId>
371         <version>${lispflowmapping.version}</version>
372         <scope>test</scope>
373       </dependency>
374       <dependency>
375         <groupId>org.opendaylight.yangtools</groupId>
376         <artifactId>features-test</artifactId>
377         <version>${feature.test.version}</version>
378         <scope>test</scope>
379       </dependency>
380       <dependency>
381         <groupId>org.opendaylight.yangtools</groupId>
382         <artifactId>mockito-configuration</artifactId>
383         <version>${yangtools.version}</version>
384         <scope>test</scope>
385       </dependency>
386     </dependencies>
387   </dependencyManagement>
388   <build>
389     <pluginManagement>
390       <plugins>
391         <plugin>
392           <!-- This configures the sort pom plugin to sort properties, dependencies
393                etc during a build. It helps to ensure consistent poms that are easy to read.
394                While the configuration should exist at a root level it is still up to the
395                individual projects to invoke it by defining the plugin in the build->plugins
396                section. -->
397           <groupId>com.google.code.sortpom</groupId>
398           <artifactId>maven-sortpom-plugin</artifactId>
399           <version>2.2.1</version>
400           <configuration>
401             <createBackupFile>false</createBackupFile>
402             <encoding>${project.build.sourceEncoding}</encoding>
403             <keepBlankLines>true</keepBlankLines>
404             <lineSeparator>\n</lineSeparator>
405             <nrOfIndentSpace>2</nrOfIndentSpace>
406             <predefinedSortOrder>custom_1</predefinedSortOrder>
407             <sortDependencies>scope,groupId,artifactId</sortDependencies>
408             <sortPlugins>groupId,artifactId</sortPlugins>
409             <sortProperties>true</sortProperties>
410           </configuration>
411           <executions>
412             <execution>
413               <goals>
414                 <goal>sort</goal>
415               </goals>
416               <phase>verify</phase>
417             </execution>
418           </executions>
419         </plugin>
420         <plugin>
421           <groupId>org.apache.felix</groupId>
422           <artifactId>maven-bundle-plugin</artifactId>
423           <version>2.4.0</version>
424           <extensions>true</extensions>
425           <configuration>
426             <manifestLocation>${project.basedir}/META-INF</manifestLocation>
427           </configuration>
428         </plugin>
429         <plugin>
430           <groupId>org.apache.maven.plugins</groupId>
431           <artifactId>maven-assembly-plugin</artifactId>
432           <version>2.4</version>
433         </plugin>
434         <plugin>
435           <!-- Define the configuration for the checkstyle plugin.  Import the rules from the controller project, which
436                is defined as a dependency.  Print rule violations to the console, but don't fail the build if violations
437                are found. -->
438           <groupId>org.apache.maven.plugins</groupId>
439           <artifactId>maven-checkstyle-plugin</artifactId>
440           <version>${checkstyle.version}</version>
441           <configuration>
442             <failOnViolation>false</failOnViolation>
443             <configLocation>controller/checkstyle.xml</configLocation>
444             <consoleOutput>true</consoleOutput>
445             <includeTestSourceDirectory>true</includeTestSourceDirectory>
446             <sourceDirectory>${project.basedir}</sourceDirectory>
447             <includes>**\/*.java,**\/*.xml,**\/*.yang</includes>
448             <excludes>**\/target\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
449           </configuration>
450           <dependencies>
451             <dependency>
452               <groupId>org.opendaylight.controller</groupId>
453               <artifactId>checkstyle</artifactId>
454               <version>${controller.checkstyle.version}</version>
455             </dependency>
456           </dependencies>
457           <executions>
458             <execution>
459               <goals>
460                 <goal>check</goal>
461               </goals>
462               <phase>process-sources</phase>
463             </execution>
464           </executions>
465         </plugin>
466         <plugin>
467           <!-- TODO move up to ODL parent. -->
468           <!-- This is required to make sure that we delete the files which are
469                being generated under the src/main directory since by default only files
470                under target get cleaned up. Because the clean plugin is automatically invoked
471                you do NOT need to specify it in the build->plugin section. You would only
472                want to override this if you have additional folders which need to be cleaned
473                up. -->
474           <artifactId>maven-clean-plugin</artifactId>
475           <configuration>
476             <filesets>
477               <fileset>
478                 <directory>${xtend.dstdir}</directory>
479                 <includes>
480                   <include>**</include>
481                 </includes>
482               </fileset>
483               <fileset>
484                 <directory>${jmxGeneratorPath}</directory>
485                 <includes>
486                   <include>**</include>
487                 </includes>
488               </fileset>
489               <fileset>
490                 <directory>${salGeneratorPath}</directory>
491                 <includes>
492                   <include>**</include>
493                 </includes>
494               </fileset>
495             </filesets>
496           </configuration>
497         </plugin>
498         <plugin>
499           <!-- this should really be defined in odl parent as it defines what
500                JRE this is targeted for. -->
501           <groupId>org.apache.maven.plugins</groupId>
502           <artifactId>maven-compiler-plugin</artifactId>
503           <version>2.3.2</version>
504           <configuration>
505             <source>${java.version.source}</source>
506             <target>${java.version.target}</target>
507           </configuration>
508         </plugin>
509         <plugin>
510           <!-- we are overriding the default version of this plugin here... not
511                sure why. -->
512           <groupId>org.apache.maven.plugins</groupId>
513           <artifactId>maven-dependency-plugin</artifactId>
514           <version>2.8</version>
515         </plugin>
516         <plugin>
517           <!-- Configures the java doc generation. Generally you should not have
518                to override this unless you need to exclude other packages etc. -->
519           <groupId>org.apache.maven.plugins</groupId>
520           <artifactId>maven-javadoc-plugin</artifactId>
521           <version>2.8.1</version>
522           <configuration>
523             <doclet>org.jboss.apiviz.APIviz</doclet>
524             <docletArtifact>
525               <groupId>org.jboss.apiviz</groupId>
526               <artifactId>apiviz</artifactId>
527               <version>1.3.2.GA</version>
528             </docletArtifact>
529             <finalName>${project.artifactId}-${project.version}</finalName>
530             <useStandardDocletOptions>true</useStandardDocletOptions>
531             <charset>UTF-8</charset>
532             <encoding>UTF-8</encoding>
533             <docencoding>UTF-8</docencoding>
534             <breakiterator>true</breakiterator>
535             <version>true</version>
536             <author>true</author>
537             <keywords>true</keywords>
538             <excludePackageNames>net.sf.jnetlib.*:cern.*:corejava:*.internal:edu.uci.*</excludePackageNames>
539             <failOnError>false</failOnError>
540           </configuration>
541         </plugin>
542         <plugin>
543           <groupId>org.apache.maven.plugins</groupId>
544           <artifactId>maven-jxr-plugin</artifactId>
545           <version>2.3</version>
546           <configuration>
547             <aggregate>true</aggregate>
548             <linkJavadoc>true</linkJavadoc>
549             <javadocDir>target/apidocs</javadocDir>
550           </configuration>
551         </plugin>
552         <plugin>
553           <groupId>org.apache.maven.plugins</groupId>
554           <artifactId>maven-release-plugin</artifactId>
555           <version>${releaseplugin.version}</version>
556         </plugin>
557         <plugin>
558           <groupId>org.apache.maven.plugins</groupId>
559           <artifactId>maven-surefire-plugin</artifactId>
560           <version>2.14.1</version>
561         </plugin>
562         <plugin>
563           <groupId>org.codehaus.enunciate</groupId>
564           <artifactId>maven-enunciate-plugin</artifactId>
565           <version>${enunciate.version}</version>
566           <configuration>
567             <configFile>enunciate.xml</configFile>
568           </configuration>
569           <executions>
570             <execution>
571               <goals>
572                 <goal>docs</goal>
573               </goals>
574             </execution>
575           </executions>
576         </plugin>
577         <plugin>
578           <!-- TODO: This should be in ODL parent -->
579           <groupId>org.codehaus.mojo</groupId>
580           <artifactId>build-helper-maven-plugin</artifactId>
581           <version>1.8</version>
582           <executions>
583             <execution>
584               <id>add-source</id>
585               <goals>
586                 <goal>add-source</goal>
587               </goals>
588               <phase>generate-sources</phase>
589               <configuration>
590                 <sources>
591                   <source>${yang.src.path}</source>
592                   <source>${jmxGeneratorPath}</source>
593                   <source>${salGeneratorPath}</source>
594                   <source>${xtend.dstdir}</source>
595                 </sources>
596               </configuration>
597             </execution>
598           </executions>
599         </plugin>
600
601         <plugin>
602           <groupId>org.eclipse.m2e</groupId>
603           <artifactId>lifecycle-mapping</artifactId>
604           <version>1.0.0</version>
605           <configuration>
606             <lifecycleMappingMetadata>
607               <pluginExecutions>
608                 <pluginExecution>
609                   <pluginExecutionFilter>
610                     <groupId>org.codehaus.mojo</groupId>
611                     <artifactId>properties-maven-plugin</artifactId>
612                     <versionRange>[0.0,)</versionRange>
613                     <goals>
614                       <goal>set-system-properties</goal>
615                     </goals>
616                   </pluginExecutionFilter>
617                   <action>
618                     <ignore></ignore>
619                   </action>
620                 </pluginExecution>
621                 <pluginExecution>
622                   <pluginExecutionFilter>
623                     <groupId>org.codehaus.enunciate</groupId>
624                     <artifactId>maven-enunciate-plugin</artifactId>
625                     <versionRange>[0.0,)</versionRange>
626                     <goals>
627                       <goal>docs</goal>
628                     </goals>
629                   </pluginExecutionFilter>
630                   <action>
631                     <ignore></ignore>
632                   </action>
633                 </pluginExecution>
634                 <pluginExecution>
635                   <pluginExecutionFilter>
636                     <groupId>org.jacoco</groupId>
637                     <artifactId>jacoco-maven-plugin</artifactId>
638                     <versionRange>[0.0,)</versionRange>
639                     <goals>
640                       <goal>prepare-agent</goal>
641                       <goal>pre-test</goal>
642                       <goal>post-test</goal>
643                     </goals>
644                   </pluginExecutionFilter>
645                   <action>
646                     <ignore></ignore>
647                   </action>
648                 </pluginExecution>
649                 <pluginExecution>
650                   <pluginExecutionFilter>
651                     <groupId>org.ops4j.pax.exam</groupId>
652                     <artifactId>maven-paxexam-plugin</artifactId>
653                     <versionRange>[1.2.4,)</versionRange>
654                     <goals>
655                       <goal>generate-depends-file</goal>
656                     </goals>
657                   </pluginExecutionFilter>
658                   <action>
659                     <ignore></ignore>
660                   </action>
661                 </pluginExecution>
662                 <pluginExecution>
663                   <pluginExecutionFilter>
664                     <groupId>org.apache.maven.plugins</groupId>
665                     <artifactId>maven-checkstyle-plugin</artifactId>
666                     <versionRange>[2.0,)</versionRange>
667                     <goals>
668                       <goal>check</goal>
669                     </goals>
670                   </pluginExecutionFilter>
671                   <action>
672                     <ignore></ignore>
673                   </action>
674                 </pluginExecution>
675                 <pluginExecution>
676                   <pluginExecutionFilter>
677                     <groupId>org.opendaylight.yangtools</groupId>
678                     <artifactId>yang-maven-plugin</artifactId>
679                     <versionRange>[0.5,)</versionRange>
680                     <goals>
681                       <goal>generate-sources</goal>
682                     </goals>
683                   </pluginExecutionFilter>
684                   <action>
685                     <ignore></ignore>
686                   </action>
687                 </pluginExecution>
688               </pluginExecutions>
689             </lifecycleMappingMetadata>
690           </configuration>
691         </plugin>
692         <plugin>
693           <!-- here we are defining the default generators for yang You may need
694                to override this in child poms if you want to define additional generators,
695                such as the JMX generator etc. -->
696           <groupId>org.opendaylight.yangtools</groupId>
697           <artifactId>yang-maven-plugin</artifactId>
698           <version>${yangtools.version}</version>
699           <dependencies>
700             <dependency>
701               <groupId>org.opendaylight.yangtools</groupId>
702               <artifactId>maven-sal-api-gen-plugin</artifactId>
703               <version>${yangtools.version}</version>
704             </dependency>
705           </dependencies>
706           <executions>
707             <execution>
708               <goals>
709                 <goal>generate-sources</goal>
710               </goals>
711               <configuration>
712                 <yangFilesRootDir>${yang.src.path}</yangFilesRootDir>
713                 <codeGenerators>
714                   <generator>
715                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
716                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
717                   </generator>
718                 </codeGenerators>
719                 <inspectDependencies>true</inspectDependencies>
720               </configuration>
721             </execution>
722           </executions>
723         </plugin>
724       </plugins>
725     </pluginManagement>
726     <plugins>
727       <plugin>
728         <groupId>org.jacoco</groupId>
729         <artifactId>jacoco-maven-plugin</artifactId>
730         <executions>
731           <execution>
732             <id>prepare-ut-agent</id>
733             <phase>process-test-classes</phase>
734             <goals>
735               <goal>prepare-agent</goal>
736             </goals>
737             <configuration>
738               <destFile>${sonar.jacoco.reportPath}</destFile>
739             </configuration>
740           </execution>
741           <execution>
742             <id>prepare-it-agent</id>
743             <phase>pre-integration-test</phase>
744             <goals>
745               <goal>prepare-agent</goal>
746             </goals>
747             <configuration>
748               <destFile>${sonar.jacoco.itReportPath}</destFile>
749             </configuration>
750           </execution>
751            <execution>
752              <id>post-test</id>
753              <phase>test</phase>
754              <goals>
755                <goal>report</goal>
756              </goals>
757            </execution>
758         </executions>
759       </plugin>
760     </plugins>
761   </build>
762
763   <reporting>
764     <outputDirectory>${project.build.directory}/site</outputDirectory>
765     <excludeDefaults>true</excludeDefaults>
766     <plugins>
767       <plugin>
768         <groupId>org.apache.maven.plugins</groupId>
769         <artifactId>maven-javadoc-plugin</artifactId>
770         <version>2.8.1</version>
771         <configuration>
772           <doclet>org.jboss.apiviz.APIviz</doclet>
773           <docletArtifact>
774             <groupId>org.jboss.apiviz</groupId>
775             <artifactId>apiviz</artifactId>
776             <version>1.3.2.GA</version>
777           </docletArtifact>
778           <finalName>${project.artifactId}-${build.suffix}</finalName>
779           <useStandardDocletOptions>true</useStandardDocletOptions>
780           <charset>UTF-8</charset>
781           <encoding>UTF-8</encoding>
782           <docencoding>UTF-8</docencoding>
783           <breakiterator>true</breakiterator>
784           <version>true</version>
785           <author>true</author>
786           <keywords>true</keywords>
787           <excludePackageNames>*.internal:edu.uci.*</excludePackageNames>
788         </configuration>
789       </plugin>
790       <plugin>
791         <groupId>org.apache.maven.plugins</groupId>
792         <artifactId>maven-jxr-plugin</artifactId>
793         <version>2.3</version>
794         <configuration>
795           <aggregate>true</aggregate>
796           <linkJavadoc>true</linkJavadoc>
797         </configuration>
798       </plugin>
799       <plugin>
800         <groupId>org.apache.maven.plugins</groupId>
801         <artifactId>maven-project-info-reports-plugin</artifactId>
802         <version>${projectinfo}</version>
803         <configuration>
804           <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
805           <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
806         </configuration>
807         <reportSets>
808           <reportSet>
809             <reports>
810               <report>index</report>
811               <report>project-team</report>
812               <report>license</report>
813               <report>mailing-list</report>
814               <report>plugin-management</report>
815               <report>cim</report>
816               <report>issue-tracking</report>
817               <report>scm</report>
818               <report>summary</report>
819             </reports>
820           </reportSet>
821         </reportSets>
822       </plugin>
823     </plugins>
824   </reporting>
825
826   <distributionManagement>
827     <!-- Note: We want the nexus proxy property here because want to enable
828          devs to upload this artifact using mvn deploy to other maven repositories. -->
829     <!-- OpenDayLight Released artifact -->
830     <repository>
831       <id>opendaylight-release</id>
832       <url>${nexusproxy}/repositories/opendaylight.release/</url>
833     </repository>
834     <!-- OpenDayLight Snapshot artifact -->
835     <snapshotRepository>
836       <id>opendaylight-snapshot</id>
837       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
838     </snapshotRepository>
839     <!-- Site deployment -->
840   </distributionManagement>
841
842 </project>