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