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