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