Merge "Fixed for bug 1168 : Issue while update subnet"
[controller.git] / opendaylight / config / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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   <artifactId>config-subsystem</artifactId>
12
13   <version>0.2.5-SNAPSHOT</version>
14   <packaging>pom</packaging>
15   <name>${project.artifactId}</name>
16   <prerequisites>
17     <maven>3.0.4</maven>
18   </prerequisites>
19   <modules>
20     <module>config-api</module>
21     <module>config-manager</module>
22     <module>config-plugin-parent</module>
23     <module>config-util</module>
24     <module>config-persister-api</module>
25     <module>config-persister-file-xml-adapter</module>
26     <module>yang-jmx-generator</module>
27     <module>yang-jmx-generator-plugin</module>
28     <module>yang-test</module>
29     <module>logback-config</module>
30     <module>threadpool-config-api</module>
31     <module>netty-config-api</module>
32     <module>threadpool-config-impl</module>
33     <module>netty-threadgroup-config</module>
34     <module>netty-event-executor-config</module>
35     <module>netty-timer-config</module>
36     <module>config-persister-directory-xml-adapter</module>
37     <module>yang-test-plugin</module>
38     <module>shutdown-api</module>
39     <module>shutdown-impl</module>
40     <module>netconf-config-dispatcher</module>
41     <module>config-module-archetype</module>
42   </modules>
43
44   <dependencies>
45     <dependency>
46       <groupId>org.osgi</groupId>
47       <artifactId>org.osgi.compendium</artifactId>
48     </dependency>
49     <dependency>
50       <groupId>org.osgi</groupId>
51       <artifactId>org.osgi.core</artifactId>
52     </dependency>
53     <dependency>
54       <groupId>ch.qos.logback</groupId>
55       <artifactId>logback-classic</artifactId>
56       <scope>test</scope>
57     </dependency>
58     <dependency>
59       <groupId>junit</groupId>
60       <artifactId>junit</artifactId>
61       <scope>test</scope>
62     </dependency>
63   </dependencies>
64
65   <build>
66
67     <pluginManagement>
68       <plugins>
69         <plugin>
70           <groupId>org.apache.felix</groupId>
71           <artifactId>maven-bundle-plugin</artifactId>
72           <extensions>true</extensions>
73           <configuration>
74             <instructions>
75               <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
76             </instructions>
77           </configuration>
78         </plugin>
79         <plugin>
80           <groupId>org.apache.maven.plugins</groupId>
81           <artifactId>maven-antrun-plugin</artifactId>
82           <version>${maven.antrun.plugin.version}</version>
83         </plugin>
84         <plugin>
85           <groupId>org.apache.maven.plugins</groupId>
86           <artifactId>maven-jar-plugin</artifactId>
87           <executions>
88             <execution>
89               <goals>
90                 <goal>test-jar</goal>
91               </goals>
92               <phase>package</phase>
93             </execution>
94           </executions>
95         </plugin>
96         <plugin>
97           <groupId>org.apache.maven.plugins</groupId>
98           <artifactId>maven-surefire-plugin</artifactId>
99           <configuration>
100             <redirectTestOutputToFile>true</redirectTestOutputToFile>
101             <parallel>classes</parallel>
102             <forkCount>1C</forkCount>
103             <reuseForks>false</reuseForks>
104             <perCoreThreadCount>true</perCoreThreadCount>
105             <threadCount>2</threadCount>
106           </configuration>
107         </plugin>
108         <plugin>
109           <groupId>org.codehaus.groovy.maven</groupId>
110           <artifactId>gmaven-plugin</artifactId>
111           <version>${gmaven.plugin.version}</version>
112         </plugin>
113         <plugin>
114           <groupId>org.opendaylight.yangtools</groupId>
115           <artifactId>yang-maven-plugin</artifactId>
116           <version>${yangtools.version}</version>
117           <dependencies>
118             <dependency>
119               <groupId>org.opendaylight.yangtools</groupId>
120               <artifactId>maven-sal-api-gen-plugin</artifactId>
121               <version>${yangtools.version}</version>
122               <type>jar</type>
123             </dependency>
124           </dependencies>
125           <executions>
126             <execution>
127               <id>sal</id>
128               <goals>
129                 <goal>generate-sources</goal>
130               </goals>
131               <configuration>
132                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
133                 <codeGenerators>
134                   <generator>
135                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
136                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
137                   </generator>
138                   <generator>
139                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
140                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
141                   </generator>
142                 </codeGenerators>
143                 <inspectDependencies>true</inspectDependencies>
144               </configuration>
145             </execution>
146           </executions>
147         </plugin>
148       </plugins>
149     </pluginManagement>
150     <plugins>
151       <plugin>
152         <groupId>org.apache.maven.plugins</groupId>
153         <artifactId>maven-checkstyle-plugin</artifactId>
154         <configuration>
155           <failsOnError>false</failsOnError>
156           <failOnViolation>false</failOnViolation>
157           <configLocation>checkstyle-logging.xml</configLocation>
158           <consoleOutput>true</consoleOutput>
159           <includeTestSourceDirectory>true</includeTestSourceDirectory>
160           <sourceDirectory>${project.basedir}</sourceDirectory>
161           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
162           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
163         </configuration>
164         <dependencies>
165           <dependency>
166             <groupId>org.opendaylight.yangtools</groupId>
167             <artifactId>checkstyle-logging</artifactId>
168             <version>${yangtools.version}</version>
169           </dependency>
170         </dependencies>
171         <executions>
172           <execution>
173             <goals>
174               <goal>check</goal>
175             </goals>
176           </execution>
177         </executions>
178       </plugin>
179       <plugin>
180         <groupId>org.apache.maven.plugins</groupId>
181         <artifactId>maven-compiler-plugin</artifactId>
182       </plugin>
183       <plugin>
184         <groupId>org.apache.maven.plugins</groupId>
185         <artifactId>maven-surefire-plugin</artifactId>
186       </plugin>
187       <plugin>
188         <groupId>org.jacoco</groupId>
189         <artifactId>jacoco-maven-plugin</artifactId>
190         <executions>
191           <execution>
192             <goals>
193               <goal>prepare-agent</goal>
194             </goals>
195           </execution>
196           <execution>
197             <id>report</id>
198             <goals>
199               <goal>check</goal>
200               <goal>report</goal>
201             </goals>
202             <phase>prepare-package</phase>
203             <configuration>
204               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
205               <haltOnFailure>false</haltOnFailure>
206               <check>
207                 <classRatio>80</classRatio>
208               </check>
209             </configuration>
210           </execution>
211         </executions>
212       </plugin>
213
214     </plugins>
215   </build>
216
217   <profiles>
218     <profile>
219       <id>integrationtests</id>
220       <activation>
221         <activeByDefault>false</activeByDefault>
222       </activation>
223       <modules>
224         <module>yang-jmx-generator-it</module>
225       </modules>
226     </profile>
227   </profiles>
228 </project>