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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.