pom.xml revision b0160e9e
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- vi: set et smarttab sw=4 tabstop=4: -->
3<!--
4 Copyright (c) 2015 Cisco and/or its affiliates.
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at:
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17<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">
18
19  <parent>
20    <groupId>org.opendaylight.controller</groupId>
21    <artifactId>config-parent</artifactId>
22    <version>0.4.2-Beryllium-SR2</version>
23    <relativePath/>
24  </parent>
25
26  <modelVersion>4.0.0</modelVersion>
27  <groupId>io.fd.honeycomb.common</groupId>
28  <artifactId>impl-parent</artifactId>
29  <version>1.16.12-SNAPSHOT</version>
30  <packaging>pom</packaging>
31
32  <properties>
33    <checkstyle.header.file>APACHE_HEADER.txt</checkstyle.header.file>
34    <nexusproxy>http://nexus.fd.io/content</nexusproxy>
35    <guice.version>4.1.0</guice.version>
36    <guice.config.version>1.2.0</guice.config.version>
37    <mdsal.controller.version>1.3.2-Beryllium-SR2</mdsal.controller.version>
38    <mdsal.version>2.0.2-Beryllium-SR2</mdsal.version>
39    <netconf.version>1.0.2-Beryllium-SR2</netconf.version>
40    <skinny.logback.version>1.0.8</skinny.logback.version>
41  </properties>
42
43  <dependencyManagement>
44    <dependencies>
45      <dependency>
46        <groupId>org.opendaylight.controller</groupId>
47        <artifactId>mdsal-artifacts</artifactId>
48        <version>${mdsal.controller.version}</version>
49        <type>pom</type>
50        <scope>import</scope>
51      </dependency>
52      <dependency>
53        <groupId>org.opendaylight.mdsal</groupId>
54        <artifactId>mdsal-artifacts</artifactId>
55        <version>${mdsal.version}</version>
56        <type>pom</type>
57        <scope>import</scope>
58      </dependency>
59      <dependency>
60        <groupId>org.opendaylight.netconf</groupId>
61        <artifactId>netconf-artifacts</artifactId>
62        <version>${netconf.version}</version>
63        <type>pom</type>
64        <scope>import</scope>
65      </dependency>
66      <!-- DI -->
67      <dependency>
68        <groupId>com.google.inject</groupId>
69        <artifactId>guice</artifactId>
70        <version>${guice.version}</version>
71      </dependency>
72      <dependency>
73        <groupId>net.jmob</groupId>
74        <artifactId>guice.conf</artifactId>
75        <version>${guice.config.version}</version>
76      </dependency>
77      <dependency>
78        <groupId>com.google.inject.extensions</groupId>
79        <artifactId>guice-multibindings</artifactId>
80        <version>${guice.version}</version>
81      </dependency>
82      <dependency>
83        <groupId>org.skinny-framework</groupId>
84        <artifactId>skinny-logback</artifactId>
85        <version>${skinny.logback.version}</version>
86        <scope>test</scope>
87      </dependency>
88      <dependency>
89        <groupId>com.google.inject.extensions</groupId>
90        <artifactId>guice-testlib</artifactId>
91        <version>${guice.version}</version>
92        <scope>test</scope>
93      </dependency>
94    </dependencies>
95  </dependencyManagement>
96
97  <build>
98    <pluginManagement>
99      <plugins>
100        <plugin>
101          <artifactId>maven-checkstyle-plugin</artifactId>
102          <configuration>
103            <!-- Override checkstyle configuration to fit Honeycomb coding style-->
104            <configLocation>honeycomb-checkstyle.xml</configLocation>
105            <includeTestResources>true</includeTestResources>
106            <!--TODO HONEYCOMB-155 enable fail on violation after issues are resolved + set in as errors in checkstyle xml-->
107          </configuration>
108          <executions>
109
110            <!-- Override license check configuration to fit Honeycomb coding style-->
111            <execution>
112              <id>check-license</id>
113              <goals>
114                <goal>check</goal>
115              </goals>
116              <phase>process-sources</phase>
117              <configuration>
118                <headerLocation>HONEYCOMB_LICENSE.txt</headerLocation>
119                <failOnViolation>true</failOnViolation>
120                <failsOnError>true</failsOnError>
121                <outputFile>${project.build.directory}/checkstyle-license-result.xml</outputFile>
122              </configuration>
123            </execution>
124
125            <!-- Add logging checks from yangtools -->
126            <execution>
127              <id>check-logging</id>
128              <goals>
129                <goal>check</goal>
130              </goals>
131              <phase>process-sources</phase>
132              <configuration>
133                <failOnViolation>true</failOnViolation>
134                <configLocation>honeycomb-checkstyle-logging.xml</configLocation>
135                <consoleOutput>true</consoleOutput>
136                <includeTestSourceDirectory>true</includeTestSourceDirectory>
137                <sourceDirectory>${project.basedir}</sourceDirectory>
138                <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
139                <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/src/main/xtend-gen\/,**\/src/main/yang\/</excludes>
140                <outputFile>${project.build.directory}/checkstyle-logging-result.xml</outputFile>
141              </configuration>
142            </execution>
143            <execution>
144              <goals>
145                <goal>check</goal>
146              </goals>
147              <phase>process-sources</phase>
148            </execution>
149          </executions>
150          <dependencies>
151            <dependency>
152              <groupId>io.fd.honeycomb.common</groupId>
153              <artifactId>honeycomb-checkstyle</artifactId>
154              <!-- Hardcoded version to prevent archetype generated projects to use their own project version -->
155              <version>1.16.12-SNAPSHOT</version>
156            </dependency>
157            <!-- Necessary for logging checks -->
158            <dependency>
159              <groupId>org.opendaylight.yangtools</groupId>
160              <artifactId>checkstyle-logging</artifactId>
161              <version>${yangtools.version}</version>
162            </dependency>
163          </dependencies>
164        </plugin>
165        <!-- Deactivate strict java8 checks -->
166        <!-- TODO HONEYCOMB-156 fix all the javadoc offenders of doclint -->
167        <plugin>
168          <groupId>org.apache.maven.plugins</groupId>
169          <artifactId>maven-javadoc-plugin</artifactId>
170          <configuration>
171            <additionalparam>-Xdoclint:none</additionalparam>
172          </configuration>
173        </plugin>
174      </plugins>
175    </pluginManagement>
176    <plugins>
177      <plugin>
178        <artifactId>maven-checkstyle-plugin</artifactId>
179      </plugin>
180      <plugin>
181        <groupId>org.apache.maven.plugins</groupId>
182        <artifactId>maven-dependency-plugin</artifactId>
183        <version>2.10</version>
184        <executions>
185          <execution>
186            <id>unpack-license</id>
187            <phase>none</phase>
188            <goals><goal>unpack</goal></goals>
189          </execution>
190        </executions>
191      </plugin>
192      <plugin>
193        <groupId>org.apache.maven.plugins</groupId>
194        <artifactId>maven-compiler-plugin</artifactId>
195        <configuration>
196          <!-- Use google's error-prone static analysis-->
197          <compilerId>javac-with-errorprone</compilerId>
198          <forceJavacCompilerUse>true</forceJavacCompilerUse>
199          <showWarnings>true</showWarnings>
200          <source>1.8</source>
201          <target>1.8</target>
202        </configuration>
203        <dependencies>
204          <dependency>
205            <groupId>org.codehaus.plexus</groupId>
206            <artifactId>plexus-compiler-javac-errorprone</artifactId>
207            <version>2.5</version>
208          </dependency>
209          <!-- override plexus-compiler-javac-errorprone's dependency on
210               Error Prone with the latest version -->
211          <dependency>
212            <groupId>com.google.errorprone</groupId>
213            <artifactId>error_prone_core</artifactId>
214            <version>2.0.9</version>
215          </dependency>
216        </dependencies>
217      </plugin>
218    </plugins>
219  </build>
220
221
222  <distributionManagement>
223    <repository>
224      <id>fdio-release</id>
225      <url>${nexusproxy}/repositories/fd.io.release/</url>
226    </repository>
227    <snapshotRepository>
228      <id>fdio-snapshot</id>
229      <url>${nexusproxy}/repositories/fd.io.snapshot/</url>
230    </snapshotRepository>
231  </distributionManagement>
232</project>
233