Switch initial config files format to xml and add autodetect adapter for config persi...
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6
7     <parent>
8         <groupId>org.opendaylight.controller</groupId>
9         <artifactId>commons.opendaylight</artifactId>
10         <version>1.4.1-SNAPSHOT</version>
11         <relativePath>../commons/opendaylight</relativePath>
12     </parent>
13
14
15     <version>0.2.3-SNAPSHOT</version>
16     <artifactId>config-subsystem</artifactId>
17     <packaging>pom</packaging>
18     <name>${project.artifactId}</name>
19     <prerequisites>
20         <maven>3.0.4</maven>
21     </prerequisites>
22     <modules>
23         <module>config-api</module>
24         <module>config-manager</module>
25         <module>config-plugin-parent</module>
26         <module>config-util</module>
27         <module>config-persister-api</module>
28         <module>config-persister-file-adapter</module>
29         <module>config-persister-file-xml-adapter</module>
30         <module>yang-jmx-generator</module>
31         <module>yang-jmx-generator-plugin</module>
32         <module>yang-store-api</module>
33         <module>yang-store-impl</module>
34         <module>yang-test</module>
35         <module>logback-config</module>
36         <module>threadpool-config-api</module>
37         <module>netty-config-api</module>
38         <module>threadpool-config-impl</module>
39         <module>netty-threadgroup-config</module>
40         <module>netty-event-executor-config</module>
41         <module>netty-timer-config</module>
42         <module>config-persister-directory-adapter</module>
43         <module>config-persister-directory-xml-adapter</module>
44         <module>config-persister-directory-autodetect-adapter</module>
45         <module>yang-test-plugin</module>
46     </modules>
47
48     <profiles>
49       <profile>
50         <id>integrationtests</id>
51         <activation>
52           <activeByDefault>false</activeByDefault>
53         </activation>
54         <modules>
55           <module>yang-jmx-generator-it</module>
56         </modules>
57       </profile>
58     </profiles>
59
60     <properties>
61         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
62         <java.version.source>1.7</java.version.source>
63         <java.version.target>1.7</java.version.target>
64         <junit.version>4.10</junit.version>
65         <maven.bundle.version>2.4.0</maven.bundle.version>
66         <osgi.version>5.0.0</osgi.version>
67         <jacoco.version>0.6.2.201302030002</jacoco.version>
68         <slf4j.version>1.7.2</slf4j.version>
69         <opendaylight.yang.version>0.5.9-SNAPSHOT</opendaylight.yang.version>
70         <opendaylight.binding.version>0.6.0-SNAPSHOT</opendaylight.binding.version>
71         <opendaylight.yangtools.version>0.1.1-SNAPSHOT</opendaylight.yangtools.version>
72     </properties>
73
74     <dependencies>
75         <dependency>
76             <groupId>junit</groupId>
77             <artifactId>junit</artifactId>
78             <scope>test</scope>
79         </dependency>
80         <dependency>
81             <groupId>ch.qos.logback</groupId>
82             <artifactId>logback-classic</artifactId>
83             <version>${logback.version}</version>
84             <scope>test</scope>
85         </dependency>
86     </dependencies>
87
88     <dependencyManagement>
89         <dependencies>
90             <dependency>
91                 <groupId>org.slf4j</groupId>
92                 <artifactId>slf4j-api</artifactId>
93                 <version>${slf4j.version}</version>
94             </dependency>
95             <dependency>
96                 <groupId>org.osgi</groupId>
97                 <artifactId>org.osgi.core</artifactId>
98                 <version>${osgi.version}</version>
99             </dependency>
100             <dependency>
101                 <groupId>com.google.code.findbugs</groupId>
102                 <artifactId>jsr305</artifactId>
103                 <version>2.0.1</version>
104             </dependency>
105             <dependency>
106                 <groupId>commons-io</groupId>
107                 <artifactId>commons-io</artifactId>
108                 <version>2.4</version>
109             </dependency>
110             <dependency>
111                 <groupId>com.google.guava</groupId>
112                 <artifactId>guava</artifactId>
113                 <version>14.0.1</version>
114             </dependency>
115             <dependency>
116                 <groupId>junit</groupId>
117                 <artifactId>junit</artifactId>
118                 <version>${junit.version}</version>
119             </dependency>
120             <dependency>
121                 <groupId>org.apache.commons</groupId>
122                 <artifactId>commons-lang3</artifactId>
123                 <version>${commons.lang.version}</version>
124             </dependency>
125
126             <dependency>
127                 <groupId>${project.groupId}</groupId>
128                 <artifactId>config-api</artifactId>
129                 <version>${config.version}</version>
130             </dependency>
131
132             <dependency>
133                 <groupId>${project.groupId}</groupId>
134                 <artifactId>config-util</artifactId>
135                 <version>${config.version}</version>
136             </dependency>
137             <dependency>
138                 <groupId>${project.groupId}</groupId>
139                 <artifactId>config-util</artifactId>
140                 <version>${config.version}</version>
141                 <type>test-jar</type>
142             </dependency>
143             <dependency>
144                 <groupId>${project.groupId}</groupId>
145                 <artifactId>config-manager</artifactId>
146                 <version>${config.version}</version>
147             </dependency>
148             <dependency>
149                 <groupId>${project.groupId}</groupId>
150                 <artifactId>config-manager</artifactId>
151                 <version>${config.version}</version>
152                 <type>test-jar</type>
153             </dependency>
154             <dependency>
155                 <groupId>${project.groupId}</groupId>
156                 <artifactId>config-persister-api</artifactId>
157                 <version>${config.version}</version>
158             </dependency>
159             <dependency>
160                 <groupId>${project.groupId}</groupId>
161                 <artifactId>config-persister-api</artifactId>
162                 <version>${config.version}</version>
163                 <type>test-jar</type>
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
222             <!-- MD-SAL -->
223             <dependency>
224                 <groupId>org.opendaylight.yangtools</groupId>
225                 <artifactId>yang-binding</artifactId>
226                 <version>${opendaylight.binding.version}</version>
227             </dependency>
228             <dependency>
229                 <groupId>org.opendaylight.yangtools</groupId>
230                 <artifactId>yang-common</artifactId>
231                 <version>${opendaylight.yang.version}</version>
232             </dependency>
233             <dependency>
234                 <groupId>org.opendaylight.yangtools</groupId>
235                 <artifactId>concepts</artifactId>
236                 <version>${opendaylight.yangtools.version}</version>
237             </dependency>
238         </dependencies>
239     </dependencyManagement>
240
241
242     <build>
243         <plugins>
244             <plugin>
245                 <groupId>org.apache.maven.plugins</groupId>
246                 <artifactId>maven-compiler-plugin</artifactId>
247             </plugin>
248             <plugin>
249                 <groupId>org.jacoco</groupId>
250                 <artifactId>jacoco-maven-plugin</artifactId>
251                 <version>${jacoco.version}</version>
252                 <executions>
253                     <execution>
254                         <goals>
255                             <goal>prepare-agent</goal>
256                         </goals>
257                     </execution>
258                     <execution>
259                         <id>report</id>
260                         <phase>prepare-package</phase>
261                         <goals>
262                             <goal>check</goal>
263                             <goal>report</goal>
264                         </goals>
265                         <configuration>
266                             <outputDirectory>${basedir}/target/jacoco</outputDirectory>
267                             <haltOnFailure>false</haltOnFailure>
268                             <check>
269                                 <classRatio>80</classRatio>
270                             </check>
271                         </configuration>
272                     </execution>
273                 </executions>
274             </plugin>
275             <plugin>
276                 <groupId>org.apache.maven.plugins</groupId>
277                 <artifactId>maven-surefire-plugin</artifactId>
278             </plugin>
279             <plugin>
280                 <groupId>org.codehaus.mojo</groupId>
281                 <artifactId>build-helper-maven-plugin</artifactId>
282             </plugin>
283         </plugins>
284
285         <pluginManagement>
286             <plugins>
287                 <plugin>
288                     <groupId>org.opendaylight.yangtools</groupId>
289                     <artifactId>yang-maven-plugin</artifactId>
290                     <version>${opendaylight.yang.version}</version>
291                     <executions>
292                         <execution>
293                             <id>sal</id>
294                             <goals>
295                                 <goal>generate-sources</goal>
296                             </goals>
297                             <configuration>
298                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
299                                 <codeGenerators>
300                                     <generator>
301                                         <codeGeneratorClass>
302                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
303                                         </codeGeneratorClass>
304                                         <outputBaseDir>
305                                             target/generated-sources/sal
306                                         </outputBaseDir>
307                                     </generator>
308                                     <generator>
309                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
310                                         <outputBaseDir>target/site/models</outputBaseDir>
311                                     </generator>
312                                 </codeGenerators>
313                                 <inspectDependencies>true</inspectDependencies>
314                             </configuration>
315                         </execution>
316                     </executions>
317                     <dependencies>
318                         <dependency>
319                             <groupId>org.opendaylight.yangtools</groupId>
320                             <artifactId>maven-sal-api-gen-plugin</artifactId>
321                             <version>${opendaylight.binding.version}</version>
322                             <type>jar</type>
323                         </dependency>
324                     </dependencies>
325                 </plugin>
326                 <plugin>
327                     <groupId>org.apache.maven.plugins</groupId>
328                     <artifactId>maven-jar-plugin</artifactId>
329                     <version>2.4</version>
330                     <executions>
331                         <execution>
332                             <phase>package</phase>
333                             <goals>
334                                 <goal>test-jar</goal>
335                             </goals>
336                         </execution>
337                     </executions>
338                 </plugin>
339                 <plugin>
340                     <groupId>org.apache.felix</groupId>
341                     <artifactId>maven-bundle-plugin</artifactId>
342                     <version>${maven.bundle.version}</version>
343                     <extensions>true</extensions>
344                     <configuration>
345                         <instructions>
346                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
347                         </instructions>
348                     </configuration>
349                 </plugin>
350                 <plugin>
351                     <groupId>org.apache.maven.plugins</groupId>
352                     <artifactId>maven-surefire-plugin</artifactId>
353                     <version>2.14.1</version>
354                     <configuration>
355                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
356                         <parallel>classes</parallel>
357                         <forkCount>1C</forkCount>
358                         <reuseForks>false</reuseForks>
359                         <perCoreThreadCount>true</perCoreThreadCount>
360                         <threadCount>2</threadCount>
361                     </configuration>
362                 </plugin>
363                 <plugin>
364                     <groupId>org.apache.maven.plugins</groupId>
365                     <artifactId>maven-antrun-plugin</artifactId>
366                     <version>1.3</version>
367                 </plugin>
368                 <plugin>
369                     <groupId>org.codehaus.groovy.maven</groupId>
370                     <artifactId>gmaven-plugin</artifactId>
371                     <version>1.0</version>
372                 </plugin>
373                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
374                 <plugin>
375                     <groupId>org.eclipse.m2e</groupId>
376                     <artifactId>lifecycle-mapping</artifactId>
377                     <version>1.0.0</version>
378                     <configuration>
379                         <lifecycleMappingMetadata>
380                             <pluginExecutions>
381                                 <pluginExecution>
382                                     <pluginExecutionFilter>
383                                         <groupId>
384                                             org.opendaylight.yangtools
385                                         </groupId>
386                                         <artifactId>
387                                             yang-maven-plugin
388                                         </artifactId>
389                                         <versionRange>
390                                             [0.5.7-SNAPSHOT,)
391                                         </versionRange>
392                                         <goals>
393                                             <goal>
394                                                 generate-sources
395                                             </goal>
396                                         </goals>
397                                     </pluginExecutionFilter>
398                                     <action>
399                                         <ignore></ignore>
400                                     </action>
401                                 </pluginExecution>
402                             </pluginExecutions>
403                         </lifecycleMappingMetadata>
404                     </configuration>
405                 </plugin>
406             </plugins>
407         </pluginManagement>
408     </build>
409 </project>