Improve logging in NetconfClient, logging-bridge. Increase connection timeout in...
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <parent>
7         <groupId>org.opendaylight.controller</groupId>
8         <artifactId>commons.opendaylight</artifactId>
9         <version>1.4.2-SNAPSHOT</version>
10         <relativePath>../commons/opendaylight</relativePath>
11     </parent>
12
13
14     <version>0.2.4-SNAPSHOT</version>
15     <artifactId>config-subsystem</artifactId>
16     <packaging>pom</packaging>
17     <name>${project.artifactId}</name>
18     <prerequisites>
19         <maven>3.0.4</maven>
20     </prerequisites>
21     <modules>
22         <module>config-api</module>
23         <module>config-manager</module>
24         <module>config-plugin-parent</module>
25         <module>config-util</module>
26         <module>config-persister-api</module>
27         <module>config-persister-file-adapter</module>
28         <module>config-persister-file-xml-adapter</module>
29         <module>yang-jmx-generator</module>
30         <module>yang-jmx-generator-plugin</module>
31         <module>yang-store-api</module>
32         <module>yang-store-impl</module>
33         <module>yang-test</module>
34         <module>logback-config</module>
35         <module>threadpool-config-api</module>
36         <module>netty-config-api</module>
37         <module>threadpool-config-impl</module>
38         <module>netty-threadgroup-config</module>
39         <module>netty-event-executor-config</module>
40         <module>netty-timer-config</module>
41         <module>config-persister-directory-adapter</module>
42         <module>config-persister-directory-xml-adapter</module>
43         <module>config-persister-directory-autodetect-adapter</module>
44         <module>yang-test-plugin</module>
45         <module>shutdown-api</module>
46         <module>shutdown-impl</module>
47     </modules>
48
49     <profiles>
50       <profile>
51         <id>integrationtests</id>
52         <activation>
53           <activeByDefault>false</activeByDefault>
54         </activation>
55         <modules>
56           <module>yang-jmx-generator-it</module>
57         </modules>
58       </profile>
59     </profiles>
60
61     <properties>
62         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63         <java.version.source>1.7</java.version.source>
64         <java.version.target>1.7</java.version.target>
65         <junit.version>4.10</junit.version>
66         <maven.bundle.version>2.4.0</maven.bundle.version>
67         <osgi.version>5.0.0</osgi.version>
68         <jacoco.version>0.6.2.201302030002</jacoco.version>
69         <slf4j.version>1.7.2</slf4j.version>
70         <salGeneratorPath>${project.build.directory}/generated-sources/sal</salGeneratorPath>
71         <config.version>0.2.4-SNAPSHOT</config.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>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>junit</groupId>
112                 <artifactId>junit</artifactId>
113                 <version>${junit.version}</version>
114             </dependency>
115             <dependency>
116                 <groupId>org.apache.commons</groupId>
117                 <artifactId>commons-lang3</artifactId>
118                 <version>${commons.lang.version}</version>
119             </dependency>
120
121             <dependency>
122                 <groupId>${project.groupId}</groupId>
123                 <artifactId>config-api</artifactId>
124                 <version>${config.version}</version>
125             </dependency>
126
127             <dependency>
128                 <groupId>${project.groupId}</groupId>
129                 <artifactId>config-util</artifactId>
130                 <version>${config.version}</version>
131             </dependency>
132             <dependency>
133                 <groupId>${project.groupId}</groupId>
134                 <artifactId>config-util</artifactId>
135                 <version>${config.version}</version>
136                 <type>test-jar</type>
137             </dependency>
138             <dependency>
139                 <groupId>${project.groupId}</groupId>
140                 <artifactId>config-manager</artifactId>
141                 <version>${config.version}</version>
142             </dependency>
143             <dependency>
144                 <groupId>${project.groupId}</groupId>
145                 <artifactId>config-manager</artifactId>
146                 <version>${config.version}</version>
147                 <type>test-jar</type>
148             </dependency>
149             <dependency>
150                 <groupId>${project.groupId}</groupId>
151                 <artifactId>config-persister-api</artifactId>
152                 <version>${config.version}</version>
153             </dependency>
154             <dependency>
155                 <groupId>${project.groupId}</groupId>
156                 <artifactId>config-persister-api</artifactId>
157                 <version>${config.version}</version>
158                 <type>test-jar</type>
159             </dependency>
160             <dependency>
161                 <groupId>org.opendaylight.yangtools</groupId>
162                 <artifactId>binding-generator-spi</artifactId>
163                 <version>${yangtools.version}</version>
164             </dependency>
165             <dependency>
166                 <groupId>org.opendaylight.yangtools</groupId>
167                 <artifactId>binding-generator-util</artifactId>
168                 <version>${yangtools.version}</version>
169             </dependency>
170             <dependency>
171                 <groupId>org.opendaylight.yangtools</groupId>
172                 <artifactId>yang-parser-impl</artifactId>
173                 <version>${yangtools.version}</version>
174             </dependency>
175             <dependency>
176                 <groupId>org.opendaylight.yangtools</groupId>
177                 <artifactId>binding-generator-impl</artifactId>
178                 <version>${yangtools.version}</version>
179             </dependency>
180             <dependency>
181                 <groupId>${project.groupId}</groupId>
182                 <artifactId>yang-test</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             </dependency>
190             <dependency>
191                 <groupId>org.opendaylight.controller</groupId>
192                 <artifactId>yang-jmx-generator</artifactId>
193                 <version>${config.version}</version>
194                 <type>test-jar</type>
195             </dependency>
196             <dependency>
197                 <groupId>org.opendaylight.yangtools</groupId>
198                 <artifactId>binding-type-provider</artifactId>
199                 <version>${yangtools.version}</version>
200             </dependency>
201             <dependency>
202                 <groupId>org.opendaylight.yangtools</groupId>
203                 <artifactId>yang-maven-plugin-spi</artifactId>
204                 <version>${yangtools.version}</version>
205             </dependency>
206             <dependency>
207                 <groupId>${project.groupId}</groupId>
208                 <artifactId>yang-store-api</artifactId>
209                 <version>${config.version}</version>
210             </dependency>
211
212             <dependency>
213                 <groupId>org.opendaylight.controller</groupId>
214                 <artifactId>shutdown-api</artifactId>
215                 <version>${config.version}</version>
216             </dependency>
217
218             <!-- MD-SAL -->
219             <dependency>
220                 <groupId>org.opendaylight.yangtools</groupId>
221                 <artifactId>yang-binding</artifactId>
222                 <version>${yangtools.version}</version>
223             </dependency>
224             <dependency>
225                 <groupId>org.opendaylight.yangtools</groupId>
226                 <artifactId>yang-common</artifactId>
227                 <version>${yangtools.version}</version>
228             </dependency>
229             <dependency>
230                 <groupId>org.opendaylight.yangtools</groupId>
231                 <artifactId>concepts</artifactId>
232                 <version>${yangtools.version}</version>
233             </dependency>
234         </dependencies>
235     </dependencyManagement>
236
237
238     <build>
239         <plugins>
240             <plugin>
241                 <groupId>org.apache.maven.plugins</groupId>
242                 <artifactId>maven-compiler-plugin</artifactId>
243             </plugin>
244             <plugin>
245                 <groupId>org.jacoco</groupId>
246                 <artifactId>jacoco-maven-plugin</artifactId>
247                 <version>${jacoco.version}</version>
248                 <executions>
249                     <execution>
250                         <goals>
251                             <goal>prepare-agent</goal>
252                         </goals>
253                     </execution>
254                     <execution>
255                         <id>report</id>
256                         <phase>prepare-package</phase>
257                         <goals>
258                             <goal>check</goal>
259                             <goal>report</goal>
260                         </goals>
261                         <configuration>
262                             <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
263                             <haltOnFailure>false</haltOnFailure>
264                             <check>
265                                 <classRatio>80</classRatio>
266                             </check>
267                         </configuration>
268                     </execution>
269                 </executions>
270             </plugin>
271             <plugin>
272                 <groupId>org.apache.maven.plugins</groupId>
273                 <artifactId>maven-surefire-plugin</artifactId>
274             </plugin>
275
276
277         </plugins>
278
279         <pluginManagement>
280             <plugins>
281                 <plugin>
282                     <groupId>org.opendaylight.yangtools</groupId>
283                     <artifactId>yang-maven-plugin</artifactId>
284                     <version>${yangtools.version}</version>
285                     <executions>
286                         <execution>
287                             <id>sal</id>
288                             <goals>
289                                 <goal>generate-sources</goal>
290                             </goals>
291                             <configuration>
292                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
293                                 <codeGenerators>
294                                     <generator>
295                                         <codeGeneratorClass>
296                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
297                                         </codeGeneratorClass>
298                                         <outputBaseDir>
299                                             ${salGeneratorPath}
300                                         </outputBaseDir>
301                                     </generator>
302                                     <generator>
303                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
304                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
305                                     </generator>
306                                 </codeGenerators>
307                                 <inspectDependencies>true</inspectDependencies>
308                             </configuration>
309                         </execution>
310                     </executions>
311                     <dependencies>
312                         <dependency>
313                             <groupId>org.opendaylight.yangtools</groupId>
314                             <artifactId>maven-sal-api-gen-plugin</artifactId>
315                             <version>${yangtools.version}</version>
316                             <type>jar</type>
317                         </dependency>
318                     </dependencies>
319                 </plugin>
320                 <!-- tell eclipse about generated source folders -->
321                 <plugin>
322                     <groupId>org.codehaus.mojo</groupId>
323                     <artifactId>build-helper-maven-plugin</artifactId>
324                     <version>1.8</version>
325                     <executions>
326                         <execution>
327                             <id>add-source</id>
328                             <phase>generate-sources</phase>
329                             <goals>
330                                 <goal>add-source</goal>
331                             </goals>
332                             <configuration>
333                                 <sources>
334                                     <source>${salGeneratorPath}</source>
335                                 </sources>
336                             </configuration>
337                         </execution>
338                     </executions>
339                 </plugin>
340                 <plugin>
341                     <groupId>org.apache.maven.plugins</groupId>
342                     <artifactId>maven-jar-plugin</artifactId>
343                     <version>2.4</version>
344                     <executions>
345                         <execution>
346                             <phase>package</phase>
347                             <goals>
348                                 <goal>test-jar</goal>
349                             </goals>
350                         </execution>
351                     </executions>
352                 </plugin>
353                 <plugin>
354                     <groupId>org.apache.felix</groupId>
355                     <artifactId>maven-bundle-plugin</artifactId>
356                     <version>${maven.bundle.version}</version>
357                     <extensions>true</extensions>
358                     <configuration>
359                         <instructions>
360                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
361                         </instructions>
362                     </configuration>
363                 </plugin>
364                 <plugin>
365                     <groupId>org.apache.maven.plugins</groupId>
366                     <artifactId>maven-surefire-plugin</artifactId>
367                     <version>2.14.1</version>
368                     <configuration>
369                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
370                         <parallel>classes</parallel>
371                         <forkCount>1C</forkCount>
372                         <reuseForks>false</reuseForks>
373                         <perCoreThreadCount>true</perCoreThreadCount>
374                         <threadCount>2</threadCount>
375                     </configuration>
376                 </plugin>
377                 <plugin>
378                     <groupId>org.apache.maven.plugins</groupId>
379                     <artifactId>maven-antrun-plugin</artifactId>
380                     <version>1.3</version>
381                 </plugin>
382                 <plugin>
383                     <groupId>org.codehaus.groovy.maven</groupId>
384                     <artifactId>gmaven-plugin</artifactId>
385                     <version>1.0</version>
386                 </plugin>
387                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
388                 <plugin>
389                     <groupId>org.eclipse.m2e</groupId>
390                     <artifactId>lifecycle-mapping</artifactId>
391                     <version>1.0.0</version>
392                     <configuration>
393                         <lifecycleMappingMetadata>
394                             <pluginExecutions>
395                                 <pluginExecution>
396                                     <pluginExecutionFilter>
397                                         <groupId>
398                                             org.opendaylight.yangtools
399                                         </groupId>
400                                         <artifactId>
401                                             yang-maven-plugin
402                                         </artifactId>
403                                         <versionRange>
404                                             [0.5.7-SNAPSHOT,)
405                                         </versionRange>
406                                         <goals>
407                                             <goal>
408                                                 generate-sources
409                                             </goal>
410                                         </goals>
411                                     </pluginExecutionFilter>
412                                     <action>
413                                         <ignore />
414                                     </action>
415                                 </pluginExecution>
416                             </pluginExecutions>
417                         </lifecycleMappingMetadata>
418                     </configuration>
419                 </plugin>
420             </plugins>
421         </pluginManagement>
422     </build>
423 </project>