blob: 88fc04ac10c2868aac8c3ca16a486fac6193b8d6 [file] [log] [blame]
Brian O'Connor75218c22016-04-09 02:13:23 -07001<!--
Brian O'Connor72b2df22017-08-03 18:48:28 -07002 ~ Copyright 2016-present Open Networking Foundation
Brian O'Connor75218c22016-04-09 02:13:23 -07003 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
Bharat saraswal9fab16b2016-09-23 23:27:24 +053016<project xmlns="http://maven.apache.org/POM/4.0.0"
17 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Bharat saraswale304c252016-08-16 20:56:20 +053018 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053019 <modelVersion>4.0.0</modelVersion>
20
21 <parent>
22 <groupId>org.onosproject</groupId>
Bharat saraswale304c252016-08-16 20:56:20 +053023 <artifactId>onos-base</artifactId>
24 <version>1</version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053025 </parent>
26
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053027 <artifactId>onos-yang-tools</artifactId>
ONOS Jenkins User74825342018-11-26 21:40:10 +000028 <version>2.7-SNAPSHOT</version>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053029 <packaging>pom</packaging>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053030
Yuta HIGUCHI1bc3c232018-05-11 11:36:00 -070031 <prerequisites>
32 <maven>3.0.5</maven>
33 </prerequisites>
34
35
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053036 <properties>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Yuta HIGUCHI328d29e2018-05-15 13:16:30 -070038 <onos-build-conf.version>1.13.1</onos-build-conf.version>
Yuta HIGUCHI4e4674f2017-05-21 00:20:55 -070039 <guava.version>22.0</guava.version>
Yuta HIGUCHI3a2aef72018-05-25 10:55:58 -070040 <errorprone.version>2.3.1</errorprone.version>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080041 <betachecker.version>1.0</betachecker.version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053042 </properties>
43
Bharat saraswalc2d3be12016-06-16 00:29:12 +053044 <modules>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053045 <module>compiler</module>
VinodKumarS-Huawei75015452016-11-23 21:03:45 +053046 <module>model</module>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080047 <module>runtime</module>
Henry Yu53b65be2017-02-12 13:12:22 -050048 <module>serializers</module>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053049 </modules>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070050
Ray Milkeyffd9ef82016-10-06 16:58:16 -070051 <!-- FIXME this can be removed if/when buck-api is released -->
52 <repositories>
53 <repository>
54 <id>snapshots</id>
55 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
56 <snapshots>
57 <enabled>true</enabled>
58 <updatePolicy>daily</updatePolicy>
59 <checksumPolicy>fail</checksumPolicy>
60 </snapshots>
61 </repository>
62 </repositories>
63
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070064 <dependencies>
65 <dependency>
66 <groupId>com.google.guava</groupId>
67 <artifactId>guava</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>org.osgi</groupId>
71 <artifactId>org.osgi.compendium</artifactId>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080072 <scope>test</scope>
73 </dependency>
74 <dependency>
75 <groupId>junit</groupId>
76 <artifactId>junit</artifactId>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070077 <scope>test</scope>
78 </dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070079 <dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070080 <groupId>org.hamcrest</groupId>
81 <artifactId>hamcrest-all</artifactId>
Ray Milkeyffd9ef82016-10-06 16:58:16 -070082 <scope>test</scope>
Ray Milkeyb322f082016-10-06 11:06:10 -070083 </dependency>
surya-huawei8b19ed02017-05-11 12:55:36 +053084 <!-- https://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse.jdt.core -->
Vidyashree Ramab6d41b22017-05-16 17:01:42 +053085 <!-- FIXME signature files generated by pkg need to be removed-->
86 <!--dependency>
surya-huawei8b19ed02017-05-11 12:55:36 +053087 <groupId>org.eclipse.jdt</groupId>
88 <artifactId>org.eclipse.jdt.core</artifactId>
89 <version>3.10.0</version>
Vidyashree Ramab6d41b22017-05-16 17:01:42 +053090 </dependency-->
Yuta HIGUCHI1bc3c232018-05-11 11:36:00 -070091
92 <dependency>
93 <groupId>org.slf4j</groupId>
94 <artifactId>slf4j-jdk14</artifactId>
95 <version>1.7.21</version>
96 <scope>test</scope>
97 </dependency>
98
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070099 </dependencies>
100
101 <build>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530102 <plugins>
Yuta HIGUCHI1bc3c232018-05-11 11:36:00 -0700103
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-enforcer-plugin</artifactId>
107 <version>3.0.0-M1</version>
108 <executions>
109 <execution>
110 <id>enforce-maven</id>
111 <goals>
112 <goal>enforce</goal>
113 </goals>
114 <configuration>
115 <rules>
116 <requireMavenVersion>
117 <version>3.0.5</version>
118 </requireMavenVersion>
119 </rules>
120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
124
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530125 <plugin>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800128 <version>3.7.0</version>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530129 <configuration>
130 <source>1.8</source>
131 <target>1.8</target>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800132 <compilerId>javac-with-errorprone</compilerId>
133 <forceJavacCompilerUse>true</forceJavacCompilerUse>
134 <annotationProcessorPaths>
135 <path>
136 <groupId>com.google.guava</groupId>
137 <artifactId>guava-beta-checker</artifactId>
138 <version>${betachecker.version}</version>
139 </path>
140 </annotationProcessorPaths>
141 <compilerArgs>
142 <compilerArg>-Xpkginfo:always</compilerArg>
143 <arg>-Xep:BetaApi:WARN</arg>
144 <!-- FIXME remove below once generated code is fixed -->
145 <arg>-XepExcludedPaths:${project.build.directory}/generated-sources/.*</arg>
146 </compilerArgs>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530147 </configuration>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800148 <executions>
149 <execution>
150 <id>default-testCompile</id>
151 <phase>test-compile</phase>
152 <goals>
153 <goal>testCompile</goal>
154 </goals>
155 <configuration>
156 <compilerArgs>
157 <arg>-Xep:BetaApi:OFF</arg>
158 </compilerArgs>
159 </configuration>
160 </execution>
161 </executions>
162 <dependencies>
163 <dependency>
164 <groupId>org.codehaus.plexus</groupId>
165 <artifactId>plexus-compiler-javac-errorprone</artifactId>
Yuta HIGUCHI3a2aef72018-05-25 10:55:58 -0700166 <version>2.8.3</version>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800167 </dependency>
168 <dependency>
169 <groupId>com.google.errorprone</groupId>
170 <artifactId>error_prone_core</artifactId>
171 <!-- override plexus-compiler-javac-errorprone's dependency with the
172 latest Error Prone version -->
173 <version>${errorprone.version}</version>
174 </dependency>
175 </dependencies>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530176 </plugin>
177 <plugin>
178 <groupId>org.apache.felix</groupId>
179 <artifactId>maven-bundle-plugin</artifactId>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -0800180 <version>3.2.0</version>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530181 <extensions>true</extensions>
Yuta HIGUCHI4e4674f2017-05-21 00:20:55 -0700182 <configuration>
183 <niceManifest>true</niceManifest>
184 <instructions>
185 <!-- Accept any version of Guava, released later than the one we use -->
186 <Import-Package>
187 com.google.*;version=${guava.version},
188 *
189 </Import-Package>
190 </instructions>
191 </configuration>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530192 </plugin>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-checkstyle-plugin</artifactId>
Yuta HIGUCHIbb99f802018-05-15 10:45:58 -0700196 <version>3.0.0</version>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800197 <dependencies>
198 <dependency>
199 <groupId>org.onosproject</groupId>
200 <artifactId>onos-build-conf</artifactId>
201 <version>${onos-build-conf.version}</version>
202 </dependency>
203 </dependencies>
204 <configuration>
Yuta HIGUCHI1bc3c232018-05-11 11:36:00 -0700205 <sourceDirectories>
206 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
207 </sourceDirectories>
208 <testSourceDirectories>
209 <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory>
210 </testSourceDirectories>
Yuta HIGUCHIcf489c32017-12-20 20:39:05 -0800211 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800212 <suppressionsLocation>onos/suppressions.xml
213 </suppressionsLocation>
214 <failsOnError>false</failsOnError>
215 <logViolationsToConsole>true</logViolationsToConsole>
216 <includeTestSourceDirectory>true
217 </includeTestSourceDirectory>
Yuta HIGUCHIcf489c32017-12-20 20:39:05 -0800218 <headerLocation>onos/apache2-java.header</headerLocation>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800219 </configuration>
220 <executions>
221 <execution>
222 <id>validate-checkstyle</id>
223 <phase>verify</phase>
224 <goals>
225 <goal>check</goal>
226 </goals>
227 </execution>
228 </executions>
229 </plugin>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530230 </plugins>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -0700231 </build>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800232 <dependencyManagement>
233 <dependencies>
234 <dependency>
235 <groupId>junit</groupId>
236 <artifactId>junit</artifactId>
237 <version>4.12</version>
238 </dependency>
239 <dependency>
240 <groupId>org.hamcrest</groupId>
241 <artifactId>hamcrest-all</artifactId>
242 <version>1.3</version>
243 </dependency>
244 <dependency>
245 <groupId>com.google.guava</groupId>
246 <artifactId>guava</artifactId>
247 <version>${guava.version}</version>
248 </dependency>
249 <dependency>
250 <groupId>org.osgi</groupId>
251 <artifactId>org.osgi.compendium</artifactId>
252 <version>5.0.0</version>
253 </dependency>
254 <dependency>
255 <groupId>org.slf4j</groupId>
256 <artifactId>slf4j-api</artifactId>
257 <version>1.7.21</version>
258 </dependency>
259 <dependency>
260 <groupId>org.osgi</groupId>
261 <artifactId>org.osgi.core</artifactId>
262 <version>5.0.0</version>
263 </dependency>
264 </dependencies>
265 </dependencyManagement>
266
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530267</project>