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