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