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