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