Unify jacoco versions to 0.6.2.201302030002
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.controller</groupId>
7         <artifactId>commons.opendaylight</artifactId>
8         <version>1.4.2-SNAPSHOT</version>
9         <relativePath>../commons/opendaylight</relativePath>
10     </parent>
11
12
13     <version>0.2.5-SNAPSHOT</version>
14     <artifactId>config-subsystem</artifactId>
15     <packaging>pom</packaging>
16     <name>${project.artifactId}</name>
17     <prerequisites>
18         <maven>3.0.4</maven>
19     </prerequisites>
20     <modules>
21         <module>config-api</module>
22         <module>config-manager</module>
23         <module>config-plugin-parent</module>
24         <module>config-util</module>
25         <module>config-persister-api</module>
26         <module>config-persister-file-xml-adapter</module>
27         <module>yang-jmx-generator</module>
28         <module>yang-jmx-generator-plugin</module>
29         <module>yang-test</module>
30         <module>logback-config</module>
31         <module>threadpool-config-api</module>
32         <module>netty-config-api</module>
33         <module>threadpool-config-impl</module>
34         <module>netty-threadgroup-config</module>
35         <module>netty-event-executor-config</module>
36         <module>netty-timer-config</module>
37         <module>config-persister-directory-xml-adapter</module>
38         <module>yang-test-plugin</module>
39         <module>shutdown-api</module>
40         <module>shutdown-impl</module>
41         <module>config-module-archetype</module>
42     </modules>
43
44     <profiles>
45       <profile>
46         <id>integrationtests</id>
47         <activation>
48           <activeByDefault>false</activeByDefault>
49         </activation>
50         <modules>
51           <module>yang-jmx-generator-it</module>
52         </modules>
53       </profile>
54     </profiles>
55
56     <properties>
57         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
58         <java.version.source>1.7</java.version.source>
59         <java.version.target>1.7</java.version.target>
60         <junit.version>4.10</junit.version>
61         <maven.bundle.version>2.4.0</maven.bundle.version>
62         <osgi.version>5.0.0</osgi.version>
63         <slf4j.version>1.7.2</slf4j.version>
64     </properties>
65
66     <dependencies>
67         <dependency>
68             <groupId>junit</groupId>
69             <artifactId>junit</artifactId>
70             <scope>test</scope>
71         </dependency>
72         <dependency>
73             <groupId>ch.qos.logback</groupId>
74             <artifactId>logback-classic</artifactId>
75             <scope>test</scope>
76         </dependency>
77     </dependencies>
78
79     <dependencyManagement>
80         <dependencies>
81             <dependency>
82                 <groupId>org.slf4j</groupId>
83                 <artifactId>slf4j-api</artifactId>
84                 <version>${slf4j.version}</version>
85             </dependency>
86             <dependency>
87                 <groupId>org.osgi</groupId>
88                 <artifactId>org.osgi.core</artifactId>
89                 <version>${osgi.version}</version>
90             </dependency>
91             <dependency>
92                 <groupId>commons-io</groupId>
93                 <artifactId>commons-io</artifactId>
94                 <version>2.4</version>
95             </dependency>
96             <dependency>
97                 <groupId>com.google.guava</groupId>
98                 <artifactId>guava</artifactId>
99                 <version>14.0.1</version>
100             </dependency>
101             <dependency>
102                 <groupId>junit</groupId>
103                 <artifactId>junit</artifactId>
104                 <version>${junit.version}</version>
105             </dependency>
106             <dependency>
107                 <groupId>org.apache.commons</groupId>
108                 <artifactId>commons-lang3</artifactId>
109                 <version>${commons.lang.version}</version>
110             </dependency>
111
112             <dependency>
113                 <groupId>${project.groupId}</groupId>
114                 <artifactId>config-api</artifactId>
115                 <version>${config.version}</version>
116             </dependency>
117
118             <dependency>
119                 <groupId>${project.groupId}</groupId>
120                 <artifactId>config-util</artifactId>
121                 <version>${config.version}</version>
122             </dependency>
123             <dependency>
124                 <groupId>${project.groupId}</groupId>
125                 <artifactId>config-util</artifactId>
126                 <version>${config.version}</version>
127                 <type>test-jar</type>
128             </dependency>
129             <dependency>
130                 <groupId>${project.groupId}</groupId>
131                 <artifactId>config-manager</artifactId>
132                 <version>${config.version}</version>
133             </dependency>
134             <dependency>
135                 <groupId>${project.groupId}</groupId>
136                 <artifactId>config-manager</artifactId>
137                 <version>${config.version}</version>
138                 <type>test-jar</type>
139             </dependency>
140             <dependency>
141                 <groupId>${project.groupId}</groupId>
142                 <artifactId>config-persister-api</artifactId>
143                 <version>${config.version}</version>
144             </dependency>
145             <dependency>
146                 <groupId>${project.groupId}</groupId>
147                 <artifactId>config-persister-api</artifactId>
148                 <version>${config.version}</version>
149                 <type>test-jar</type>
150             </dependency>
151             <dependency>
152                 <groupId>org.opendaylight.yangtools</groupId>
153                 <artifactId>binding-generator-spi</artifactId>
154                 <version>${yangtools.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.yangtools</groupId>
158                 <artifactId>binding-generator-util</artifactId>
159                 <version>${yangtools.version}</version>
160             </dependency>
161             <dependency>
162                 <groupId>org.opendaylight.yangtools</groupId>
163                 <artifactId>yang-parser-impl</artifactId>
164                 <version>${yangtools.version}</version>
165             </dependency>
166             <dependency>
167                 <groupId>org.opendaylight.yangtools</groupId>
168                 <artifactId>binding-generator-impl</artifactId>
169                 <version>${yangtools.version}</version>
170             </dependency>
171             <dependency>
172                 <groupId>${project.groupId}</groupId>
173                 <artifactId>yang-test</artifactId>
174                 <version>${config.version}</version>
175             </dependency>
176             <dependency>
177                 <groupId>org.opendaylight.controller</groupId>
178                 <artifactId>yang-jmx-generator</artifactId>
179                 <version>${config.version}</version>
180             </dependency>
181             <dependency>
182                 <groupId>org.opendaylight.controller</groupId>
183                 <artifactId>yang-jmx-generator</artifactId>
184                 <version>${config.version}</version>
185                 <type>test-jar</type>
186             </dependency>
187             <dependency>
188                 <groupId>org.opendaylight.yangtools</groupId>
189                 <artifactId>binding-type-provider</artifactId>
190                 <version>${yangtools.version}</version>
191             </dependency>
192             <dependency>
193                 <groupId>org.opendaylight.yangtools</groupId>
194                 <artifactId>yang-maven-plugin-spi</artifactId>
195                 <version>${yangtools.version}</version>
196             </dependency>
197
198             <dependency>
199                 <groupId>org.opendaylight.controller</groupId>
200                 <artifactId>shutdown-api</artifactId>
201                 <version>${config.version}</version>
202             </dependency>
203
204             <!-- MD-SAL -->
205             <dependency>
206                 <groupId>org.opendaylight.yangtools</groupId>
207                 <artifactId>yang-binding</artifactId>
208                 <version>${yangtools.version}</version>
209             </dependency>
210             <dependency>
211                 <groupId>org.opendaylight.yangtools</groupId>
212                 <artifactId>yang-common</artifactId>
213                 <version>${yangtools.version}</version>
214             </dependency>
215             <dependency>
216                 <groupId>org.opendaylight.yangtools</groupId>
217                 <artifactId>concepts</artifactId>
218                 <version>${yangtools.version}</version>
219             </dependency>
220         </dependencies>
221     </dependencyManagement>
222
223
224     <build>
225         <plugins>
226             <plugin>
227                 <groupId>org.apache.maven.plugins</groupId>
228                 <artifactId>maven-compiler-plugin</artifactId>
229             </plugin>
230             <plugin>
231                 <groupId>org.jacoco</groupId>
232                 <artifactId>jacoco-maven-plugin</artifactId>
233                 <version>${jacoco.version}</version>
234                 <executions>
235                     <execution>
236                         <goals>
237                             <goal>prepare-agent</goal>
238                         </goals>
239                     </execution>
240                     <execution>
241                         <id>report</id>
242                         <phase>prepare-package</phase>
243                         <goals>
244                             <goal>check</goal>
245                             <goal>report</goal>
246                         </goals>
247                         <configuration>
248                             <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
249                             <haltOnFailure>false</haltOnFailure>
250                             <check>
251                                 <classRatio>80</classRatio>
252                             </check>
253                         </configuration>
254                     </execution>
255                 </executions>
256             </plugin>
257             <plugin>
258                 <groupId>org.apache.maven.plugins</groupId>
259                 <artifactId>maven-surefire-plugin</artifactId>
260             </plugin>
261
262
263         </plugins>
264
265         <pluginManagement>
266             <plugins>
267                 <plugin>
268                     <groupId>org.opendaylight.yangtools</groupId>
269                     <artifactId>yang-maven-plugin</artifactId>
270                     <version>${yangtools.version}</version>
271                     <executions>
272                         <execution>
273                             <id>sal</id>
274                             <goals>
275                                 <goal>generate-sources</goal>
276                             </goals>
277                             <configuration>
278                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
279                                 <codeGenerators>
280                                     <generator>
281                                         <codeGeneratorClass>
282                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
283                                         </codeGeneratorClass>
284                                         <outputBaseDir>
285                                             ${salGeneratorPath}
286                                         </outputBaseDir>
287                                     </generator>
288                                     <generator>
289                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
290                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
291                                     </generator>
292                                 </codeGenerators>
293                                 <inspectDependencies>true</inspectDependencies>
294                             </configuration>
295                         </execution>
296                     </executions>
297                     <dependencies>
298                         <dependency>
299                             <groupId>org.opendaylight.yangtools</groupId>
300                             <artifactId>maven-sal-api-gen-plugin</artifactId>
301                             <version>${yangtools.version}</version>
302                             <type>jar</type>
303                         </dependency>
304                     </dependencies>
305                 </plugin>
306                 <plugin>
307                     <groupId>org.apache.maven.plugins</groupId>
308                     <artifactId>maven-jar-plugin</artifactId>
309                     <version>2.4</version>
310                     <executions>
311                         <execution>
312                             <phase>package</phase>
313                             <goals>
314                                 <goal>test-jar</goal>
315                             </goals>
316                         </execution>
317                     </executions>
318                 </plugin>
319                 <plugin>
320                     <groupId>org.apache.felix</groupId>
321                     <artifactId>maven-bundle-plugin</artifactId>
322                     <version>${maven.bundle.version}</version>
323                     <extensions>true</extensions>
324                     <configuration>
325                         <instructions>
326                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
327                         </instructions>
328                     </configuration>
329                 </plugin>
330                 <plugin>
331                     <groupId>org.apache.maven.plugins</groupId>
332                     <artifactId>maven-surefire-plugin</artifactId>
333                     <version>2.14.1</version>
334                     <configuration>
335                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
336                         <parallel>classes</parallel>
337                         <forkCount>1C</forkCount>
338                         <reuseForks>false</reuseForks>
339                         <perCoreThreadCount>true</perCoreThreadCount>
340                         <threadCount>2</threadCount>
341                     </configuration>
342                 </plugin>
343                 <plugin>
344                     <groupId>org.apache.maven.plugins</groupId>
345                     <artifactId>maven-antrun-plugin</artifactId>
346                     <version>1.3</version>
347                 </plugin>
348                 <plugin>
349                     <groupId>org.codehaus.groovy.maven</groupId>
350                     <artifactId>gmaven-plugin</artifactId>
351                     <version>1.0</version>
352                 </plugin>
353                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
354                 <plugin>
355                     <groupId>org.eclipse.m2e</groupId>
356                     <artifactId>lifecycle-mapping</artifactId>
357                     <version>1.0.0</version>
358                     <configuration>
359                         <lifecycleMappingMetadata>
360                             <pluginExecutions>
361                                 <pluginExecution>
362                                     <pluginExecutionFilter>
363                                         <groupId>
364                                             org.opendaylight.yangtools
365                                         </groupId>
366                                         <artifactId>
367                                             yang-maven-plugin
368                                         </artifactId>
369                                         <versionRange>
370                                             [0.5.7-SNAPSHOT,)
371                                         </versionRange>
372                                         <goals>
373                                             <goal>
374                                                 generate-sources
375                                             </goal>
376                                         </goals>
377                                     </pluginExecutionFilter>
378                                     <action>
379                                         <ignore/>
380                                     </action>
381                                 </pluginExecution>
382                             </pluginExecutions>
383                         </lifecycleMappingMetadata>
384                     </configuration>
385                 </plugin>
386             </plugins>
387         </pluginManagement>
388     </build>
389 </project>