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