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 | d791fee | 2018-02-09 10:02:13 -0800 | [diff] [blame^] | 28 | <version>2.5-SNAPSHOT</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 | |
| 31 | <properties> |
| 32 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Yuta HIGUCHI | cf489c3 | 2017-12-20 20:39:05 -0800 | [diff] [blame] | 33 | <onos-build-conf.version>1.12.0</onos-build-conf.version> |
Yuta HIGUCHI | 4e4674f | 2017-05-21 00:20:55 -0700 | [diff] [blame] | 34 | <guava.version>22.0</guava.version> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 35 | <errorprone.version>2.2.0</errorprone.version> |
| 36 | <betachecker.version>1.0</betachecker.version> |
Vinod Kumar S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 37 | </properties> |
| 38 | |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 39 | <modules> |
Gaurav Agrawal | a599a8f | 2017-01-10 20:45:27 +0530 | [diff] [blame] | 40 | <module>compiler</module> |
VinodKumarS-Huawei | 7501545 | 2016-11-23 21:03:45 +0530 | [diff] [blame] | 41 | <module>model</module> |
Thomas Vachuska | f40fb57 | 2016-11-20 11:43:57 -0800 | [diff] [blame] | 42 | <module>runtime</module> |
Henry Yu | 53b65be | 2017-02-12 13:12:22 -0500 | [diff] [blame] | 43 | <module>serializers</module> |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 44 | </modules> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 45 | |
Ray Milkey | ffd9ef8 | 2016-10-06 16:58:16 -0700 | [diff] [blame] | 46 | <!-- 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'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 59 | <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 HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 67 | <scope>test</scope> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>junit</groupId> |
| 71 | <artifactId>junit</artifactId> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 72 | <scope>test</scope> |
| 73 | </dependency> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 74 | <dependency> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 75 | <groupId>org.hamcrest</groupId> |
| 76 | <artifactId>hamcrest-all</artifactId> |
Ray Milkey | ffd9ef8 | 2016-10-06 16:58:16 -0700 | [diff] [blame] | 77 | <scope>test</scope> |
Ray Milkey | b322f08 | 2016-10-06 11:06:10 -0700 | [diff] [blame] | 78 | </dependency> |
surya-huawei | 8b19ed0 | 2017-05-11 12:55:36 +0530 | [diff] [blame] | 79 | <!-- https://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse.jdt.core --> |
Vidyashree Rama | b6d41b2 | 2017-05-16 17:01:42 +0530 | [diff] [blame] | 80 | <!-- FIXME signature files generated by pkg need to be removed--> |
| 81 | <!--dependency> |
surya-huawei | 8b19ed0 | 2017-05-11 12:55:36 +0530 | [diff] [blame] | 82 | <groupId>org.eclipse.jdt</groupId> |
| 83 | <artifactId>org.eclipse.jdt.core</artifactId> |
| 84 | <version>3.10.0</version> |
Vidyashree Rama | b6d41b2 | 2017-05-16 17:01:42 +0530 | [diff] [blame] | 85 | </dependency--> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 86 | </dependencies> |
| 87 | |
| 88 | <build> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 89 | <plugins> |
| 90 | <plugin> |
| 91 | <groupId>org.apache.maven.plugins</groupId> |
| 92 | <artifactId>maven-compiler-plugin</artifactId> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 93 | <version>3.7.0</version> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 94 | <configuration> |
| 95 | <source>1.8</source> |
| 96 | <target>1.8</target> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 97 | <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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 112 | </configuration> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 113 | <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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 141 | </plugin> |
| 142 | <plugin> |
| 143 | <groupId>org.apache.felix</groupId> |
| 144 | <artifactId>maven-bundle-plugin</artifactId> |
Thomas Vachuska | 17abb7f | 2017-03-02 13:59:46 -0800 | [diff] [blame] | 145 | <version>3.2.0</version> |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 146 | <extensions>true</extensions> |
Yuta HIGUCHI | 4e4674f | 2017-05-21 00:20:55 -0700 | [diff] [blame] | 147 | <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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 157 | </plugin> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 158 | <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 HIGUCHI | cf489c3 | 2017-12-20 20:39:05 -0800 | [diff] [blame] | 176 | <configLocation>onos/checkstyle-mvn.xml</configLocation> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 177 | <suppressionsLocation>onos/suppressions.xml |
| 178 | </suppressionsLocation> |
| 179 | <failsOnError>false</failsOnError> |
| 180 | <logViolationsToConsole>true</logViolationsToConsole> |
| 181 | <includeTestSourceDirectory>true |
| 182 | </includeTestSourceDirectory> |
Yuta HIGUCHI | cf489c3 | 2017-12-20 20:39:05 -0800 | [diff] [blame] | 183 | <headerLocation>onos/apache2-java.header</headerLocation> |
Thomas Vachuska | 7c9cf60 | 2017-02-07 11:24:03 -0800 | [diff] [blame] | 184 | </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 saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 195 | </plugins> |
Brian O'Connor | c56a6ed | 2016-08-04 14:54:48 -0700 | [diff] [blame] | 196 | </build> |
Yuta HIGUCHI | 5c8fa43 | 2018-01-26 18:56:40 -0800 | [diff] [blame] | 197 | <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 S | 212fcdd | 2016-02-05 16:15:09 +0530 | [diff] [blame] | 232 | </project> |