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