Merge "Bug-835:Reserve ports should be logical ports"
[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>${maven.antrun.plugin.version}</version>
85         </plugin>
86         <plugin>
87           <groupId>org.apache.maven.plugins</groupId>
88           <artifactId>maven-jar-plugin</artifactId>
89           <executions>
90             <execution>
91               <goals>
92                 <goal>test-jar</goal>
93               </goals>
94               <phase>package</phase>
95             </execution>
96           </executions>
97         </plugin>
98         <plugin>
99           <groupId>org.apache.maven.plugins</groupId>
100           <artifactId>maven-surefire-plugin</artifactId>
101           <configuration>
102             <redirectTestOutputToFile>true</redirectTestOutputToFile>
103             <parallel>classes</parallel>
104             <forkCount>1C</forkCount>
105             <reuseForks>false</reuseForks>
106             <perCoreThreadCount>true</perCoreThreadCount>
107             <threadCount>2</threadCount>
108           </configuration>
109         </plugin>
110         <plugin>
111           <groupId>org.codehaus.groovy.maven</groupId>
112           <artifactId>gmaven-plugin</artifactId>
113           <version>${gmaven.plugin.version}</version>
114         </plugin>
115         <plugin>
116           <groupId>org.opendaylight.yangtools</groupId>
117           <artifactId>yang-maven-plugin</artifactId>
118           <version>${yangtools.version}</version>
119           <dependencies>
120             <dependency>
121               <groupId>org.opendaylight.yangtools</groupId>
122               <artifactId>maven-sal-api-gen-plugin</artifactId>
123               <version>${yangtools.version}</version>
124               <type>jar</type>
125             </dependency>
126           </dependencies>
127           <executions>
128             <execution>
129               <id>sal</id>
130               <goals>
131                 <goal>generate-sources</goal>
132               </goals>
133               <configuration>
134                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
135                 <codeGenerators>
136                   <generator>
137                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
138                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
139                   </generator>
140                   <generator>
141                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
142                     <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
143                   </generator>
144                 </codeGenerators>
145                 <inspectDependencies>true</inspectDependencies>
146               </configuration>
147             </execution>
148           </executions>
149         </plugin>
150       </plugins>
151     </pluginManagement>
152     <plugins>
153       <plugin>
154         <groupId>org.apache.maven.plugins</groupId>
155         <artifactId>maven-checkstyle-plugin</artifactId>
156         <configuration>
157           <failsOnError>false</failsOnError>
158           <failOnViolation>false</failOnViolation>
159           <configLocation>checkstyle-logging.xml</configLocation>
160           <consoleOutput>true</consoleOutput>
161           <includeTestSourceDirectory>true</includeTestSourceDirectory>
162           <sourceDirectory>${project.basedir}</sourceDirectory>
163           <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
164           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/${jmxGeneratorPath}\/,**\/${salGeneratorPath}\/</excludes>
165         </configuration>
166         <dependencies>
167           <dependency>
168             <groupId>org.opendaylight.yangtools</groupId>
169             <artifactId>checkstyle-logging</artifactId>
170             <version>${yangtools.version}</version>
171           </dependency>
172         </dependencies>
173         <executions>
174           <execution>
175             <goals>
176               <goal>check</goal>
177             </goals>
178           </execution>
179         </executions>
180       </plugin>
181       <plugin>
182         <groupId>org.apache.maven.plugins</groupId>
183         <artifactId>maven-compiler-plugin</artifactId>
184       </plugin>
185       <plugin>
186         <groupId>org.apache.maven.plugins</groupId>
187         <artifactId>maven-surefire-plugin</artifactId>
188       </plugin>
189       <plugin>
190         <groupId>org.jacoco</groupId>
191         <artifactId>jacoco-maven-plugin</artifactId>
192         <executions>
193           <execution>
194             <goals>
195               <goal>prepare-agent</goal>
196             </goals>
197           </execution>
198           <execution>
199             <id>report</id>
200             <goals>
201               <goal>check</goal>
202               <goal>report</goal>
203             </goals>
204             <phase>prepare-package</phase>
205             <configuration>
206               <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
207               <haltOnFailure>false</haltOnFailure>
208               <check>
209                 <classRatio>80</classRatio>
210               </check>
211             </configuration>
212           </execution>
213         </executions>
214       </plugin>
215
216     </plugins>
217   </build>
218
219   <profiles>
220     <profile>
221       <id>integrationtests</id>
222       <activation>
223         <activeByDefault>false</activeByDefault>
224       </activation>
225       <modules>
226         <module>yang-jmx-generator-it</module>
227       </modules>
228     </profile>
229   </profiles>
230 </project>