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