Merge "BUG-2159: fix sort() conflict"
[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.4.2-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         <antlr4.version>4.0</antlr4.version>
31         <commons.io.version>2.4</commons.io.version>
32         <ctrie.version>0.2.0</ctrie.version>
33         <exam.version>3.0.0</exam.version>
34         <groovy.version>2.1.6</groovy.version>
35         <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
36         <karaf.version>3.0.1</karaf.version>
37         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
38         <maven.javadoc.version>2.9.1</maven.javadoc.version>
39         <jsr305.version>2.0.1</jsr305.version>
40
41         <!-- Model versions -->
42         <ietf.topology.version>2013.10.21.7-SNAPSHOT</ietf.topology.version>
43         <ietf.inet.types.version>2010.09.24.7-SNAPSHOT</ietf.inet.types.version>
44         <ietf.yang.types.version>2010.09.24.7-SNAPSHOT</ietf.yang.types.version>
45         <ietf.yang.types.20130715.version>2013.07.15.7-SNAPSHOT</ietf.yang.types.20130715.version>
46         <ietf.restconf.version>2013.10.19.7-SNAPSHOT</ietf.restconf.version>
47         <opendaylight.l2.types.version>2013.08.27.7-SNAPSHOT</opendaylight.l2.types.version>
48         <yang.ext.version>2013.09.07.7-SNAPSHOT</yang.ext.version>
49
50         <!-- Sonar config -->
51         <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
52         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
53         <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
54         <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
55         <sonar.profile>Sonar way with Findbugs</sonar.profile>
56     </properties>
57
58     <profiles>
59         <profile>
60             <id>jdk1.8</id>
61             <activation>
62                 <jdk>1.8</jdk>
63             </activation>
64             <build>
65                 <pluginManagement>
66                     <plugins>
67                         <plugin>
68                             <groupId>org.apache.maven.plugins</groupId>
69                             <artifactId>maven-javadoc-plugin</artifactId>
70                             <version>${maven.javadoc.version}</version>
71                             <configuration>
72                                 <stylesheetfile>stylesheet.css</stylesheetfile>
73                                 <additionalparam>-Xdoclint:none</additionalparam>
74                             </configuration>
75                             <executions>
76                                 <execution>
77                                     <id>attach-javadocs</id>
78                                     <goals>
79                                         <goal>jar</goal>
80                                     </goals>
81                                 </execution>
82                                 <execution>
83                                     <goals>
84                                         <goal>aggregate</goal>
85                                     </goals>
86                                     <phase>site</phase>
87                                 </execution>
88                             </executions>
89                         </plugin>
90                     </plugins>
91                 </pluginManagement>
92             </build>
93         </profile>
94     </profiles>
95
96     <dependencyManagement>
97         <dependencies>
98             <!-- Testing Dependencies -->
99             <dependency>
100                 <groupId>org.apache.maven.shared</groupId>
101                 <artifactId>maven-verifier</artifactId>
102                 <version>1.5</version>
103                 <scope>test</scope>
104             </dependency>
105             <dependency>
106                 <groupId>equinoxSDK381</groupId>
107                 <artifactId>org.eclipse.osgi</artifactId>
108                 <version>3.8.1.v20120830-144521</version>
109                 <scope>test</scope>
110             </dependency>
111             <dependency>
112                 <groupId>org.codehaus.groovy</groupId>
113                 <artifactId>groovy</artifactId>
114                 <version>2.1.6</version>
115                 <scope>test</scope>
116             </dependency>
117             <dependency>
118                 <groupId>org.codehaus.groovy</groupId>
119                 <artifactId>groovy-xml</artifactId>
120                 <version>2.1.6</version>
121                 <scope>test</scope>
122             </dependency>
123             <dependency>
124                 <groupId>xmlunit</groupId>
125                 <artifactId>xmlunit</artifactId>
126                 <version>1.5</version>
127                 <scope>test</scope>
128             </dependency>
129             <dependency>
130                 <groupId>org.opendaylight.yangtools</groupId>
131                 <artifactId>yang-data-util</artifactId>
132                 <version>${yangtools.version}</version>
133             </dependency>
134             <dependency>
135                 <groupId>org.opendaylight.yangtools</groupId>
136                 <artifactId>maven-sal-api-gen-plugin</artifactId>
137                 <version>${yangtools.version}</version>
138             </dependency>
139             <dependency>
140                 <groupId>org.opendaylight.yangtools.thirdparty</groupId>
141                 <artifactId>antlr4-runtime-osgi-nohead</artifactId>
142                 <version>4.0</version>
143                 <scope>test</scope>
144             </dependency>
145             <dependency>
146                 <groupId>org.opendaylight.yangtools.thirdparty</groupId>
147                 <artifactId>xtend-lib-osgi</artifactId>
148                 <version>2.4.3</version>
149                 <scope>test</scope>
150             </dependency>
151             <dependency>
152                 <groupId>org.opendaylight.yangtools</groupId>
153                 <artifactId>concepts</artifactId>
154                 <version>${yangtools.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.yangtools</groupId>
158                 <artifactId>object-cache-api</artifactId>
159                 <version>${yangtools.version}</version>
160             </dependency>
161             <dependency>
162                 <groupId>org.opendaylight.yangtools</groupId>
163                 <artifactId>object-cache-guava</artifactId>
164                 <version>${yangtools.version}</version>
165             </dependency>
166             <dependency>
167                 <groupId>org.opendaylight.yangtools</groupId>
168                 <artifactId>object-cache-noop</artifactId>
169                 <version>${yangtools.version}</version>
170             </dependency>
171             <dependency>
172                 <groupId>org.opendaylight.yangtools</groupId>
173                 <artifactId>binding-model-api</artifactId>
174                 <version>${yangtools.version}</version>
175             </dependency>
176             <dependency>
177                 <groupId>org.opendaylight.yangtools</groupId>
178                 <artifactId>binding-generator-api</artifactId>
179                 <version>${yangtools.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.yangtools</groupId>
183                 <artifactId>binding-generator-spi</artifactId>
184                 <version>${yangtools.version}</version>
185             </dependency>
186             <dependency>
187                 <groupId>org.opendaylight.yangtools</groupId>
188                 <artifactId>binding-generator-util</artifactId>
189                 <version>${yangtools.version}</version>
190             </dependency>
191             <dependency>
192                 <groupId>org.opendaylight.yangtools</groupId>
193                 <artifactId>binding-generator-impl</artifactId>
194                 <version>${yangtools.version}</version>
195             </dependency>
196             <dependency>
197                 <groupId>org.opendaylight.yangtools</groupId>
198                 <artifactId>binding-java-api-generator</artifactId>
199                 <version>${yangtools.version}</version>
200             </dependency>
201             <dependency>
202                 <groupId>org.opendaylight.yangtools</groupId>
203                 <artifactId>yang-common</artifactId>
204                 <version>${yangtools.version}</version>
205             </dependency>
206             <dependency>
207                 <groupId>org.opendaylight.yangtools</groupId>
208                 <artifactId>yang-data-api</artifactId>
209                 <version>${yangtools.version}</version>
210             </dependency>
211             <dependency>
212                 <groupId>org.opendaylight.yangtools</groupId>
213                 <artifactId>yang-data-impl</artifactId>
214                 <version>${yangtools.version}</version>
215             </dependency>
216             <dependency>
217                 <groupId>org.opendaylight.yangtools</groupId>
218                 <artifactId>yang-data-codec-gson</artifactId>
219                 <version>${yangtools.version}</version>
220             </dependency>
221             <dependency>
222                 <groupId>org.opendaylight.yangtools</groupId>
223                 <artifactId>yang-model-api</artifactId>
224                 <version>${yangtools.version}</version>
225             </dependency>
226             <dependency>
227                 <groupId>org.opendaylight.yangtools</groupId>
228                 <artifactId>yang-model-util</artifactId>
229                 <version>${yangtools.version}</version>
230             </dependency>
231             <dependency>
232                 <groupId>org.opendaylight.yangtools</groupId>
233                 <artifactId>yang-binding</artifactId>
234                 <version>${yangtools.version}</version>
235             </dependency>
236             <dependency>
237                 <groupId>org.opendaylight.yangtools</groupId>
238                 <artifactId>yang-parser-api</artifactId>
239                 <version>${yangtools.version}</version>
240             </dependency>
241             <dependency>
242                 <groupId>org.opendaylight.yangtools</groupId>
243                 <artifactId>yang-parser-impl</artifactId>
244                 <version>${yangtools.version}</version>
245             </dependency>
246             <dependency>
247                 <groupId>org.opendaylight.yangtools</groupId>
248                 <artifactId>yang-maven-plugin</artifactId>
249                 <version>${yangtools.version}</version>
250             </dependency>
251             <dependency>
252                 <groupId>org.opendaylight.yangtools</groupId>
253                 <artifactId>yang-maven-plugin-spi</artifactId>
254                 <version>${yangtools.version}</version>
255             </dependency>
256             <dependency>
257                 <groupId>org.opendaylight.yangtools.model</groupId>
258                 <artifactId>ietf-inet-types</artifactId>
259                 <version>${ietf.inet.types.version}</version>
260             </dependency>
261             <dependency>
262                 <groupId>org.opendaylight.yangtools.model</groupId>
263                 <artifactId>ietf-yang-types</artifactId>
264                 <version>${ietf.yang.types.version}</version>
265             </dependency>
266             <dependency>
267                 <groupId>org.opendaylight.yangtools.model</groupId>
268                 <artifactId>ietf-yang-types-20130715</artifactId>
269                 <version>${ietf.yang.types.20130715.version}</version>
270             </dependency>
271             <dependency>
272                 <groupId>org.opendaylight.yangtools.model</groupId>
273                 <artifactId>ietf-restconf</artifactId>
274                 <version>${ietf.restconf.version}</version>
275             </dependency>
276             <dependency>
277                 <groupId>org.opendaylight.yangtools.model</groupId>
278                 <artifactId>ietf-ted</artifactId>
279                 <version>${ietf.topology.version}</version>
280             </dependency>
281             <dependency>
282                 <groupId>org.opendaylight.yangtools.model</groupId>
283                 <artifactId>ietf-topology</artifactId>
284                 <version>${ietf.topology.version}</version>
285             </dependency>
286             <dependency>
287                 <groupId>org.opendaylight.yangtools.model</groupId>
288                 <artifactId>ietf-topology-isis</artifactId>
289                 <version>${ietf.topology.version}</version>
290             </dependency>
291             <dependency>
292                 <groupId>org.opendaylight.yangtools.model</groupId>
293                 <artifactId>ietf-topology-l3-unicast-igp</artifactId>
294                 <version>${ietf.topology.version}</version>
295             </dependency>
296             <dependency>
297                 <groupId>org.opendaylight.yangtools.model</groupId>
298                 <artifactId>ietf-topology-ospf</artifactId>
299                 <version>${ietf.topology.version}</version>
300             </dependency>
301             <dependency>
302                 <groupId>org.opendaylight.yangtools.model</groupId>
303                 <artifactId>ietf-topology-l3-unicast</artifactId>
304                 <version>${ietf.topology.version}</version>
305             </dependency>
306             <dependency>
307                 <groupId>org.opendaylight.yangtools</groupId>
308                 <artifactId>yang-data-composite-node</artifactId>
309                 <version>${yangtools.version}</version>
310             </dependency>
311             <dependency>
312                 <groupId>org.apache.maven</groupId>
313                 <artifactId>maven-core</artifactId>
314                 <version>3.0.5</version>
315             </dependency>
316             <dependency>
317                 <groupId>org.apache.maven</groupId>
318                 <artifactId>maven-plugin-api</artifactId>
319                 <version>3.0.5</version>
320             </dependency>
321             <dependency>
322                 <groupId>org.javassist</groupId>
323                 <artifactId>javassist</artifactId>
324                 <version>${javassist.version}</version>
325             </dependency>
326             <dependency>
327                 <groupId>xml-apis</groupId>
328                 <artifactId>xml-apis</artifactId>
329                 <version>2.0.2</version>
330             </dependency>
331             <dependency>
332                 <groupId>org.eclipse.xtend</groupId>
333                 <artifactId>org.eclipse.xtend.lib</artifactId>
334                 <version>2.4.3</version>
335             </dependency>
336             <dependency>
337                 <groupId>org.osgi</groupId>
338                 <artifactId>org.osgi.core</artifactId>
339                 <version>5.0.0</version>
340                 <scope>provided</scope>
341             </dependency>
342             <dependency>
343                 <groupId>javax.ws.rs</groupId>
344                 <artifactId>javax.ws.rs-api</artifactId>
345                 <version>2.0</version>
346             </dependency>
347
348             <dependency>
349                 <groupId>org.glassfish.jersey.ext</groupId>
350                 <artifactId>jersey-proxy-client</artifactId>
351                 <version>2.0</version>
352             </dependency>
353             <dependency>
354                 <groupId>org.glassfish.jersey.core</groupId>
355                 <artifactId>jersey-client</artifactId>
356                 <version>2.0</version>
357             </dependency>
358
359             <dependency>
360                 <groupId>org.opendaylight.yangtools</groupId>
361                 <artifactId>restconf-client-api</artifactId>
362                 <version>${yangtools.version}</version>
363             </dependency>
364             <dependency>
365                 <groupId>org.opendaylight.yangtools</groupId>
366                 <artifactId>restconf-common</artifactId>
367                 <version>${yangtools.version}</version>
368             </dependency>
369             <dependency>
370                 <groupId>org.opendaylight.yangtools</groupId>
371                 <artifactId>restconf-util</artifactId>
372                 <version>${yangtools.version}</version>
373             </dependency>
374             <dependency>
375                 <groupId>org.opendaylight.yangtools</groupId>
376                 <artifactId>restconf-test-service</artifactId>
377                 <version>${yangtools.version}</version>
378             </dependency>
379             <dependency>
380                 <groupId>org.opendaylight.yangtools</groupId>
381                 <artifactId>restconf-client-impl</artifactId>
382                 <version>${yangtools.version}</version>
383             </dependency>
384             <dependency>
385                 <groupId>org.opendaylight.yangtools</groupId>
386                 <artifactId>restconf-jaxrs-api</artifactId>
387                 <version>${yangtools.version}</version>
388             </dependency>
389
390             <dependency>
391                 <groupId>org.opendaylight.yangtools</groupId>
392                 <artifactId>bug527-test-model</artifactId>
393                 <version>${yangtools.version}</version>
394                 <scope>test</scope>
395             </dependency>
396             <dependency>
397                 <groupId>org.opendaylight.yangtools</groupId>
398                 <artifactId>bug1196-test-model</artifactId>
399                 <version>${yangtools.version}</version>
400                 <scope>test</scope>
401             </dependency>
402
403             <dependency>
404                 <groupId>org.opendaylight.yangtools</groupId>
405                 <artifactId>websocket-client</artifactId>
406                 <version>${yangtools.version}</version>
407             </dependency>
408
409             <dependency>
410                 <groupId>${project.groupId}</groupId>
411                 <artifactId>object-cache-api</artifactId>
412                 <version>${yangtools.version}</version>
413             </dependency>
414             <dependency>
415                 <groupId>${project.groupId}</groupId>
416                 <artifactId>object-cache-guava</artifactId>
417                 <version>${yangtools.version}</version>
418             </dependency>
419             <dependency>
420                 <groupId>${project.groupId}</groupId>
421                 <artifactId>object-cache-noop</artifactId>
422                 <version>${yangtools.version}</version>
423             </dependency>
424             <dependency>
425                 <groupId>${project.groupId}</groupId>
426                 <artifactId>util</artifactId>
427                 <version>${yangtools.version}</version>
428             </dependency>
429             <dependency>
430               <groupId>org.opendaylight.yangtools.model</groupId>
431               <artifactId>opendaylight-l2-types</artifactId>
432               <version>${opendaylight.l2.types.version}</version>
433             </dependency>
434             <dependency>
435               <groupId>org.opendaylight.yangtools.model</groupId>
436               <artifactId>yang-ext</artifactId>
437               <version>${yang.ext.version}</version>
438             </dependency>
439             <dependency>
440               <groupId>org.opendaylight.yangtools</groupId>
441               <artifactId>binding-type-provider</artifactId>
442               <version>${yangtools.version}</version>
443             </dependency>
444             <dependency>
445               <groupId>org.opendaylight.yangtools</groupId>
446               <artifactId>yang-data-operations</artifactId>
447               <version>${yangtools.version}</version>
448             </dependency>
449             <dependency>
450               <groupId>org.opendaylight.yangtools</groupId>
451               <artifactId>binding-data-codec</artifactId>
452               <version>${yangtools.version}</version>
453             </dependency>
454             <dependency>
455               <groupId>org.opendaylight.yangtools</groupId>
456               <artifactId>features-test</artifactId>
457               <version>${yangtools.version}</version>
458               <scope>test</scope>
459             </dependency>
460         </dependencies>
461     </dependencyManagement>
462
463     <dependencies>
464         <!-- Sonar -->
465         <dependency>
466             <groupId>org.codehaus.sonar-plugins.java</groupId>
467             <artifactId>sonar-jacoco-listeners</artifactId>
468             <version>${sonar-jacoco-listeners.version}</version>
469             <scope>test</scope>
470         </dependency>
471         <dependency>
472             <groupId>org.slf4j</groupId>
473             <artifactId>slf4j-simple</artifactId>
474             <scope>test</scope>
475         </dependency>
476     </dependencies>
477
478     <build>
479         <pluginManagement>
480             <plugins>
481                 <plugin>
482                     <groupId>org.apache.maven.plugins</groupId>
483                     <artifactId>maven-jar-plugin</artifactId>
484                     <version>${maven.jar.version}</version>
485                     <configuration>
486                         <archive>
487                             <!--
488                                  Bundle OSGi Manifest created by maven-bundle-plugin
489                                  into a jar file
490                                  -->
491                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
492                         </archive>
493                     </configuration>
494                 </plugin>
495                 <plugin>
496                     <groupId>org.apache.felix</groupId>
497                     <artifactId>maven-bundle-plugin</artifactId>
498                     <version>${maven.bundle.version}</version>
499                     <extensions>true</extensions>
500                     <executions>
501                         <execution>
502                             <id>bundle-manifest</id>
503                             <phase>process-classes</phase>
504                             <goals>
505                                 <goal>manifest</goal>
506                             </goals>
507                         </execution>
508                     </executions>
509                 </plugin>
510                 <plugin>
511                     <groupId>org.apache.maven.plugins</groupId>
512                     <artifactId>maven-failsafe-plugin</artifactId>
513                     <configuration>
514                         <!-- Specific to generate mapping between tests and covered code -->
515                         <argLine>${jacoco.agent.it.arg}</argLine>
516                         <properties>
517                             <property>
518                                 <name>listener</name>
519                                 <value>org.sonar.java.jacoco.JUnitListener</value>
520                             </property>
521                         </properties>
522                         <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
523                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
524                     </configuration>
525                 </plugin>
526                 <plugin>
527                     <groupId>org.apache.maven.plugins</groupId>
528                     <artifactId>maven-surefire-plugin</artifactId>
529                     <version>${maven.surefire.version}</version>
530                     <configuration>
531                         <!-- Specific to generate mapping between tests and covered code -->
532                         <argLine>${jacoco.agent.ut.arg}</argLine>
533                         <properties>
534                             <property>
535                                 <name>listener</name>
536                                 <value>org.sonar.java.jacoco.JUnitListener</value>
537                             </property>
538                         </properties>
539                     </configuration>
540                 </plugin>
541
542                 <plugin>
543                     <groupId>org.eclipse.m2e</groupId>
544                     <artifactId>lifecycle-mapping</artifactId>
545                     <version>1.0.0</version>
546                     <configuration>
547                         <lifecycleMappingMetadata>
548                             <pluginExecutions>
549                                 <pluginExecution>
550                                     <pluginExecutionFilter>
551                                         <groupId>org.apache.felix</groupId>
552                                         <artifactId>maven-bundle-plugin</artifactId>
553                                         <versionRange>[1.0,)</versionRange>
554                                         <goals>
555                                             <goal>manifest</goal>
556                                         </goals>
557                                     </pluginExecutionFilter>
558                                     <action>
559                                         <execute />
560                                     </action>
561                                 </pluginExecution>
562                                 <pluginExecution>
563                                     <pluginExecutionFilter>
564                                         <groupId>org.apache.maven.plugins</groupId>
565                                         <artifactId>maven-antrun-plugin</artifactId>
566                                         <versionRange>[1.0,)</versionRange>
567                                         <goals>
568                                             <goal>run</goal>
569                                         </goals>
570                                     </pluginExecutionFilter>
571                                     <action>
572                                         <execute/>
573                                     </action>
574                                 </pluginExecution>
575                                 <pluginExecution>
576                                     <pluginExecutionFilter>
577                                         <groupId>org.opendaylight.yangtools</groupId>
578                                         <artifactId>yang-maven-plugin</artifactId>
579                                         <versionRange>[0.5,)</versionRange>
580                                         <goals>
581                                             <goal>generate-sources</goal>
582                                         </goals>
583                                      </pluginExecutionFilter>
584                                      <action>
585                                          <ignore />
586                                      </action>
587                                  </pluginExecution>
588                                  <pluginExecution>
589                                     <pluginExecutionFilter>
590                                         <groupId>org.codehaus.mojo</groupId>
591                                         <artifactId>properties-maven-plugin</artifactId>
592                                         <versionRange>1.0-alpha-2</versionRange>
593                                         <goals>
594                                             <goal>write-project-properties</goal>
595                                         </goals>
596                                      </pluginExecutionFilter>
597                                      <action>
598                                          <ignore />
599                                      </action>
600                                  </pluginExecution>
601                                  <pluginExecution>
602                                     <pluginExecutionFilter>
603                                         <groupId>org.ops4j.pax.exam</groupId>
604                                         <artifactId>maven-paxexam-plugin</artifactId>
605                                         <versionRange>1.2.4</versionRange>
606                                         <goals>
607                                             <goal>generate-depends-file</goal>
608                                         </goals>
609                                      </pluginExecutionFilter>
610                                      <action>
611                                          <ignore />
612                                      </action>
613                                  </pluginExecution>
614                                  <pluginExecution>
615                                     <pluginExecutionFilter>
616                                         <groupId>org.jacoco</groupId>
617                                         <artifactId>jacoco-maven-plugin</artifactId>
618                                         <versionRange>[0.6,)</versionRange>
619                                         <goals>
620                                             <goal>prepare-agent</goal>
621                                         </goals>
622                                      </pluginExecutionFilter>
623                                      <action>
624                                          <ignore/>
625                                      </action>
626                                  </pluginExecution>
627                             </pluginExecutions>
628                         </lifecycleMappingMetadata>
629                     </configuration>
630                 </plugin>
631                 <plugin>
632                     <groupId>org.opendaylight.yangtools</groupId>
633                     <artifactId>yang-maven-plugin</artifactId>
634                     <version>0.7.0-SNAPSHOT</version>
635                     <executions>
636                         <execution>
637                             <goals>
638                                 <goal>generate-sources</goal>
639                             </goals>
640                             <configuration>
641                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
642                                 <codeGenerators>
643                                     <generator>
644                                         <codeGeneratorClass>
645                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
646                                         </codeGeneratorClass>
647                                         <outputBaseDir>
648                                             target/generated-sources/sal
649                                         </outputBaseDir>
650                                     </generator>
651                                     <generator>
652                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
653                                         <outputBaseDir>target/site/restconf</outputBaseDir>
654                                     </generator>
655                                     <generator>
656                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
657                                         <outputBaseDir>target/site/restconf</outputBaseDir>
658                                     </generator>
659                                 </codeGenerators>
660                                 <inspectDependencies>true</inspectDependencies>
661                             </configuration>
662                         </execution>
663                     </executions>
664                     <dependencies>
665                         <dependency>
666                             <groupId>org.opendaylight.yangtools</groupId>
667                             <artifactId>maven-sal-api-gen-plugin</artifactId>
668                             <version>0.7.0-SNAPSHOT</version>
669                             <type>jar</type>
670                         </dependency>
671                     </dependencies>
672                 </plugin>
673                 <plugin>
674                     <groupId>org.ops4j.pax.exam</groupId>
675                     <artifactId>maven-paxexam-plugin</artifactId>
676                     <version>1.2.4</version>
677                     <executions>
678                         <execution>
679                             <id>generate-config</id>
680                             <goals>
681                                 <goal>generate-depends-file</goal>
682                             </goals>
683                         </execution>
684                     </executions>
685                 </plugin>
686                 <plugin>
687                     <groupId>org.apache.maven.plugins</groupId>
688                     <artifactId>maven-javadoc-plugin</artifactId>
689                     <version>${maven.javadoc.version}</version>
690                     <configuration>
691                         <stylesheetfile>stylesheet.css</stylesheetfile>
692                     </configuration>
693                     <executions>
694                         <execution>
695                             <id>attach-javadocs</id>
696                             <goals>
697                                 <goal>jar</goal>
698                             </goals>
699                         </execution>
700                         <execution>
701                             <goals>
702                                 <goal>aggregate</goal>
703                             </goals>
704                             <phase>site</phase>
705                         </execution>
706                     </executions>
707                 </plugin>
708                 <plugin>
709                     <groupId>org.codehaus.mojo</groupId>
710                     <artifactId>build-helper-maven-plugin</artifactId>
711                     <version>1.8</version>
712                     <executions>
713                         <execution>
714                             <phase>generate-sources</phase>
715                             <goals>
716                                 <goal>add-source</goal>
717                             </goals>
718                             <configuration>
719                                 <sources>
720                                     <source>target/generated-sources/parser</source>
721                                     <source>target/generated-sources/sal</source>
722                                     <source>${basedir}/src/main/xtend-gen</source>
723                                 </sources>
724                             </configuration>
725                         </execution>
726                     </executions>
727                 </plugin>
728             </plugins>
729         </pluginManagement>
730
731         <plugins>
732             <!--
733             <plugin>
734                 <groupId>org.apache.maven.plugins</groupId>
735                 <artifactId>maven-enforcer-plugin</artifactId>
736                 <version>1.0</version>
737                 <executions>
738                     <execution>
739                         <id>enforce</id>
740                         <configuration>
741                             <rules>
742                                 <DependencyConvergence />
743                             </rules>
744                         </configuration>
745                         <goals>
746                             <goal>enforce</goal>
747                         </goals>
748                     </execution>
749                 </executions>
750             </plugin>
751             -->
752             <plugin>
753                 <groupId>org.eclipse.xtend</groupId>
754                 <artifactId>xtend-maven-plugin</artifactId>
755                 <version>${xtend.version}</version>
756                 <executions>
757                     <execution>
758                         <goals>
759                             <goal>compile</goal>
760                         </goals>
761                         <configuration>
762                             <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
763                         </configuration>
764                     </execution>
765                 </executions>
766             </plugin>
767             <plugin>
768                 <artifactId>maven-clean-plugin</artifactId>
769                 <version>2.5</version>
770                 <configuration>
771                     <filesets>
772                         <fileset>
773                             <directory>${basedir}/src/main/xtend-gen</directory>
774                             <includes>
775                                 <include>**</include>
776                             </includes>
777                         </fileset>
778                     </filesets>
779                 </configuration>
780             </plugin>
781             <plugin>
782                 <groupId>org.apache.maven.plugins</groupId>
783                 <artifactId>maven-jar-plugin</artifactId>
784             </plugin>
785             <plugin>
786                 <groupId>org.apache.felix</groupId>
787                 <artifactId>maven-bundle-plugin</artifactId>
788             </plugin>
789             <plugin>
790                 <groupId>org.apache.maven.plugins</groupId>
791                 <artifactId>maven-source-plugin</artifactId>
792                 <version>${maven.source.version}</version>
793                 <executions>
794                     <execution>
795                         <id>attach-sources</id>
796                         <goals>
797                             <goal>jar</goal>
798                         </goals>
799                     </execution>
800                 </executions>
801             </plugin>
802             <plugin>
803                 <groupId>org.apache.maven.plugins</groupId>
804                 <artifactId>maven-javadoc-plugin</artifactId>
805             </plugin>
806             <plugin>
807                 <groupId>org.jacoco</groupId>
808                 <artifactId>jacoco-maven-plugin</artifactId>
809                 <version>0.7.2.201409121644</version>
810                 <executions>
811                     <execution>
812                         <id>prepare-ut-agent</id>
813                         <phase>process-test-classes</phase>
814                         <goals>
815                             <goal>prepare-agent</goal>
816                         </goals>
817                         <configuration>
818                             <destFile>${sonar.jacoco.reportPath}</destFile>
819                             <propertyName>jacoco.agent.ut.arg</propertyName>
820                         </configuration>
821                     </execution>
822                     <execution>
823                         <id>prepare-it-agent</id>
824                         <phase>pre-integration-test</phase>
825                         <goals>
826                             <goal>prepare-agent</goal>
827                         </goals>
828                         <configuration>
829                             <destFile>${sonar.jacoco.itReportPath}</destFile>
830                             <propertyName>jacoco.agent.it.arg</propertyName>
831                         </configuration>
832                     </execution>
833                 </executions>
834             </plugin>
835         </plugins>
836     </build>
837
838     <reporting>
839         <plugins>
840             <plugin>
841                 <groupId>org.codehaus.mojo</groupId>
842                 <artifactId>findbugs-maven-plugin</artifactId>
843                 <version>${findbugs.maven.plugin.version}</version>
844                 <configuration>
845                     <effort>Max</effort>
846                     <threshold>Low</threshold>
847                     <goal>site</goal>
848                 </configuration>
849             </plugin>
850             <plugin>
851                 <groupId>org.codehaus.mojo</groupId>
852                 <artifactId>jdepend-maven-plugin</artifactId>
853                 <version>${jdepend.maven.plugin.version}</version>
854             </plugin>
855         </plugins>
856     </reporting>
857
858
859     <!-- Note: we can not use variables for these URLs because we need to
860          be able to download the parent pom from the repository the first 
861          time we go to use it (since it is in a different project).
862          To override the settings, use the "mirror" section of the
863          settings.xml. See http://maven.apache.org/settings.html -->
864     <repositories>
865         <!-- OpenDayLight Repo Mirror -->
866         <repository>
867             <id>opendaylight-mirror</id>
868             <name>opendaylight-mirror</name>
869             <url>http://nexus.opendaylight.org/content/groups/public/</url>
870             <snapshots>
871                 <enabled>false</enabled>
872             </snapshots>
873             <releases>
874                 <enabled>true</enabled>
875                 <updatePolicy>never</updatePolicy>
876             </releases>
877         </repository>
878
879         <!-- OpenDayLight Snapshot artifact -->
880         <repository>
881             <id>opendaylight-snapshot</id>
882             <name>opendaylight-snapshot</name>
883             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
884             <snapshots>
885                 <enabled>true</enabled>
886             </snapshots>
887             <releases>
888                 <enabled>false</enabled>
889             </releases>
890         </repository>
891     </repositories>
892 </project>