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