Brian O'Connor | 75218c2 | 2016-04-09 02:13:23 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 72b2df2 | 2017-08-03 18:48:28 -0700 | [diff] [blame] | 2 | ~ Copyright 2016-present Open Networking Foundation |
Brian O'Connor | 75218c2 | 2016-04-09 02:13:23 -0700 | [diff] [blame] | 3 | ~ |
| 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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 16 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 17 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Bharat saraswal | e304c25 | 2016-08-16 20:56:20 +0530 | [diff] [blame] | 18 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | |
| 21 | <parent> |
| 22 | <groupId>org.onosproject</groupId> |
Bharat saraswal | e304c25 | 2016-08-16 20:56:20 +0530 | [diff] [blame] | 23 | <artifactId>onos-base</artifactId> |
| 24 | <version>1</version> |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 25 | </parent> |
| 26 | |
Gaurav Agrawal | a599a8f | 2017-01-10 20:45:27 +0530 | [diff] [blame] | 27 | <artifactId>onos-yang-tools</artifactId> |
Ray Milkey | fee8b90 | 2019-01-14 10:23:24 -0800 | [diff] [blame^] | 28 | <version>2.6.1</version> |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 29 | <packaging>pom</packaging> |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 30 | |
Yuta HIGUCHI | 1bc3c23 | 2018-05-11 11:36:00 -0700 | [diff] [blame] | 31 | <prerequisites> |
| 32 | <maven>3.0.5</maven> |
| 33 | </prerequisites> |
| 34 | |
| 35 | |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 36 | <properties> |
| 37 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Yuta HIGUCHI | 328d29e | 2018-05-15 13:16:30 -0700 | [diff] [blame] | 38 | <onos-build-conf.version>1.13.1</onos-build-conf.version> |
Yuta HIGUCHI | 4e4674f | 2017-05-21 00:20:55 -0700 | [diff] [blame] | 39 | <guava.version>22.0</guava.version> |
Yuta HIGUCHI | 3a2aef7 | 2018-05-25 10:55:58 -0700 | [diff] [blame] | 40 | <errorprone.version>2.3.1</errorprone.version> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 41 | <betachecker.version>1.0</betachecker.version> |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 42 | </properties> |
| 43 | |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 44 | <modules> |
Gaurav Agrawal | a599a8f | 2017-01-10 20:45:27 +0530 | [diff] [blame] | 45 | <module>compiler</module> |
VinodKumarS-Huawei | 7501545 | 2016-11-23 21:03:45 +0530 | [diff] [blame] | 46 | <module>model</module> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 47 | <module>runtime</module> |
Henry Yu | 53b65be | 2017-02-12 13:12:22 -0500 | [diff] [blame] | 48 | <module>serializers</module> |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 49 | </modules> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 50 | |
Ray Milkey | ffd9ef8 | 2016-10-06 16:58:16 -0700 | [diff] [blame] | 51 | <!-- 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'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 64 | <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 HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 72 | <scope>test</scope> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>junit</groupId> |
| 76 | <artifactId>junit</artifactId> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 77 | <scope>test</scope> |
| 78 | </dependency> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 79 | <dependency> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 80 | <groupId>org.hamcrest</groupId> |
| 81 | <artifactId>hamcrest-all</artifactId> |
Ray Milkey | ffd9ef8 | 2016-10-06 16:58:16 -0700 | [diff] [blame] | 82 | <scope>test</scope> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 83 | </dependency> |
surya-huawei | 8b19ed0 | 2017-05-11 12:55:36 +0530 | [diff] [blame] | 84 | <!-- https://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse.jdt.core --> |
Vidyashree Rama | b6d41b2 | 2017-05-16 17:01:42 +0530 | [diff] [blame] | 85 | <!-- FIXME signature files generated by pkg need to be removed--> |
| 86 | <!--dependency> |
surya-huawei | 8b19ed0 | 2017-05-11 12:55:36 +0530 | [diff] [blame] | 87 | <groupId>org.eclipse.jdt</groupId> |
| 88 | <artifactId>org.eclipse.jdt.core</artifactId> |
| 89 | <version>3.10.0</version> |
Vidyashree Rama | b6d41b2 | 2017-05-16 17:01:42 +0530 | [diff] [blame] | 90 | </dependency--> |
Yuta HIGUCHI | 1bc3c23 | 2018-05-11 11:36:00 -0700 | [diff] [blame] | 91 | |
| 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'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 99 | </dependencies> |
| 100 | |
| 101 | <build> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 102 | <plugins> |
Yuta HIGUCHI | 1bc3c23 | 2018-05-11 11:36:00 -0700 | [diff] [blame] | 103 | |
| 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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 125 | <plugin> |
| 126 | <groupId>org.apache.maven.plugins</groupId> |
| 127 | <artifactId>maven-compiler-plugin</artifactId> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 128 | <version>3.7.0</version> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 129 | <configuration> |
| 130 | <source>1.8</source> |
| 131 | <target>1.8</target> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 132 | <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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 147 | </configuration> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 148 | <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 HIGUCHI | 3a2aef7 | 2018-05-25 10:55:58 -0700 | [diff] [blame] | 166 | <version>2.8.3</version> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 167 | </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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 176 | </plugin> |
| 177 | <plugin> |
| 178 | <groupId>org.apache.felix</groupId> |
| 179 | <artifactId>maven-bundle-plugin</artifactId> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 180 | <version>3.2.0</version> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 181 | <extensions>true</extensions> |
Yuta HIGUCHI | 4e4674f | 2017-05-21 00:20:55 -0700 | [diff] [blame] | 182 | <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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 192 | </plugin> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 193 | <plugin> |
| 194 | <groupId>org.apache.maven.plugins</groupId> |
| 195 | <artifactId>maven-checkstyle-plugin</artifactId> |
Yuta HIGUCHI | bb99f80 | 2018-05-15 10:45:58 -0700 | [diff] [blame] | 196 | <version>3.0.0</version> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 197 | <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 HIGUCHI | 1bc3c23 | 2018-05-11 11:36:00 -0700 | [diff] [blame] | 205 | <sourceDirectories> |
| 206 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 207 | </sourceDirectories> |
| 208 | <testSourceDirectories> |
| 209 | <testSourceDirectory>${project.build.testSourceDirectory}</testSourceDirectory> |
| 210 | </testSourceDirectories> |
Yuta HIGUCHI | cf489c3 | 2017-12-20 20:39:05 -0800 | [diff] [blame] | 211 | <configLocation>onos/checkstyle-mvn.xml</configLocation> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 212 | <suppressionsLocation>onos/suppressions.xml |
| 213 | </suppressionsLocation> |
| 214 | <failsOnError>false</failsOnError> |
| 215 | <logViolationsToConsole>true</logViolationsToConsole> |
| 216 | <includeTestSourceDirectory>true |
| 217 | </includeTestSourceDirectory> |
Yuta HIGUCHI | cf489c3 | 2017-12-20 20:39:05 -0800 | [diff] [blame] | 218 | <headerLocation>onos/apache2-java.header</headerLocation> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 219 | </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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 230 | </plugins> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 231 | </build> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 232 | <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 S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 267 | </project> |