Merge "Fix warnings in TableFeaturesConvertor"
[openflowplugin.git] / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>odlparent</artifactId>
15         <version>1.6.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.openflowplugin</groupId>
21     <artifactId>openflowplugin-parent</artifactId>
22     <version>0.2.0-SNAPSHOT</version>
23     <packaging>pom</packaging>
24
25     <scm>
26         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</connection>
27         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</developerConnection>
28         <url>https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Main</url>
29         <tag>HEAD</tag>
30     </scm>
31
32     <properties>
33         <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
34         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
35         <openflowjava.version>0.7.0-SNAPSHOT</openflowjava.version>
36         <openflowplugin.version>0.2.0-SNAPSHOT</openflowplugin.version>
37         <sal.api.version>0.10.0-SNAPSHOT</sal.api.version>
38         <build.helper.version>1.8</build.helper.version>
39         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
40         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
41         <exi.nagasena.version>0000.0002.0038.0</exi.nagasena.version>
42         <controller.distribution.version>0.3.0-SNAPSHOT</controller.distribution.version>
43         <features.test.version>1.6.0-SNAPSHOT</features.test.version>
44
45         <!-- Sonar config -->
46         <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
47         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48         <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
49         <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
50         <sonar.profile>Sonar way with Findbugs</sonar.profile>
51
52         <config.version>0.4.0-SNAPSHOT</config.version>
53         <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
54         <netconf.version>0.4.0-SNAPSHOT</netconf.version>
55         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
56
57         <features.test.version>1.6.0-SNAPSHOT</features.test.version>
58         <karaf.distro.empty.version>1.6.0-SNAPSHOT</karaf.distro.empty.version>
59         <dlux.version>0.3.0-SNAPSHOT</dlux.version>
60     </properties>
61
62     <dependencyManagement>
63         <dependencies>
64             <dependency>
65                 <groupId>org.opendaylight.openflowplugin</groupId>
66                 <artifactId>openflowplugin-artifacts</artifactId>
67                 <version>${openflowplugin.version}</version>
68                 <scope>import</scope>
69                 <type>pom</type>
70             </dependency>
71
72             <dependency>
73                 <groupId>org.opendaylight.yangtools</groupId>
74                 <artifactId>yangtools-artifacts</artifactId>
75                 <version>${yangtools.version}</version>
76                 <scope>import</scope>
77                 <type>pom</type>
78             </dependency>
79             <dependency>
80                 <groupId>org.opendaylight.controller</groupId>
81                 <artifactId>config-artifacts</artifactId>
82                 <version>${config.version}</version>
83                 <scope>import</scope>
84                 <type>pom</type>
85             </dependency>
86             <dependency>
87                 <groupId>org.opendaylight.controller</groupId>
88                 <artifactId>mdsal-artifacts</artifactId>
89                 <version>${mdsal.version}</version>
90                 <scope>import</scope>
91                 <type>pom</type>
92             </dependency>
93             <dependency>
94                 <groupId>org.opendaylight.controller</groupId>
95                 <artifactId>netconf-artifacts</artifactId>
96                 <version>${netconf.version}</version>
97                 <scope>import</scope>
98                 <type>pom</type>
99             </dependency>
100             <dependency>
101                 <groupId>org.opendaylight.openflowjava</groupId>
102                 <artifactId>openflowjava-artifacts</artifactId>
103                 <version>${openflowjava.version}</version>
104                 <scope>import</scope>
105                 <type>pom</type>
106             </dependency>
107             <dependency>
108                 <groupId>org.opendaylight.odlparent</groupId>
109                 <artifactId>features-test</artifactId>
110                 <version>${features.test.version}</version>
111                 <scope>test</scope>
112             </dependency>
113
114             <dependency>
115                 <groupId>org.opendaylight.controller</groupId>
116                 <artifactId>liblldp</artifactId>
117                 <version>${sal.api.version}</version>
118             </dependency>
119
120             <!-- thirdparty -->
121             <dependency>
122                 <groupId>org.openexi</groupId>
123                 <artifactId>nagasena</artifactId>
124                 <version>${exi.nagasena.version}</version>
125             </dependency>
126             <dependency>
127                 <groupId>org.openexi</groupId>
128                 <artifactId>nagasena-rta</artifactId>
129                 <version>${exi.nagasena.version}</version>
130             </dependency>
131             <dependency>
132                 <groupId>xml-apis</groupId>
133                 <artifactId>xml-apis</artifactId>
134                 <version>1.4.01</version>
135             </dependency>
136         </dependencies>
137     </dependencyManagement>
138
139     <dependencies>
140         <!-- Sonar -->
141         <dependency>
142             <groupId>org.codehaus.sonar-plugins.java</groupId>
143             <artifactId>sonar-jacoco-listeners</artifactId>
144             <version>${sonar-jacoco-listeners.version}</version>
145             <scope>test</scope>
146         </dependency>
147     </dependencies>
148
149     <build>
150         <plugins>
151             <plugin>
152                 <groupId>org.codehaus.mojo</groupId>
153                 <artifactId>build-helper-maven-plugin</artifactId>
154             </plugin>
155             <plugin>
156                 <groupId>org.jacoco</groupId>
157                 <artifactId>jacoco-maven-plugin</artifactId>
158                 <executions>
159                     <execution>
160                         <id>prepare-ut-agent</id>
161                         <phase>process-test-classes</phase>
162                         <goals>
163                             <goal>prepare-agent</goal>
164                         </goals>
165                         <configuration>
166                             <destFile>${sonar.jacoco.reportPath}</destFile>
167                             <propertyName>jacoco.agent.ut.arg</propertyName>
168                         </configuration>
169                     </execution>
170                     <execution>
171                         <id>prepare-it-agent</id>
172                         <phase>pre-integration-test</phase>
173                         <goals>
174                             <goal>prepare-agent</goal>
175                         </goals>
176                         <configuration>
177                             <destFile>${sonar.jacoco.itReportPath}</destFile>
178                             <propertyName>jacoco.agent.it.arg</propertyName>
179                         </configuration>
180                     </execution>
181                 </executions>
182
183                 <configuration>
184                     <includes>
185                         <include>org.opendaylight.openflowplugin.*</include>
186                     </includes>
187                 </configuration>
188
189             </plugin>
190         </plugins>
191
192         <pluginManagement>
193             <plugins>
194                 <plugin>
195                     <groupId>org.apache.maven.plugins</groupId>
196                     <artifactId>maven-compiler-plugin</artifactId>
197                     <configuration>
198                         <source>1.7</source>
199                         <target>1.7</target>
200                     </configuration>
201                 </plugin>
202                 <plugin>
203                     <artifactId>maven-clean-plugin</artifactId>
204                     <configuration>
205                         <filesets>
206                             <fileset>
207                                 <directory>${jmxGeneratorPath}</directory>
208                                 <includes>
209                                     <include>**</include>
210                                 </includes>
211                             </fileset>
212                             <fileset>
213                                 <directory>${salGeneratorPath}</directory>
214                                 <includes>
215                                     <include>**</include>
216                                 </includes>
217                             </fileset>
218                         </filesets>
219                     </configuration>
220                 </plugin>
221                 <plugin>
222                     <groupId>org.codehaus.mojo</groupId>
223                     <artifactId>build-helper-maven-plugin</artifactId>
224                     <version>${build.helper.version}</version>
225                     <executions>
226                         <execution>
227                             <id>add-source</id>
228                             <phase>generate-sources</phase>
229                             <goals>
230                                 <goal>add-source</goal>
231                             </goals>
232                             <configuration>
233                                 <sources>
234                                     <source>${jmxGeneratorPath}</source>
235                                     <source>${salGeneratorPath}</source>
236                                 </sources>
237                             </configuration>
238                         </execution>
239                     </executions>
240                 </plugin>
241                 <plugin>
242                     <groupId>org.opendaylight.yangtools</groupId>
243                     <artifactId>yang-maven-plugin</artifactId>
244                     <version>${yangtools.version}</version>
245                 </plugin>
246                 <plugin>
247                     <groupId>org.apache.felix</groupId>
248                     <artifactId>maven-bundle-plugin</artifactId>
249                     <version>${maven.bundle.version}</version>
250                     <extensions>true</extensions>
251                     <configuration>
252                         <instructions>
253                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
254                         </instructions>
255                         <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
256                     </configuration>
257                 </plugin>
258                 <!-- Ignore/Execute plugin execution -->
259                 <plugin>
260                     <groupId>org.eclipse.m2e</groupId>
261                     <artifactId>lifecycle-mapping</artifactId>
262                     <version>1.0.0</version>
263                     <configuration>
264                         <lifecycleMappingMetadata>
265                             <pluginExecutions>
266                                 <pluginExecution>
267                                     <pluginExecutionFilter>
268                                         <groupId>org.codehaus.mojo</groupId>
269                                         <artifactId>properties-maven-plugin</artifactId>
270                                         <versionRange>[0.0,)</versionRange>
271                                         <goals>
272                                             <goal>set-system-properties</goal>
273                                         </goals>
274                                     </pluginExecutionFilter>
275                                     <action>
276                                         <ignore/>
277                                     </action>
278                                 </pluginExecution>
279                                 <pluginExecution>
280                                     <pluginExecutionFilter>
281                                         <groupId>org.jacoco</groupId>
282                                         <artifactId>jacoco-maven-plugin</artifactId>
283                                         <versionRange>[0.0,)</versionRange>
284                                         <goals>
285                                             <goal>prepare-agent</goal>
286                                             <goal>pre-test</goal>
287                                             <goal>post-test</goal>
288                                         </goals>
289                                     </pluginExecutionFilter>
290                                     <action>
291                                         <ignore/>
292                                     </action>
293                                 </pluginExecution>
294                                 <pluginExecution>
295                                     <pluginExecutionFilter>
296                                         <groupId>org.ops4j.pax.exam</groupId>
297                                         <artifactId>maven-paxexam-plugin</artifactId>
298                                         <versionRange>[1.2.4,)</versionRange>
299                                         <goals>
300                                             <goal>generate-depends-file</goal>
301                                         </goals>
302                                     </pluginExecutionFilter>
303                                     <action>
304                                         <execute>
305                                             <runOnIncremental>false</runOnIncremental>
306                                         </execute>
307                                     </action>
308                                 </pluginExecution>
309                                 <pluginExecution>
310                                     <pluginExecutionFilter>
311                                         <groupId>org.apache.maven.plugins</groupId>
312                                         <artifactId>maven-checkstyle-plugin</artifactId>
313                                         <versionRange>[2.0,)</versionRange>
314                                         <goals>
315                                             <goal>check</goal>
316                                         </goals>
317                                     </pluginExecutionFilter>
318                                     <action>
319                                         <ignore/>
320                                     </action>
321                                 </pluginExecution>
322                                 <pluginExecution>
323                                     <pluginExecutionFilter>
324                                         <groupId>org.opendaylight.yangtools</groupId>
325                                         <artifactId>yang-maven-plugin</artifactId>
326                                         <versionRange>[0.5,)</versionRange>
327                                         <goals>
328                                             <goal>generate-sources</goal>
329                                         </goals>
330                                     </pluginExecutionFilter>
331                                     <action>
332                                         <execute/>
333                                     </action>
334                                 </pluginExecution>
335                                 <pluginExecution>
336                                     <pluginExecutionFilter>
337                                         <groupId>org.codehaus.groovy.maven</groupId>
338                                         <artifactId>gmaven-plugin</artifactId>
339                                         <versionRange>1.0</versionRange>
340                                         <goals>
341                                             <goal>execute</goal>
342                                         </goals>
343                                     </pluginExecutionFilter>
344                                     <action>
345                                         <ignore/>
346                                     </action>
347                                 </pluginExecution>
348                                 <pluginExecution>
349                                     <pluginExecutionFilter>
350                                         <groupId>org.apache.maven.plugins</groupId>
351                                         <artifactId>maven-enforcer-plugin</artifactId>
352                                         <versionRange>${enforcer.version}</versionRange>
353                                         <goals>
354                                             <goal>enforce</goal>
355                                         </goals>
356                                     </pluginExecutionFilter>
357                                     <action>
358                                         <ignore/>
359                                     </action>
360                                 </pluginExecution>
361                             </pluginExecutions>
362                         </lifecycleMappingMetadata>
363                     </configuration>
364                 </plugin>
365                 <plugin>
366                     <groupId>org.apache.maven.plugins</groupId>
367                     <artifactId>maven-failsafe-plugin</artifactId>
368                     <configuration>
369                         <!-- Specific to generate mapping between tests and covered code -->
370                         <argLine>${jacoco.agent.it.arg}</argLine>
371                         <properties>
372                             <property>
373                                 <name>listener</name>
374                                 <value>org.sonar.java.jacoco.JUnitListener</value>
375                             </property>
376                         </properties>
377                         <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
378                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
379                     </configuration>
380                 </plugin>
381                 <plugin>
382                     <groupId>org.apache.maven.plugins</groupId>
383                     <artifactId>maven-surefire-plugin</artifactId>
384                     <configuration>
385                         <!-- Specific to generate mapping between tests and covered code -->
386                         <argLine>${jacoco.agent.ut.arg}</argLine>
387                         <properties>
388                             <property>
389                                 <name>listener</name>
390                                 <value>org.sonar.java.jacoco.JUnitListener</value>
391                             </property>
392                         </properties>
393                     </configuration>
394                 </plugin>
395             </plugins>
396         </pluginManagement>
397     </build>
398
399     <profiles>
400         <profile>
401             <id>findbugsReport</id>
402             <reporting>
403                 <plugins>
404                     <plugin>
405                         <groupId>org.apache.maven.plugins</groupId>
406                         <artifactId>maven-project-info-reports-plugin</artifactId>
407                         <version>2.7</version>
408                         <configuration>
409                             <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
410                             <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
411                         </configuration>
412                         <reportSets>
413                             <reportSet>
414                                 <reports>
415                                     <report>index</report>
416                                     <report>project-team</report>
417                                     <report>license</report>
418                                     <report>mailing-list</report>
419                                     <report>plugin-management</report>
420                                     <report>cim</report>
421                                     <report>issue-tracking</report>
422                                     <report>scm</report>
423                                     <report>summary</report>
424                                 </reports>
425                             </reportSet>
426                         </reportSets>
427                     </plugin>
428                     <plugin>
429                         <groupId>org.codehaus.mojo</groupId>
430                         <artifactId>findbugs-maven-plugin</artifactId>
431                         <version>2.5.2</version>
432                     </plugin>
433                     <plugin>
434                         <groupId>org.apache.maven.plugins</groupId>
435                         <artifactId>maven-pmd-plugin</artifactId>
436                         <version>3.0.1</version>
437                     </plugin>
438                     <plugin>
439                         <groupId>org.apache.maven.plugins</groupId>
440                         <artifactId>maven-jxr-plugin</artifactId>
441                         <version>2.3</version>
442                     </plugin>
443                 </plugins>
444             </reporting>
445         </profile>
446     </profiles>
447 </project>
448