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