Use odlparent configuration for jacoco
[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.0053.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         <config.version>0.4.0-SNAPSHOT</config.version>
46         <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
47         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
48
49         <features.test.version>1.6.0-SNAPSHOT</features.test.version>
50         <karaf.distro.empty.version>1.6.0-SNAPSHOT</karaf.distro.empty.version>
51         <dlux.version>0.3.0-SNAPSHOT</dlux.version>
52     </properties>
53
54     <dependencyManagement>
55         <dependencies>
56             <dependency>
57                 <groupId>org.opendaylight.openflowplugin</groupId>
58                 <artifactId>openflowplugin-artifacts</artifactId>
59                 <version>${openflowplugin.version}</version>
60                 <scope>import</scope>
61                 <type>pom</type>
62             </dependency>
63
64             <dependency>
65                 <groupId>org.opendaylight.yangtools</groupId>
66                 <artifactId>yangtools-artifacts</artifactId>
67                 <version>${yangtools.version}</version>
68                 <scope>import</scope>
69                 <type>pom</type>
70             </dependency>
71             <dependency>
72                 <groupId>org.opendaylight.controller</groupId>
73                 <artifactId>config-artifacts</artifactId>
74                 <version>${config.version}</version>
75                 <scope>import</scope>
76                 <type>pom</type>
77             </dependency>
78             <dependency>
79                 <groupId>org.opendaylight.controller</groupId>
80                 <artifactId>mdsal-artifacts</artifactId>
81                 <version>${mdsal.version}</version>
82                 <scope>import</scope>
83                 <type>pom</type>
84             </dependency>
85             <dependency>
86                 <groupId>org.opendaylight.openflowjava</groupId>
87                 <artifactId>openflowjava-artifacts</artifactId>
88                 <version>${openflowjava.version}</version>
89                 <scope>import</scope>
90                 <type>pom</type>
91             </dependency>
92             <dependency>
93                 <groupId>org.opendaylight.odlparent</groupId>
94                 <artifactId>features-test</artifactId>
95                 <version>${features.test.version}</version>
96                 <scope>test</scope>
97             </dependency>
98
99             <dependency>
100                 <groupId>org.opendaylight.controller</groupId>
101                 <artifactId>liblldp</artifactId>
102                 <version>${sal.api.version}</version>
103             </dependency>
104
105             <!-- thirdparty -->
106             <dependency>
107                 <groupId>openexi</groupId>
108                 <artifactId>nagasena</artifactId>
109                 <version>${exi.nagasena.version}</version>
110             </dependency>
111             <dependency>
112                 <groupId>openexi</groupId>
113                 <artifactId>nagasena-rta</artifactId>
114                 <version>${exi.nagasena.version}</version>
115             </dependency>
116             <dependency>
117                 <groupId>xml-apis</groupId>
118                 <artifactId>xml-apis</artifactId>
119                 <version>1.4.01</version>
120             </dependency>
121         </dependencies>
122     </dependencyManagement>
123
124     <build>
125         <plugins>
126             <plugin>
127                 <groupId>org.codehaus.mojo</groupId>
128                 <artifactId>build-helper-maven-plugin</artifactId>
129             </plugin>
130         </plugins>
131
132         <pluginManagement>
133             <plugins>
134                 <plugin>
135                     <groupId>org.apache.maven.plugins</groupId>
136                     <artifactId>maven-compiler-plugin</artifactId>
137                     <configuration>
138                         <source>1.7</source>
139                         <target>1.7</target>
140                     </configuration>
141                 </plugin>
142                 <plugin>
143                     <artifactId>maven-clean-plugin</artifactId>
144                     <configuration>
145                         <filesets>
146                             <fileset>
147                                 <directory>${jmxGeneratorPath}</directory>
148                                 <includes>
149                                     <include>**</include>
150                                 </includes>
151                             </fileset>
152                             <fileset>
153                                 <directory>${salGeneratorPath}</directory>
154                                 <includes>
155                                     <include>**</include>
156                                 </includes>
157                             </fileset>
158                         </filesets>
159                     </configuration>
160                 </plugin>
161                 <plugin>
162                     <groupId>org.codehaus.mojo</groupId>
163                     <artifactId>build-helper-maven-plugin</artifactId>
164                     <version>${build.helper.version}</version>
165                     <executions>
166                         <execution>
167                             <id>add-source</id>
168                             <phase>generate-sources</phase>
169                             <goals>
170                                 <goal>add-source</goal>
171                             </goals>
172                             <configuration>
173                                 <sources>
174                                     <source>${jmxGeneratorPath}</source>
175                                     <source>${salGeneratorPath}</source>
176                                 </sources>
177                             </configuration>
178                         </execution>
179                     </executions>
180                 </plugin>
181                 <plugin>
182                     <groupId>org.opendaylight.yangtools</groupId>
183                     <artifactId>yang-maven-plugin</artifactId>
184                     <version>${yangtools.version}</version>
185                 </plugin>
186                 <plugin>
187                     <groupId>org.apache.felix</groupId>
188                     <artifactId>maven-bundle-plugin</artifactId>
189                     <version>${maven.bundle.version}</version>
190                     <extensions>true</extensions>
191                     <configuration>
192                         <instructions>
193                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
194                         </instructions>
195                         <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
196                     </configuration>
197                 </plugin>
198                 <!-- Ignore/Execute plugin execution -->
199                 <plugin>
200                     <groupId>org.eclipse.m2e</groupId>
201                     <artifactId>lifecycle-mapping</artifactId>
202                     <version>1.0.0</version>
203                     <configuration>
204                         <lifecycleMappingMetadata>
205                             <pluginExecutions>
206                                 <pluginExecution>
207                                     <pluginExecutionFilter>
208                                         <groupId>org.codehaus.mojo</groupId>
209                                         <artifactId>properties-maven-plugin</artifactId>
210                                         <versionRange>[0.0,)</versionRange>
211                                         <goals>
212                                             <goal>set-system-properties</goal>
213                                         </goals>
214                                     </pluginExecutionFilter>
215                                     <action>
216                                         <ignore/>
217                                     </action>
218                                 </pluginExecution>
219                                 <pluginExecution>
220                                     <pluginExecutionFilter>
221                                         <groupId>org.jacoco</groupId>
222                                         <artifactId>jacoco-maven-plugin</artifactId>
223                                         <versionRange>[0.0,)</versionRange>
224                                         <goals>
225                                             <goal>prepare-agent</goal>
226                                             <goal>pre-test</goal>
227                                             <goal>post-test</goal>
228                                         </goals>
229                                     </pluginExecutionFilter>
230                                     <action>
231                                         <ignore/>
232                                     </action>
233                                 </pluginExecution>
234                                 <pluginExecution>
235                                     <pluginExecutionFilter>
236                                         <groupId>org.ops4j.pax.exam</groupId>
237                                         <artifactId>maven-paxexam-plugin</artifactId>
238                                         <versionRange>[1.2.4,)</versionRange>
239                                         <goals>
240                                             <goal>generate-depends-file</goal>
241                                         </goals>
242                                     </pluginExecutionFilter>
243                                     <action>
244                                         <execute>
245                                             <runOnIncremental>false</runOnIncremental>
246                                         </execute>
247                                     </action>
248                                 </pluginExecution>
249                                 <pluginExecution>
250                                     <pluginExecutionFilter>
251                                         <groupId>org.apache.maven.plugins</groupId>
252                                         <artifactId>maven-checkstyle-plugin</artifactId>
253                                         <versionRange>[2.0,)</versionRange>
254                                         <goals>
255                                             <goal>check</goal>
256                                         </goals>
257                                     </pluginExecutionFilter>
258                                     <action>
259                                         <ignore/>
260                                     </action>
261                                 </pluginExecution>
262                                 <pluginExecution>
263                                     <pluginExecutionFilter>
264                                         <groupId>org.opendaylight.yangtools</groupId>
265                                         <artifactId>yang-maven-plugin</artifactId>
266                                         <versionRange>[0.5,)</versionRange>
267                                         <goals>
268                                             <goal>generate-sources</goal>
269                                         </goals>
270                                     </pluginExecutionFilter>
271                                     <action>
272                                         <execute/>
273                                     </action>
274                                 </pluginExecution>
275                                 <pluginExecution>
276                                     <pluginExecutionFilter>
277                                         <groupId>org.codehaus.groovy.maven</groupId>
278                                         <artifactId>gmaven-plugin</artifactId>
279                                         <versionRange>1.0</versionRange>
280                                         <goals>
281                                             <goal>execute</goal>
282                                         </goals>
283                                     </pluginExecutionFilter>
284                                     <action>
285                                         <ignore/>
286                                     </action>
287                                 </pluginExecution>
288                                 <pluginExecution>
289                                     <pluginExecutionFilter>
290                                         <groupId>org.apache.maven.plugins</groupId>
291                                         <artifactId>maven-enforcer-plugin</artifactId>
292                                         <versionRange>${enforcer.version}</versionRange>
293                                         <goals>
294                                             <goal>enforce</goal>
295                                         </goals>
296                                     </pluginExecutionFilter>
297                                     <action>
298                                         <ignore/>
299                                     </action>
300                                 </pluginExecution>
301                             </pluginExecutions>
302                         </lifecycleMappingMetadata>
303                     </configuration>
304                 </plugin>
305             </plugins>
306         </pluginManagement>
307     </build>
308
309     <profiles>
310         <profile>
311             <id>findbugsReport</id>
312             <reporting>
313                 <plugins>
314                     <plugin>
315                         <groupId>org.apache.maven.plugins</groupId>
316                         <artifactId>maven-project-info-reports-plugin</artifactId>
317                         <version>2.7</version>
318                         <configuration>
319                             <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
320                             <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
321                         </configuration>
322                         <reportSets>
323                             <reportSet>
324                                 <reports>
325                                     <report>index</report>
326                                     <report>project-team</report>
327                                     <report>license</report>
328                                     <report>mailing-list</report>
329                                     <report>plugin-management</report>
330                                     <report>cim</report>
331                                     <report>issue-tracking</report>
332                                     <report>scm</report>
333                                     <report>summary</report>
334                                 </reports>
335                             </reportSet>
336                         </reportSets>
337                     </plugin>
338                     <plugin>
339                         <groupId>org.codehaus.mojo</groupId>
340                         <artifactId>findbugs-maven-plugin</artifactId>
341                         <version>2.5.2</version>
342                     </plugin>
343                     <plugin>
344                         <groupId>org.apache.maven.plugins</groupId>
345                         <artifactId>maven-pmd-plugin</artifactId>
346                         <version>3.0.1</version>
347                     </plugin>
348                     <plugin>
349                         <groupId>org.apache.maven.plugins</groupId>
350                         <artifactId>maven-jxr-plugin</artifactId>
351                         <version>2.3</version>
352                     </plugin>
353                 </plugins>
354             </reporting>
355         </profile>
356     </profiles>
357 </project>
358