Merge "Integration test added to netconf-it to test identity (de)serialization."
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: --><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">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.opendaylight.controller</groupId>
7         <artifactId>commons.opendaylight</artifactId>
8         <version>1.4.2-SNAPSHOT</version>
9         <relativePath>../commons/opendaylight</relativePath>
10     </parent>
11
12
13     <version>0.2.5-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-plugin-parent</module>
24         <module>config-util</module>
25         <module>config-persister-api</module>
26         <module>config-persister-file-adapter</module>
27         <module>config-persister-file-xml-adapter</module>
28         <module>yang-jmx-generator</module>
29         <module>yang-jmx-generator-plugin</module>
30         <module>yang-store-api</module>
31         <module>yang-store-impl</module>
32         <module>yang-test</module>
33         <module>logback-config</module>
34         <module>threadpool-config-api</module>
35         <module>netty-config-api</module>
36         <module>threadpool-config-impl</module>
37         <module>netty-threadgroup-config</module>
38         <module>netty-event-executor-config</module>
39         <module>netty-timer-config</module>
40         <module>config-persister-directory-adapter</module>
41         <module>config-persister-directory-xml-adapter</module>
42         <module>config-persister-directory-autodetect-adapter</module>
43         <module>yang-test-plugin</module>
44         <module>shutdown-api</module>
45         <module>shutdown-impl</module>
46         <module>config-module-archetype</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     </properties>
72
73     <dependencies>
74         <dependency>
75             <groupId>junit</groupId>
76             <artifactId>junit</artifactId>
77             <scope>test</scope>
78         </dependency>
79         <dependency>
80             <groupId>ch.qos.logback</groupId>
81             <artifactId>logback-classic</artifactId>
82             <scope>test</scope>
83         </dependency>
84     </dependencies>
85
86     <dependencyManagement>
87         <dependencies>
88             <dependency>
89                 <groupId>org.slf4j</groupId>
90                 <artifactId>slf4j-api</artifactId>
91                 <version>${slf4j.version}</version>
92             </dependency>
93             <dependency>
94                 <groupId>org.osgi</groupId>
95                 <artifactId>org.osgi.core</artifactId>
96                 <version>${osgi.version}</version>
97             </dependency>
98             <dependency>
99                 <groupId>commons-io</groupId>
100                 <artifactId>commons-io</artifactId>
101                 <version>2.4</version>
102             </dependency>
103             <dependency>
104                 <groupId>com.google.guava</groupId>
105                 <artifactId>guava</artifactId>
106                 <version>14.0.1</version>
107             </dependency>
108             <dependency>
109                 <groupId>junit</groupId>
110                 <artifactId>junit</artifactId>
111                 <version>${junit.version}</version>
112             </dependency>
113             <dependency>
114                 <groupId>org.apache.commons</groupId>
115                 <artifactId>commons-lang3</artifactId>
116                 <version>${commons.lang.version}</version>
117             </dependency>
118
119             <dependency>
120                 <groupId>${project.groupId}</groupId>
121                 <artifactId>config-api</artifactId>
122                 <version>${config.version}</version>
123             </dependency>
124
125             <dependency>
126                 <groupId>${project.groupId}</groupId>
127                 <artifactId>config-util</artifactId>
128                 <version>${config.version}</version>
129             </dependency>
130             <dependency>
131                 <groupId>${project.groupId}</groupId>
132                 <artifactId>config-util</artifactId>
133                 <version>${config.version}</version>
134                 <type>test-jar</type>
135             </dependency>
136             <dependency>
137                 <groupId>${project.groupId}</groupId>
138                 <artifactId>config-manager</artifactId>
139                 <version>${config.version}</version>
140             </dependency>
141             <dependency>
142                 <groupId>${project.groupId}</groupId>
143                 <artifactId>config-manager</artifactId>
144                 <version>${config.version}</version>
145                 <type>test-jar</type>
146             </dependency>
147             <dependency>
148                 <groupId>${project.groupId}</groupId>
149                 <artifactId>config-persister-api</artifactId>
150                 <version>${config.version}</version>
151             </dependency>
152             <dependency>
153                 <groupId>${project.groupId}</groupId>
154                 <artifactId>config-persister-api</artifactId>
155                 <version>${config.version}</version>
156                 <type>test-jar</type>
157             </dependency>
158             <dependency>
159                 <groupId>org.opendaylight.yangtools</groupId>
160                 <artifactId>binding-generator-spi</artifactId>
161                 <version>${yangtools.version}</version>
162             </dependency>
163             <dependency>
164                 <groupId>org.opendaylight.yangtools</groupId>
165                 <artifactId>binding-generator-util</artifactId>
166                 <version>${yangtools.version}</version>
167             </dependency>
168             <dependency>
169                 <groupId>org.opendaylight.yangtools</groupId>
170                 <artifactId>yang-parser-impl</artifactId>
171                 <version>${yangtools.version}</version>
172             </dependency>
173             <dependency>
174                 <groupId>org.opendaylight.yangtools</groupId>
175                 <artifactId>binding-generator-impl</artifactId>
176                 <version>${yangtools.version}</version>
177             </dependency>
178             <dependency>
179                 <groupId>${project.groupId}</groupId>
180                 <artifactId>yang-test</artifactId>
181                 <version>${config.version}</version>
182             </dependency>
183             <dependency>
184                 <groupId>org.opendaylight.controller</groupId>
185                 <artifactId>yang-jmx-generator</artifactId>
186                 <version>${config.version}</version>
187             </dependency>
188             <dependency>
189                 <groupId>org.opendaylight.controller</groupId>
190                 <artifactId>yang-jmx-generator</artifactId>
191                 <version>${config.version}</version>
192                 <type>test-jar</type>
193             </dependency>
194             <dependency>
195                 <groupId>org.opendaylight.yangtools</groupId>
196                 <artifactId>binding-type-provider</artifactId>
197                 <version>${yangtools.version}</version>
198             </dependency>
199             <dependency>
200                 <groupId>org.opendaylight.yangtools</groupId>
201                 <artifactId>yang-maven-plugin-spi</artifactId>
202                 <version>${yangtools.version}</version>
203             </dependency>
204             <dependency>
205                 <groupId>${project.groupId}</groupId>
206                 <artifactId>yang-store-api</artifactId>
207                 <version>${config.version}</version>
208             </dependency>
209
210             <dependency>
211                 <groupId>org.opendaylight.controller</groupId>
212                 <artifactId>shutdown-api</artifactId>
213                 <version>${config.version}</version>
214             </dependency>
215
216             <!-- MD-SAL -->
217             <dependency>
218                 <groupId>org.opendaylight.yangtools</groupId>
219                 <artifactId>yang-binding</artifactId>
220                 <version>${yangtools.version}</version>
221             </dependency>
222             <dependency>
223                 <groupId>org.opendaylight.yangtools</groupId>
224                 <artifactId>yang-common</artifactId>
225                 <version>${yangtools.version}</version>
226             </dependency>
227             <dependency>
228                 <groupId>org.opendaylight.yangtools</groupId>
229                 <artifactId>concepts</artifactId>
230                 <version>${yangtools.version}</version>
231             </dependency>
232         </dependencies>
233     </dependencyManagement>
234
235
236     <build>
237         <plugins>
238             <plugin>
239                 <groupId>org.apache.maven.plugins</groupId>
240                 <artifactId>maven-compiler-plugin</artifactId>
241             </plugin>
242             <plugin>
243                 <groupId>org.jacoco</groupId>
244                 <artifactId>jacoco-maven-plugin</artifactId>
245                 <version>${jacoco.version}</version>
246                 <executions>
247                     <execution>
248                         <goals>
249                             <goal>prepare-agent</goal>
250                         </goals>
251                     </execution>
252                     <execution>
253                         <id>report</id>
254                         <phase>prepare-package</phase>
255                         <goals>
256                             <goal>check</goal>
257                             <goal>report</goal>
258                         </goals>
259                         <configuration>
260                             <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
261                             <haltOnFailure>false</haltOnFailure>
262                             <check>
263                                 <classRatio>80</classRatio>
264                             </check>
265                         </configuration>
266                     </execution>
267                 </executions>
268             </plugin>
269             <plugin>
270                 <groupId>org.apache.maven.plugins</groupId>
271                 <artifactId>maven-surefire-plugin</artifactId>
272             </plugin>
273
274
275         </plugins>
276
277         <pluginManagement>
278             <plugins>
279                 <plugin>
280                     <groupId>org.opendaylight.yangtools</groupId>
281                     <artifactId>yang-maven-plugin</artifactId>
282                     <version>${yangtools.version}</version>
283                     <executions>
284                         <execution>
285                             <id>sal</id>
286                             <goals>
287                                 <goal>generate-sources</goal>
288                             </goals>
289                             <configuration>
290                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
291                                 <codeGenerators>
292                                     <generator>
293                                         <codeGeneratorClass>
294                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
295                                         </codeGeneratorClass>
296                                         <outputBaseDir>
297                                             ${salGeneratorPath}
298                                         </outputBaseDir>
299                                     </generator>
300                                     <generator>
301                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
302                                         <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
303                                     </generator>
304                                 </codeGenerators>
305                                 <inspectDependencies>true</inspectDependencies>
306                             </configuration>
307                         </execution>
308                     </executions>
309                     <dependencies>
310                         <dependency>
311                             <groupId>org.opendaylight.yangtools</groupId>
312                             <artifactId>maven-sal-api-gen-plugin</artifactId>
313                             <version>${yangtools.version}</version>
314                             <type>jar</type>
315                         </dependency>
316                     </dependencies>
317                 </plugin>
318                 <!-- tell eclipse about generated source folders -->
319                 <plugin>
320                     <groupId>org.codehaus.mojo</groupId>
321                     <artifactId>build-helper-maven-plugin</artifactId>
322                     <version>1.8</version>
323                     <executions>
324                         <execution>
325                             <id>add-source</id>
326                             <phase>generate-sources</phase>
327                             <goals>
328                                 <goal>add-source</goal>
329                             </goals>
330                             <configuration>
331                                 <sources>
332                                     <source>${salGeneratorPath}</source>
333                                 </sources>
334                             </configuration>
335                         </execution>
336                     </executions>
337                 </plugin>
338                 <plugin>
339                     <groupId>org.apache.maven.plugins</groupId>
340                     <artifactId>maven-jar-plugin</artifactId>
341                     <version>2.4</version>
342                     <executions>
343                         <execution>
344                             <phase>package</phase>
345                             <goals>
346                                 <goal>test-jar</goal>
347                             </goals>
348                         </execution>
349                     </executions>
350                 </plugin>
351                 <plugin>
352                     <groupId>org.apache.felix</groupId>
353                     <artifactId>maven-bundle-plugin</artifactId>
354                     <version>${maven.bundle.version}</version>
355                     <extensions>true</extensions>
356                     <configuration>
357                         <instructions>
358                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
359                         </instructions>
360                     </configuration>
361                 </plugin>
362                 <plugin>
363                     <groupId>org.apache.maven.plugins</groupId>
364                     <artifactId>maven-surefire-plugin</artifactId>
365                     <version>2.14.1</version>
366                     <configuration>
367                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
368                         <parallel>classes</parallel>
369                         <forkCount>1C</forkCount>
370                         <reuseForks>false</reuseForks>
371                         <perCoreThreadCount>true</perCoreThreadCount>
372                         <threadCount>2</threadCount>
373                     </configuration>
374                 </plugin>
375                 <plugin>
376                     <groupId>org.apache.maven.plugins</groupId>
377                     <artifactId>maven-antrun-plugin</artifactId>
378                     <version>1.3</version>
379                 </plugin>
380                 <plugin>
381                     <groupId>org.codehaus.groovy.maven</groupId>
382                     <artifactId>gmaven-plugin</artifactId>
383                     <version>1.0</version>
384                 </plugin>
385                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
386                 <plugin>
387                     <groupId>org.eclipse.m2e</groupId>
388                     <artifactId>lifecycle-mapping</artifactId>
389                     <version>1.0.0</version>
390                     <configuration>
391                         <lifecycleMappingMetadata>
392                             <pluginExecutions>
393                                 <pluginExecution>
394                                     <pluginExecutionFilter>
395                                         <groupId>
396                                             org.opendaylight.yangtools
397                                         </groupId>
398                                         <artifactId>
399                                             yang-maven-plugin
400                                         </artifactId>
401                                         <versionRange>
402                                             [0.5.7-SNAPSHOT,)
403                                         </versionRange>
404                                         <goals>
405                                             <goal>
406                                                 generate-sources
407                                             </goal>
408                                         </goals>
409                                     </pluginExecutionFilter>
410                                     <action>
411                                         <ignore/>
412                                     </action>
413                                 </pluginExecution>
414                             </pluginExecutions>
415                         </lifecycleMappingMetadata>
416                     </configuration>
417                 </plugin>
418             </plugins>
419         </pluginManagement>
420     </build>
421 </project>