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