Checkstyle maven plugin check - openflowjava
[openflowjava.git] / pom.xml
1 <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">
2     <modelVersion>4.0.0</modelVersion>
3     <groupId>org.opendaylight.openflowjava</groupId>
4     <artifactId>openflow-protocol-parent</artifactId>
5     <version>0.5-SNAPSHOT</version>
6     <packaging>pom</packaging>
7     <modules>
8         <module>openflow-protocol-api</module>
9         <module>openflow-protocol-spi</module>
10         <module>openflow-protocol-impl</module>
11         <module>openflow-protocol-it</module>
12         <module>feature</module>
13         <module>simple-client</module>
14     </modules>
15     <scm>
16         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
17         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
18         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
19       <tag>HEAD</tag>
20     </scm>
21
22     <properties>
23         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
24         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
25         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
26         <siteplugin>3.2</siteplugin>
27         <projectinfo>2.6</projectinfo>
28         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29         <compiler.version>2.3.2</compiler.version>
30         <surefire.version>2.13</surefire.version>
31         <exam.version>3.0.0</exam.version>
32         <url.version>1.5.0</url.version>
33         <enunciate.version>1.26.2</enunciate.version>
34         <sonar.branch>${user.name}-private-view</sonar.branch>
35         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
36         <logback.version>1.0.9</logback.version>
37         <slf4j.version>1.7.2</slf4j.version>
38         <yang.prototype.version>1.1-SNAPSHOT</yang.prototype.version>
39         <ietf.model.version>2010.09.24.4-SNAPSHOT</ietf.model.version>
40         <yang.ext.version>2013.09.07.4-SNAPSHOT</yang.ext.version>
41         <maven.bundle.version>2.4.0</maven.bundle.version>
42         <guava.version>14.0.1</guava.version> 
43         <netty.version>4.0.17.Final</netty.version>
44         <releaseplugin.version>2.3.2</releaseplugin.version>
45         <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
46         <yangtools.generator.version>0.6.2-SNAPSHOT</yangtools.generator.version>
47         <config.version>0.2.5-SNAPSHOT</config.version>
48     </properties>
49
50     <pluginRepositories>
51         <!-- Opendaylight public group -->
52         <pluginRepository>
53             <id>odlPublic</id>
54             <name>odlPublic</name>
55             <url>${nexusproxy}/groups/public/</url>
56             <snapshots>
57               <enabled>false</enabled>
58             </snapshots>
59         </pluginRepository>
60         <!-- OpenDayLight Snapshot artifact -->
61         <pluginRepository>
62             <id>opendaylight-snapshot</id>
63             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
64             <releases>
65               <enabled>false</enabled>
66             </releases>
67         </pluginRepository>
68     </pluginRepositories>
69
70
71     <repositories>
72         <!-- Opendaylight public group -->
73         <repository>
74             <id>odlPublic</id>
75             <name>odlPublic</name>
76             <url>${nexusproxy}/groups/public/</url>
77             <snapshots>
78               <enabled>false</enabled>
79             </snapshots>
80         </repository>
81         <!-- OpenDayLight Snapshot artifact -->
82         <repository>
83             <id>opendaylight-snapshot</id>
84             <name>opendaylight-snapshot</name>
85             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
86             <releases>
87               <enabled>false</enabled>
88             </releases>
89         </repository>
90     </repositories>
91     <distributionManagement>
92         <!-- OpenDayLight Released artifact -->
93         <repository>
94             <id>opendaylight-release</id>
95             <url>${nexusproxy}/repositories/opendaylight.release/</url>
96         </repository>
97         <!-- OpenDayLight Snapshot artifact -->
98         <snapshotRepository>
99             <id>opendaylight-snapshot</id>
100             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
101         </snapshotRepository>
102         <!-- Site deployment -->
103         <!-- site>
104             <id>website</id>
105             <url>${sitedeploy}</url>
106         </site -->
107     </distributionManagement>
108
109
110     <dependencyManagement>
111         <dependencies>
112             <dependency>
113                 <groupId>org.slf4j</groupId>
114                 <artifactId>slf4j-api</artifactId>
115                 <version>${slf4j.version}</version>
116             </dependency>
117             <dependency>
118                 <groupId>io.netty</groupId>
119                 <artifactId>netty-buffer</artifactId>
120                 <version>${netty.version}</version>
121             </dependency>
122             <dependency>
123                 <groupId>io.netty</groupId>
124                 <artifactId>netty-handler</artifactId>
125                 <version>${netty.version}</version>
126             </dependency>
127             <dependency>
128                 <groupId>com.google.guava</groupId>
129                 <artifactId>guava</artifactId>
130                 <version>${guava.version}</version>
131             </dependency>
132             <dependency>
133                 <groupId>org.opendaylight.yangtools.model</groupId>
134                 <artifactId>ietf-inet-types</artifactId>
135                 <version>${ietf.model.version}</version>
136             </dependency>
137             <dependency>
138                 <groupId>org.opendaylight.yangtools.model</groupId>
139                 <artifactId>ietf-yang-types</artifactId>
140                 <version>${ietf.model.version}</version>
141             </dependency>
142             <dependency>
143                 <groupId>org.opendaylight.yangtools.model</groupId>
144                 <artifactId>yang-ext</artifactId>
145                 <version>${yang.ext.version}</version>
146             </dependency>
147             <dependency>
148                 <groupId>org.osgi</groupId>
149                 <artifactId>org.osgi.core</artifactId>
150                 <version>5.0.0</version>
151             </dependency>
152             <dependency>
153                 <groupId>junit</groupId>
154                 <artifactId>junit</artifactId>
155                 <version>4.10</version>
156                 <scope>test</scope>
157                 <optional>true</optional>
158             </dependency>
159             <dependency>
160                 <groupId>org.mockito</groupId>
161                 <artifactId>mockito-all</artifactId>
162                 <version>1.9.5</version>
163                 <scope>test</scope>
164             </dependency>
165         </dependencies>
166     </dependencyManagement>
167     <build>
168         <plugins>
169             <plugin>
170                 <groupId>org.apache.maven.plugins</groupId>
171                 <artifactId>maven-compiler-plugin</artifactId>
172                 <version>${compiler.version}</version>
173                 <inherited>true</inherited>
174                 <configuration>
175                     <source>1.7</source>
176                     <target>1.7</target>
177                 </configuration>
178             </plugin>
179             <plugin>
180                 <artifactId>maven-source-plugin</artifactId>
181                 <executions>
182                     <execution>
183                         <id>attach-sources</id>
184                         <phase>deploy</phase>
185                         <goals>
186                             <goal>jar-no-fork</goal>
187                         </goals> 
188                     </execution>
189                 </executions>
190             </plugin>
191             <plugin>
192               <groupId>org.apache.felix</groupId>
193               <artifactId>maven-bundle-plugin</artifactId>
194               <version>${maven.bundle.version}</version>
195               <extensions>true</extensions>
196               <configuration>
197                 <instructions>
198                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
199                 </instructions>
200                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
201               </configuration>
202             </plugin>
203             <plugin>
204               <groupId>org.apache.maven.plugins</groupId>
205               <artifactId>maven-checkstyle-plugin</artifactId>
206               <version>2.12</version>
207               <configuration>
208                 <failOnViolation>false</failOnViolation>
209                 <configLocation>checkstyle-logging.xml</configLocation>
210                 <consoleOutput>true</consoleOutput>
211                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
212                 <sourceDirectory>${project.basedir}</sourceDirectory>
213                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
214                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
215               </configuration>
216               <dependencies>
217                 <dependency>
218                 <groupId>org.opendaylight.yangtools</groupId>
219                 <artifactId>checkstyle-logging</artifactId>
220                 <version>${yangtools.version}</version>
221                 </dependency>
222               </dependencies>
223               <executions>
224                 <execution>
225                 <goals>
226                   <goal>check</goal>
227                 </goals>
228                 </execution>
229               </executions>
230             </plugin>
231         </plugins>
232         <pluginManagement>
233             <plugins>
234                 <plugin>
235                     <groupId>org.apache.maven.plugins</groupId>
236                     <artifactId>maven-source-plugin</artifactId>
237                     <version>2.2.1</version>
238                 </plugin>
239                 <plugin>
240                     <groupId>org.apache.maven.plugins</groupId>
241                     <artifactId>maven-deploy-plugin</artifactId>
242                     <version>2.7</version>
243                 </plugin>
244                 <plugin>
245                     <groupId>org.apache.maven.plugins</groupId>
246                     <artifactId>maven-jar-plugin</artifactId>
247                     <version>2.4</version>
248                 </plugin>
249                 <plugin>
250                     <groupId>org.apache.maven.plugins</groupId>
251                     <artifactId>maven-release-plugin</artifactId>
252                     <version>${releaseplugin.version}</version>
253                 </plugin>
254                 <plugin>
255                     <groupId>org.opendaylight.yangtools</groupId>
256                     <artifactId>yang-maven-plugin</artifactId>
257                     <version>${yangtools.version}</version>
258                 </plugin>
259                 <plugin>
260                     <groupId>org.apache.felix</groupId>
261                     <artifactId>maven-bundle-plugin</artifactId>
262                     <version>${maven.bundle.version}</version>
263                 </plugin>
264             </plugins>
265         </pluginManagement>
266     </build>
267     <reporting>
268         <plugins>
269             <plugin>
270                 <groupId>org.codehaus.mojo</groupId>
271                 <artifactId>findbugs-maven-plugin</artifactId>
272                 <version>2.5.2</version>
273                 <configuration>
274                     <effort>Max</effort>
275                     <threshold>Low</threshold>
276                     <goal>site</goal>
277                 </configuration>
278             </plugin>
279             <plugin>
280               <artifactId>maven-jxr-plugin</artifactId>
281               <version>2.3</version>
282               <configuration>
283                 <aggregate>true</aggregate>
284                 <linkJavadoc>true</linkJavadoc>
285               </configuration>
286             </plugin>
287
288             <plugin>
289                 <groupId>org.codehaus.mojo</groupId>
290                 <artifactId>jdepend-maven-plugin</artifactId>
291                 <version>2.0-beta-2</version>
292             </plugin>
293         </plugins>
294     </reporting>
295     <profiles>
296         <profile>
297             <id>viewbuild</id>
298             <activation>
299                 <activeByDefault>true</activeByDefault>
300             </activation>
301             <properties>
302                 <build.suffix>${project.version}</build.suffix>
303             </properties>
304         </profile>
305         <profile>
306             <id>jenkins</id>
307             <activation>
308                 <property>
309                     <name>BUILDSUFFIX</name>
310                 </property>
311             </activation>
312             <properties>
313                 <build.suffix>${BUILDSUFFIX}</build.suffix>
314             </properties>
315         </profile>
316         <profile>
317             <id>repoBuild</id>
318             <build>
319                 <plugins>
320                     <plugin>
321                         <groupId>org.apache.maven.plugins</groupId>
322                         <artifactId>maven-javadoc-plugin</artifactId>
323                         <version>2.8.1</version>
324                         <executions>
325                             <execution>
326                                 <goals>
327                                     <goal>aggregate</goal>
328                                 </goals>
329                                 <phase>site</phase>
330                             </execution>
331                             <execution>
332                                 <id>attach-javadocs</id>
333                                 <goals>
334                                     <goal>jar</goal>
335                                 </goals>
336                             </execution>
337                         </executions>
338                     </plugin>
339                     <plugin>
340                         <groupId>org.apache.maven.plugins</groupId>
341                         <artifactId>maven-source-plugin</artifactId>
342                         <executions>
343                             <execution>
344                                 <id>attach-sources</id>
345                                 <phase>package</phase>
346                                 <goals>
347                                     <goal>jar-no-fork</goal>
348                                 </goals>
349                             </execution>
350                         </executions>
351                     </plugin>
352                 </plugins>
353             </build>
354         </profile>
355     </profiles>
356 </project>