blob: cbd1f978c1ae07a8524d6c605039713ce2d4ed0b [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 User916095c2018-05-11 01:22:58 +000028 <version>2.5-SNAPSHOT</version>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053029 <packaging>pom</packaging>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053030
31 <properties>
32 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Yuta HIGUCHIcf489c32017-12-20 20:39:05 -080033 <onos-build-conf.version>1.12.0</onos-build-conf.version>
Yuta HIGUCHI4e4674f2017-05-21 00:20:55 -070034 <guava.version>22.0</guava.version>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080035 <errorprone.version>2.2.0</errorprone.version>
36 <betachecker.version>1.0</betachecker.version>
Vinod Kumar S212fcdd2016-02-05 16:15:09 +053037 </properties>
38
Bharat saraswalc2d3be12016-06-16 00:29:12 +053039 <modules>
Gaurav Agrawala599a8f2017-01-10 20:45:27 +053040 <module>compiler</module>
VinodKumarS-Huawei75015452016-11-23 21:03:45 +053041 <module>model</module>
Thomas Vachuskaf40fb572016-11-20 11:43:57 -080042 <module>runtime</module>
Henry Yu53b65be2017-02-12 13:12:22 -050043 <module>serializers</module>
Bharat saraswalc2d3be12016-06-16 00:29:12 +053044 </modules>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070045
Ray Milkeyffd9ef82016-10-06 16:58:16 -070046 <!-- FIXME this can be removed if/when buck-api is released -->
47 <repositories>
48 <repository>
49 <id>snapshots</id>
50 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
51 <snapshots>
52 <enabled>true</enabled>
53 <updatePolicy>daily</updatePolicy>
54 <checksumPolicy>fail</checksumPolicy>
55 </snapshots>
56 </repository>
57 </repositories>
58
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070059 <dependencies>
60 <dependency>
61 <groupId>com.google.guava</groupId>
62 <artifactId>guava</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>org.osgi</groupId>
66 <artifactId>org.osgi.compendium</artifactId>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080067 <scope>test</scope>
68 </dependency>
69 <dependency>
70 <groupId>junit</groupId>
71 <artifactId>junit</artifactId>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070072 <scope>test</scope>
73 </dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070074 <dependency>
Ray Milkeyb322f082016-10-06 11:06:10 -070075 <groupId>org.hamcrest</groupId>
76 <artifactId>hamcrest-all</artifactId>
Ray Milkeyffd9ef82016-10-06 16:58:16 -070077 <scope>test</scope>
Ray Milkeyb322f082016-10-06 11:06:10 -070078 </dependency>
surya-huawei8b19ed02017-05-11 12:55:36 +053079 <!-- https://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse.jdt.core -->
Vidyashree Ramab6d41b22017-05-16 17:01:42 +053080 <!-- FIXME signature files generated by pkg need to be removed-->
81 <!--dependency>
surya-huawei8b19ed02017-05-11 12:55:36 +053082 <groupId>org.eclipse.jdt</groupId>
83 <artifactId>org.eclipse.jdt.core</artifactId>
84 <version>3.10.0</version>
Vidyashree Ramab6d41b22017-05-16 17:01:42 +053085 </dependency-->
Brian O'Connorc56a6ed2016-08-04 14:54:48 -070086 </dependencies>
87
88 <build>
Bharat saraswal9fab16b2016-09-23 23:27:24 +053089 <plugins>
90 <plugin>
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-compiler-plugin</artifactId>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080093 <version>3.7.0</version>
Bharat saraswal9fab16b2016-09-23 23:27:24 +053094 <configuration>
95 <source>1.8</source>
96 <target>1.8</target>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -080097 <compilerId>javac-with-errorprone</compilerId>
98 <forceJavacCompilerUse>true</forceJavacCompilerUse>
99 <annotationProcessorPaths>
100 <path>
101 <groupId>com.google.guava</groupId>
102 <artifactId>guava-beta-checker</artifactId>
103 <version>${betachecker.version}</version>
104 </path>
105 </annotationProcessorPaths>
106 <compilerArgs>
107 <compilerArg>-Xpkginfo:always</compilerArg>
108 <arg>-Xep:BetaApi:WARN</arg>
109 <!-- FIXME remove below once generated code is fixed -->
110 <arg>-XepExcludedPaths:${project.build.directory}/generated-sources/.*</arg>
111 </compilerArgs>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530112 </configuration>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800113 <executions>
114 <execution>
115 <id>default-testCompile</id>
116 <phase>test-compile</phase>
117 <goals>
118 <goal>testCompile</goal>
119 </goals>
120 <configuration>
121 <compilerArgs>
122 <arg>-Xep:BetaApi:OFF</arg>
123 </compilerArgs>
124 </configuration>
125 </execution>
126 </executions>
127 <dependencies>
128 <dependency>
129 <groupId>org.codehaus.plexus</groupId>
130 <artifactId>plexus-compiler-javac-errorprone</artifactId>
131 <version>2.8.2</version>
132 </dependency>
133 <dependency>
134 <groupId>com.google.errorprone</groupId>
135 <artifactId>error_prone_core</artifactId>
136 <!-- override plexus-compiler-javac-errorprone's dependency with the
137 latest Error Prone version -->
138 <version>${errorprone.version}</version>
139 </dependency>
140 </dependencies>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530141 </plugin>
142 <plugin>
143 <groupId>org.apache.felix</groupId>
144 <artifactId>maven-bundle-plugin</artifactId>
Thomas Vachuska17abb7f2017-03-02 13:59:46 -0800145 <version>3.2.0</version>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530146 <extensions>true</extensions>
Yuta HIGUCHI4e4674f2017-05-21 00:20:55 -0700147 <configuration>
148 <niceManifest>true</niceManifest>
149 <instructions>
150 <!-- Accept any version of Guava, released later than the one we use -->
151 <Import-Package>
152 com.google.*;version=${guava.version},
153 *
154 </Import-Package>
155 </instructions>
156 </configuration>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530157 </plugin>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800158 <plugin>
159 <groupId>org.apache.maven.plugins</groupId>
160 <artifactId>maven-checkstyle-plugin</artifactId>
161 <version>2.17</version>
162 <dependencies>
163 <dependency>
164 <groupId>org.onosproject</groupId>
165 <artifactId>onos-build-conf</artifactId>
166 <version>${onos-build-conf.version}</version>
167 </dependency>
168 </dependencies>
169 <configuration>
170 <!-- begin: workaround for unexpected NullPointerException on Eclipse -->
171 <sourceDirectory>${project.build.sourceDirectory}
172 </sourceDirectory>
173 <testSourceDirectory>${project.build.testSourceDirectory}
174 </testSourceDirectory>
175 <!-- end: workaround for unexpected NullPointerException on Eclipse -->
Yuta HIGUCHIcf489c32017-12-20 20:39:05 -0800176 <configLocation>onos/checkstyle-mvn.xml</configLocation>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800177 <suppressionsLocation>onos/suppressions.xml
178 </suppressionsLocation>
179 <failsOnError>false</failsOnError>
180 <logViolationsToConsole>true</logViolationsToConsole>
181 <includeTestSourceDirectory>true
182 </includeTestSourceDirectory>
Yuta HIGUCHIcf489c32017-12-20 20:39:05 -0800183 <headerLocation>onos/apache2-java.header</headerLocation>
Thomas Vachuska7c9cf602017-02-07 11:24:03 -0800184 </configuration>
185 <executions>
186 <execution>
187 <id>validate-checkstyle</id>
188 <phase>verify</phase>
189 <goals>
190 <goal>check</goal>
191 </goals>
192 </execution>
193 </executions>
194 </plugin>
Bharat saraswal9fab16b2016-09-23 23:27:24 +0530195 </plugins>
Brian O'Connorc56a6ed2016-08-04 14:54:48 -0700196 </build>
Yuta HIGUCHI5c8fa432018-01-26 18:56:40 -0800197 <dependencyManagement>
198 <dependencies>
199 <dependency>
200 <groupId>junit</groupId>
201 <artifactId>junit</artifactId>
202 <version>4.12</version>
203 </dependency>
204 <dependency>
205 <groupId>org.hamcrest</groupId>
206 <artifactId>hamcrest-all</artifactId>
207 <version>1.3</version>
208 </dependency>
209 <dependency>
210 <groupId>com.google.guava</groupId>
211 <artifactId>guava</artifactId>
212 <version>${guava.version}</version>
213 </dependency>
214 <dependency>
215 <groupId>org.osgi</groupId>
216 <artifactId>org.osgi.compendium</artifactId>
217 <version>5.0.0</version>
218 </dependency>
219 <dependency>
220 <groupId>org.slf4j</groupId>
221 <artifactId>slf4j-api</artifactId>
222 <version>1.7.21</version>
223 </dependency>
224 <dependency>
225 <groupId>org.osgi</groupId>
226 <artifactId>org.osgi.core</artifactId>
227 <version>5.0.0</version>
228 </dependency>
229 </dependencies>
230 </dependencyManagement>
231
Vinod Kumar S212fcdd2016-02-05 16:15:09 +0530232</project>