Use same maven-compiler-plugin version 2.5.1 in all poms.
[controller.git] / opendaylight / config / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2          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.1-SNAPSHOT</version>
9         <relativePath>../commons/opendaylight</relativePath>
10     </parent>
11
12
13     <version>0.2.2-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-util</module>
24         <module>config-persister-api</module>
25         <module>config-persister-file-adapter</module>
26         <module>yang-jmx-generator</module>
27         <module>yang-jmx-generator-plugin</module>
28         <module>yang-jmx-generator-it</module>
29         <module>yang-store-api</module>
30         <module>yang-store-impl</module>
31         <module>yang-test</module>
32         <module>logback-config</module>
33     </modules>
34     <properties>
35         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36         <java.version.source>1.7</java.version.source>
37         <java.version.target>1.7</java.version.target>
38         <junit.version>4.10</junit.version>
39         <maven.bundle.version>2.3.7</maven.bundle.version>
40         <osgi.version>5.0.0</osgi.version>
41         <jacoco.version>0.6.2.201302030002</jacoco.version>
42         <slf4j.version>1.7.2</slf4j.version>
43         <jolokia.version>1.1.1</jolokia.version>
44         <opendaylight.yang.version>0.5.9-SNAPSHOT</opendaylight.yang.version>
45         <opendaylight.binding.version>0.6.0-SNAPSHOT</opendaylight.binding.version>
46         <opendaylight.yangtools.version>0.1.1-SNAPSHOT</opendaylight.yangtools.version>
47         <jmxGeneratorPath>${project.build.directory}/generated-sources/config</jmxGeneratorPath>
48     </properties>
49
50     <dependencies>
51         <dependency>
52             <groupId>junit</groupId>
53             <artifactId>junit</artifactId>
54             <scope>test</scope>
55         </dependency>
56         <dependency>
57             <groupId>ch.qos.logback</groupId>
58             <artifactId>logback-classic</artifactId>
59             <version>${logback.version}</version>
60             <scope>test</scope>
61         </dependency>
62     </dependencies>
63
64     <dependencyManagement>
65         <dependencies>
66             <dependency>
67                 <groupId>org.slf4j</groupId>
68                 <artifactId>slf4j-api</artifactId>
69                 <version>${slf4j.version}</version>
70             </dependency>
71             <dependency>
72                 <groupId>org.osgi</groupId>
73                 <artifactId>org.osgi.core</artifactId>
74                 <version>${osgi.version}</version>
75             </dependency>
76             <dependency>
77                 <groupId>com.google.code.findbugs</groupId>
78                 <artifactId>jsr305</artifactId>
79                 <version>2.0.1</version>
80             </dependency>
81             <dependency>
82                 <groupId>commons-io</groupId>
83                 <artifactId>commons-io</artifactId>
84                 <version>2.4</version>
85             </dependency>
86             <dependency>
87                 <groupId>com.google.guava</groupId>
88                 <artifactId>guava</artifactId>
89                 <version>14.0.1</version>
90             </dependency>
91             <dependency>
92                 <groupId>org.jolokia</groupId>
93                 <artifactId>jolokia-core</artifactId>
94                 <version>${jolokia.version}</version>
95             </dependency>
96             <dependency>
97                 <groupId>org.jolokia</groupId>
98                 <artifactId>jolokia-jvm</artifactId>
99                 <version>${jolokia.version}</version>
100                 <classifier>agent</classifier>
101             </dependency>
102             <dependency>
103                 <groupId>org.jolokia</groupId>
104                 <artifactId>jolokia-client-java</artifactId>
105                 <version>${jolokia.version}</version>
106             </dependency>
107             <dependency>
108                 <groupId>junit</groupId>
109                 <artifactId>junit</artifactId>
110                 <version>${junit.version}</version>
111             </dependency>
112             <dependency>
113                 <groupId>org.apache.commons</groupId>
114                 <artifactId>commons-lang3</artifactId>
115                 <version>${commons.lang.version}</version>
116             </dependency>
117
118             <dependency>
119                 <groupId>${project.groupId}</groupId>
120                 <artifactId>config-api</artifactId>
121                 <version>${config.version}</version>
122             </dependency>
123
124             <dependency>
125                 <groupId>${project.groupId}</groupId>
126                 <artifactId>config-util</artifactId>
127                 <version>${config.version}</version>
128             </dependency>
129             <dependency>
130                 <groupId>${project.groupId}</groupId>
131                 <artifactId>config-util</artifactId>
132                 <version>${config.version}</version>
133                 <type>test-jar</type>
134             </dependency>
135             <dependency>
136                 <groupId>${project.groupId}</groupId>
137                 <artifactId>config-manager</artifactId>
138                 <version>${config.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>${project.groupId}</groupId>
142                 <artifactId>config-manager</artifactId>
143                 <version>${config.version}</version>
144                 <type>test-jar</type>
145             </dependency>
146             <dependency>
147                 <groupId>${project.groupId}</groupId>
148                 <artifactId>config-persister-api</artifactId>
149                 <version>${config.version}</version>
150             </dependency>
151             <dependency>
152                 <groupId>org.opendaylight.bgpcep</groupId>
153                 <artifactId>mockito-configuration</artifactId>
154                 <version>${bgpcep.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.yangtools</groupId>
158                 <artifactId>binding-generator-spi</artifactId>
159                 <version>${opendaylight.binding.version}</version>
160             </dependency>
161             <dependency>
162                 <groupId>org.opendaylight.yangtools</groupId>
163                 <artifactId>binding-generator-util</artifactId>
164                 <version>${opendaylight.binding.version}</version>
165             </dependency>
166             <dependency>
167                 <groupId>org.opendaylight.yangtools</groupId>
168                 <artifactId>yang-parser-impl</artifactId>
169                 <version>${opendaylight.yang.version}</version>
170             </dependency>
171             <dependency>
172                 <groupId>org.opendaylight.yangtools</groupId>
173                 <artifactId>binding-generator-impl</artifactId>
174                 <version>${opendaylight.binding.version}</version>
175             </dependency>
176             <dependency>
177                 <groupId>${project.groupId}</groupId>
178                 <artifactId>yang-test</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             </dependency>
186             <dependency>
187                 <groupId>org.opendaylight.controller</groupId>
188                 <artifactId>yang-jmx-generator</artifactId>
189                 <version>${config.version}</version>
190                 <type>test-jar</type>
191             </dependency>
192             <dependency>
193                 <groupId>org.opendaylight.yangtools</groupId>
194                 <artifactId>binding-type-provider</artifactId>
195                 <version>${opendaylight.binding.version}</version>
196             </dependency>
197             <dependency>
198                 <groupId>org.opendaylight.yangtools</groupId>
199                 <artifactId>yang-maven-plugin-spi</artifactId>
200                 <version>${opendaylight.yang.version}</version>
201             </dependency>
202             <dependency>
203                 <groupId>${project.groupId}</groupId>
204                 <artifactId>yang-store-api</artifactId>
205                 <version>${config.version}</version>
206             </dependency>
207         </dependencies>
208     </dependencyManagement>
209
210
211     <build>
212         <plugins>
213             <plugin>
214                 <groupId>org.apache.maven.plugins</groupId>
215                 <artifactId>maven-compiler-plugin</artifactId>
216             </plugin>
217             <plugin>
218                 <groupId>org.jacoco</groupId>
219                 <artifactId>jacoco-maven-plugin</artifactId>
220                 <version>${jacoco.version}</version>
221                 <executions>
222                     <execution>
223                         <goals>
224                             <goal>prepare-agent</goal>
225                         </goals>
226                     </execution>
227                     <execution>
228                         <id>report</id>
229                         <phase>prepare-package</phase>
230                         <goals>
231                             <goal>check</goal>
232                             <goal>report</goal>
233                         </goals>
234                         <configuration>
235                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
236                             <haltOnFailure>false</haltOnFailure>
237                             <check>
238                                 <classRatio>80</classRatio>
239                             </check>
240                         </configuration>
241                     </execution>
242                 </executions>
243             </plugin>
244             <plugin>
245                 <groupId>org.apache.maven.plugins</groupId>
246                 <artifactId>maven-surefire-plugin</artifactId>
247             </plugin>
248             <plugin>
249                 <groupId>org.codehaus.mojo</groupId>
250                 <artifactId>build-helper-maven-plugin</artifactId>
251             </plugin>
252         </plugins>
253
254
255
256         <pluginManagement>
257             <plugins>
258                 <plugin>
259                     <groupId>org.opendaylight.yangtools</groupId>
260                     <artifactId>yang-maven-plugin</artifactId>
261                     <version>${opendaylight.yang.version}</version>
262                     <executions>
263                         <execution>
264                             <goals>
265                                 <goal>generate-sources</goal>
266                             </goals>
267                             <configuration>
268                                 <codeGenerators>
269                                     <generator>
270                                         <codeGeneratorClass>
271                                             org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator
272                                         </codeGeneratorClass>
273                                         <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
274                                         <additionalConfiguration>
275                                             <namespaceToPackage1>
276                                                 urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang
277                                             </namespaceToPackage1>
278                                         </additionalConfiguration>
279                                     </generator>
280                                 </codeGenerators>
281                                 <inspectDependencies>true</inspectDependencies>
282                             </configuration>
283                         </execution>
284                     </executions>
285                     <dependencies>
286                         <dependency>
287                             <groupId>org.opendaylight.controller</groupId>
288                             <artifactId>yang-jmx-generator-plugin</artifactId>
289                             <version>${config.version}</version>
290                         </dependency>
291                     </dependencies>
292                 </plugin>
293                 <!-- tell eclipse about generated source folders -->
294                 <plugin>
295                     <groupId>org.codehaus.mojo</groupId>
296                     <artifactId>build-helper-maven-plugin</artifactId>
297                     <version>1.8</version>
298                     <executions>
299                         <execution>
300                             <id>add-source</id>
301                             <phase>generate-sources</phase>
302                             <goals>
303                                 <goal>add-source</goal>
304                             </goals>
305                             <configuration>
306                                 <sources>
307                                     <source>${jmxGeneratorPath}</source>
308                                 </sources>
309                             </configuration>
310                         </execution>
311                     </executions>
312                 </plugin>
313                 <plugin>
314                     <groupId>org.apache.maven.plugins</groupId>
315                     <artifactId>maven-jar-plugin</artifactId>
316                     <version>2.4</version>
317                     <executions>
318                         <execution>
319                             <phase>package</phase>
320                             <goals>
321                                 <goal>test-jar</goal>
322                             </goals>
323                         </execution>
324                     </executions>
325                 </plugin>
326                 <plugin>
327                     <groupId>org.apache.felix</groupId>
328                     <artifactId>maven-bundle-plugin</artifactId>
329                     <version>${maven.bundle.version}</version>
330                     <extensions>true</extensions>
331                     <configuration>
332                         <instructions>
333                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
334                         </instructions>
335                     </configuration>
336                 </plugin>
337                 <plugin>
338                     <groupId>org.apache.maven.plugins</groupId>
339                     <artifactId>maven-surefire-plugin</artifactId>
340                     <version>2.14.1</version>
341                     <configuration>
342                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
343                         <parallel>classes</parallel>
344                         <forkCount>1C</forkCount>
345                         <reuseForks>false</reuseForks>
346                         <perCoreThreadCount>true</perCoreThreadCount>
347                         <threadCount>2</threadCount>
348                     </configuration>
349                 </plugin>
350                 <plugin>
351                     <groupId>org.apache.maven.plugins</groupId>
352                     <artifactId>maven-antrun-plugin</artifactId>
353                     <version>1.3</version>
354                 </plugin>
355                 <plugin>
356                     <groupId>org.codehaus.groovy.maven</groupId>
357                     <artifactId>gmaven-plugin</artifactId>
358                     <version>1.0</version>
359                 </plugin>
360                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
361                 <plugin>
362                     <groupId>org.eclipse.m2e</groupId>
363                     <artifactId>lifecycle-mapping</artifactId>
364                     <version>1.0.0</version>
365                     <configuration>
366                         <lifecycleMappingMetadata>
367                             <pluginExecutions>
368                                 <pluginExecution>
369                                     <pluginExecutionFilter>
370                                         <groupId>
371                                             org.opendaylight.yangtools
372                                         </groupId>
373                                         <artifactId>
374                                             yang-maven-plugin
375                                         </artifactId>
376                                         <versionRange>
377                                             [0.5.7-SNAPSHOT,)
378                                         </versionRange>
379                                         <goals>
380                                             <goal>
381                                                 generate-sources
382                                             </goal>
383                                         </goals>
384                                     </pluginExecutionFilter>
385                                     <action>
386                                         <ignore></ignore>
387                                     </action>
388                                 </pluginExecution>
389                             </pluginExecutions>
390                         </lifecycleMappingMetadata>
391                     </configuration>
392                 </plugin>
393             </plugins>
394         </pluginManagement>
395     </build>
396
397     <pluginRepositories>
398         <pluginRepository>
399             <id>nexus.opendaylight.org</id>
400             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.release</url>
401             <releases>
402                 <enabled>true</enabled>
403             </releases>
404             <snapshots>
405                 <updatePolicy>daily</updatePolicy>
406             </snapshots>
407         </pluginRepository>
408     </pluginRepositories>
409
410     <repositories>
411         <repository>
412             <id>opendaylight-snapshot</id>
413             <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot</url>
414             <snapshots>
415                 <updatePolicy>daily</updatePolicy>
416                 <enabled>true</enabled>
417             </snapshots>
418             <releases>
419                 <enabled>false</enabled>
420             </releases>
421         </repository>
422     </repositories>
423 </project>