Merge "BUG-1089: migrate TopologyMapping"
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5
6   <parent>
7     <groupId>org.opendaylight.controller</groupId>
8     <artifactId>commons.opendaylight</artifactId>
9     <version>1.4.2-SNAPSHOT</version>
10     <relativePath>../commons/opendaylight</relativePath>
11   </parent>
12   <artifactId>config-subsystem</artifactId>
13
14   <version>0.2.5-SNAPSHOT</version>
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>netconf-config-dispatcher</module>
42     <module>config-module-archetype</module>
43     <module>feature</module>
44   </modules>
45
46   <dependencies>
47     <dependency>
48       <groupId>org.osgi</groupId>
49       <artifactId>org.osgi.compendium</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.osgi</groupId>
53       <artifactId>org.osgi.core</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>ch.qos.logback</groupId>
57       <artifactId>logback-classic</artifactId>
58       <scope>test</scope>
59     </dependency>
60     <dependency>
61       <groupId>junit</groupId>
62       <artifactId>junit</artifactId>
63       <scope>test</scope>
64     </dependency>
65   </dependencies>
66
67   <build>
68
69     <pluginManagement>
70       <plugins>
71         <plugin>
72           <groupId>org.apache.felix</groupId>
73           <artifactId>maven-bundle-plugin</artifactId>
74           <extensions>true</extensions>
75           <configuration>
76             <instructions>
77               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
78             </instructions>
79           </configuration>
80         </plugin>
81         <plugin>
82           <groupId>org.apache.maven.plugins</groupId>
83           <artifactId>maven-antrun-plugin</artifactId>
84           <version>1.3</version>
85         </plugin>
86         <plugin>
87           <groupId>org.apache.maven.plugins</groupId>
88           <artifactId>maven-jar-plugin</artifactId>
89           <version>2.4</version>
90           <executions>
91             <execution>
92               <goals>
93                 <goal>test-jar</goal>
94               </goals>
95               <phase>package</phase>
96             </execution>
97           </executions>
98         </plugin>
99         <plugin>
100           <groupId>org.apache.maven.plugins</groupId>
101           <artifactId>maven-surefire-plugin</artifactId>
102           <version>2.14.1</version>
103           <configuration>
104             <redirectTestOutputToFile>true</redirectTestOutputToFile>
105             <parallel>classes</parallel>
106             <forkCount>1C</forkCount>
107             <reuseForks>false</reuseForks>
108             <perCoreThreadCount>true</perCoreThreadCount>
109             <threadCount>2</threadCount>
110           </configuration>
111         </plugin>
112         <plugin>
113           <groupId>org.codehaus.groovy.maven</groupId>
114           <artifactId>gmaven-plugin</artifactId>
115           <version>1.0</version>
116         </plugin>
117         <plugin>
118           <groupId>org.opendaylight.yangtools</groupId>
119           <artifactId>yang-maven-plugin</artifactId>
120           <version>${yangtools.version}</version>
121           <dependencies>
122             <dependency>
123               <groupId>org.opendaylight.yangtools</groupId>
124               <artifactId>maven-sal-api-gen-plugin</artifactId>
125               <version>${yangtools.version}</version>
126               <type>jar</type>
127             </dependency>
128           </dependencies>
129           <executions>
130             <execution>
131               <id>sal</id>
132               <goals>
133                 <goal>generate-sources</goal>
134               </goals>
135               <configuration>
136                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
137                 <codeGenerators>
138                   <generator>
139                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
140                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
141                   </generator>
142                   <generator>
143                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
144                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
145                   </generator>
146                 </codeGenerators>
147                 <inspectDependencies>true</inspectDependencies>
148               </configuration>
149             </execution>
150           </executions>
151         </plugin>
152       </plugins>
153     </pluginManagement>
154     <plugins>
155       <plugin>
156         <groupId>org.apache.maven.plugins</groupId>
157         <artifactId>maven-checkstyle-plugin</artifactId>
158         <version>2.12</version>
159         <configuration>
160           <failsOnError>false</failsOnError>
161           <failOnViolation>false</failOnViolation>
162           <configLocation>checkstyle-logging.xml</configLocation>
163           <consoleOutput>true</consoleOutput>
164           <includeTestSourceDirectory>true</includeTestSourceDirectory>
165           <sourceDirectory>${project.basedir}</sourceDirectory>
166           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
167           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
168         </configuration>
169         <dependencies>
170           <dependency>
171             <groupId>org.opendaylight.yangtools</groupId>
172             <artifactId>checkstyle-logging</artifactId>
173             <version>${yangtools.version}</version>
174           </dependency>
175         </dependencies>
176         <executions>
177           <execution>
178             <goals>
179               <goal>check</goal>
180             </goals>
181           </execution>
182         </executions>
183       </plugin>
184       <plugin>
185         <groupId>org.apache.maven.plugins</groupId>
186         <artifactId>maven-compiler-plugin</artifactId>
187       </plugin>
188       <plugin>
189         <groupId>org.apache.maven.plugins</groupId>
190         <artifactId>maven-surefire-plugin</artifactId>
191       </plugin>
192       <plugin>
193         <groupId>org.jacoco</groupId>
194         <artifactId>jacoco-maven-plugin</artifactId>
195         <executions>
196           <execution>
197             <goals>
198               <goal>prepare-agent</goal>
199             </goals>
200           </execution>
201           <execution>
202             <id>report</id>
203             <goals>
204               <goal>check</goal>
205               <goal>report</goal>
206             </goals>
207             <phase>prepare-package</phase>
208             <configuration>
209               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
210               <haltOnFailure>false</haltOnFailure>
211               <check>
212                 <classRatio>80</classRatio>
213               </check>
214             </configuration>
215           </execution>
216         </executions>
217       </plugin>
218
219     </plugins>
220   </build>
221
222   <profiles>
223     <profile>
224       <id>integrationtests</id>
225       <activation>
226         <activeByDefault>false</activeByDefault>
227       </activation>
228       <modules>
229         <module>yang-jmx-generator-it</module>
230       </modules>
231     </profile>
232   </profiles>
233 </project>