DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 2 | <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"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 4 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 5 | <groupId>org.onap.ccsdk.parent</groupId> |
| 6 | <artifactId>client-parent</artifactId> |
Timoney, Dan (dt5972) | f65e161 | 2022-10-05 09:49:51 -0400 | [diff] [blame^] | 7 | <version>2.4.4-SNAPSHOT</version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 8 | <packaging>pom</packaging> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 9 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 10 | <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name> |
| 11 | <description>Root POM to be used for yang2swagger generation in CCSDK based projects</description> |
| 12 | <url>http://wiki.onap.org</url> |
| 13 | <organization> |
| 14 | <name>ONAP</name> |
| 15 | </organization> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 16 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 17 | <issueManagement> |
| 18 | <system>JIRA</system> |
| 19 | <url>https://jira.onap.org/</url> |
| 20 | </issueManagement> |
| 21 | <distributionManagement> |
| 22 | <repository> |
| 23 | <id>ecomp-releases</id> |
| 24 | <url>https://nexus.onap.org/content/repositories/releases</url> |
| 25 | </repository> |
| 26 | <snapshotRepository> |
| 27 | <id>ecomp-snapshots</id> |
| 28 | <url>https://nexus.onap.org/content/repositories/snapshots</url> |
| 29 | </snapshotRepository> |
| 30 | </distributionManagement> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 31 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 32 | <properties> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 33 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 34 | <!-- properties from oparent --> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 36 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 37 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 38 | <!-- sitePath may be overridden in the inheriting POM if desired --> |
| 39 | <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 40 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 41 | <!-- ONAP repositories --> |
| 42 | <onap.nexus.host>nexus.onap.org</onap.nexus.host> |
| 43 | <onap.nexus.port>443</onap.nexus.port> |
| 44 | <onap.nexus.protocol>https</onap.nexus.protocol> |
| 45 | <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> |
| 46 | <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> |
| 47 | <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> |
| 48 | <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> |
| 49 | <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> |
| 50 | <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 51 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 52 | <!-- OpenDaylight repositories --> |
| 53 | <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url> |
| 54 | <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 55 | |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 56 | <java.version>11</java.version> |
| 57 | <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> |
| 58 | <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version> |
| 59 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 60 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 61 | <checkstyle.skip>true</checkstyle.skip> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 62 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 63 | <org.json.version>20170516</org.json.version> |
Dan Timoney | ef9f676 | 2020-08-21 11:50:09 -0400 | [diff] [blame] | 64 | <jackson.version>2.11.0</jackson.version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 65 | <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560 |
| 66 | is fixed (either in PowerMock or with a new JUnit release) --> |
| 67 | <!-- Used everywhere --> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 68 | <junit.version>4.13</junit.version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 69 | <mockito.version>2.8.9</mockito.version> |
| 70 | <lombok.version>1.18.0</lombok.version> |
| 71 | <openpojo.version>0.8.10</openpojo.version> |
| 72 | <spring.version>4.3.7.RELEASE</spring.version> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 73 | <javax.validation.version>1.1.0.Final</javax.validation.version> |
| 74 | <swagger.version>1.5.21</swagger.version> |
| 75 | <yangtools.version>1.2.3</yangtools.version> |
| 76 | <yang2swagger.version>1.1.12</yang2swagger.version> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 77 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 78 | <!-- ONAP repositories --> |
| 79 | <onap.nexus.host>nexus.onap.org</onap.nexus.host> |
| 80 | <onap.nexus.port>443</onap.nexus.port> |
| 81 | <onap.nexus.protocol>https</onap.nexus.protocol> |
| 82 | <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url> |
| 83 | <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url> |
| 84 | <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url> |
| 85 | <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url> |
| 86 | <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id> |
| 87 | <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 88 | |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 89 | <!-- Default api name for client --> |
| 90 | <api.name>client</api.name> |
| 91 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 92 | </properties> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 93 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 94 | <dependencies> |
| 95 | <dependency> |
| 96 | <groupId>org.mockito</groupId> |
| 97 | <artifactId>mockito-core</artifactId> |
| 98 | <version>${mockito.version}</version> |
| 99 | <scope>test</scope> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.projectlombok</groupId> |
| 103 | <artifactId>lombok</artifactId> |
| 104 | <version>${lombok.version}</version> |
| 105 | <scope>provided</scope> |
| 106 | </dependency> |
| 107 | <dependency> |
| 108 | <groupId>com.openpojo</groupId> |
| 109 | <artifactId>openpojo</artifactId> |
| 110 | <version>${openpojo.version}</version> |
| 111 | <scope>test</scope> |
| 112 | </dependency> |
| 113 | <dependency> |
| 114 | <groupId>junit</groupId> |
| 115 | <artifactId>junit</artifactId> |
| 116 | <version>${junit.version}</version> |
| 117 | <scope>test</scope> |
| 118 | </dependency> |
| 119 | <dependency> |
| 120 | <groupId>org.json</groupId> |
| 121 | <artifactId>json</artifactId> |
| 122 | <version>${org.json.version}</version> |
| 123 | </dependency> |
| 124 | <dependency> |
| 125 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 126 | <artifactId>jackson-jaxrs-base</artifactId> |
| 127 | <version>${jackson.version}</version> |
| 128 | </dependency> |
| 129 | <dependency> |
| 130 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 131 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 132 | <version>${jackson.version}</version> |
| 133 | </dependency> |
| 134 | <dependency> |
| 135 | <groupId>com.fasterxml.jackson.datatype</groupId> |
| 136 | <artifactId>jackson-datatype-jsr310</artifactId> |
| 137 | <version>${jackson.version}</version> |
| 138 | </dependency> |
| 139 | <dependency> |
| 140 | <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 141 | <artifactId>jackson-dataformat-xml</artifactId> |
| 142 | <version>${jackson.version}</version> |
| 143 | </dependency> |
| 144 | <dependency> |
| 145 | <groupId>com.fasterxml.jackson.core</groupId> |
| 146 | <artifactId>jackson-core</artifactId> |
| 147 | <version>${jackson.version}</version> |
| 148 | </dependency> |
| 149 | <dependency> |
| 150 | <groupId>com.fasterxml.jackson.core</groupId> |
| 151 | <artifactId>jackson-databind</artifactId> |
| 152 | <version>${jackson.version}</version> |
| 153 | </dependency> |
| 154 | <dependency> |
| 155 | <groupId>com.fasterxml.jackson.core</groupId> |
| 156 | <artifactId>jackson-annotations</artifactId> |
| 157 | <version>${jackson.version}</version> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>com.fasterxml.jackson.module</groupId> |
| 161 | <artifactId>jackson-module-jaxb-annotations</artifactId> |
| 162 | <version>${jackson.version}</version> |
| 163 | </dependency> |
| 164 | <dependency> |
| 165 | <groupId>org.springframework</groupId> |
| 166 | <artifactId>spring-web</artifactId> |
| 167 | <version>${spring.version}</version> |
| 168 | </dependency> |
| 169 | <dependency> |
| 170 | <groupId>io.swagger</groupId> |
| 171 | <artifactId>swagger-annotations</artifactId> |
| 172 | <version>${swagger.version}</version> |
| 173 | </dependency> |
| 174 | <dependency> |
| 175 | <groupId>javax.validation</groupId> |
| 176 | <artifactId>validation-api</artifactId> |
| 177 | <version>${javax.validation.version}</version> |
| 178 | </dependency> |
| 179 | <dependency> |
| 180 | <groupId>io.swagger</groupId> |
| 181 | <artifactId>swagger-jaxrs</artifactId> |
| 182 | <version>${swagger.version}</version> |
| 183 | </dependency> |
| 184 | <dependency> |
| 185 | <groupId>io.swagger</groupId> |
| 186 | <artifactId>swagger-models</artifactId> |
| 187 | <version>${swagger.version}</version> |
| 188 | </dependency> |
| 189 | </dependencies> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 190 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 191 | <repositories> |
| 192 | <repository> |
| 193 | <id>onap-public</id> |
| 194 | <url>https://nexus.onap.org/content/groups/public</url> |
| 195 | <releases> |
| 196 | <enabled>true</enabled> |
| 197 | <updatePolicy>never</updatePolicy> |
| 198 | </releases> |
| 199 | <snapshots> |
| 200 | <enabled>true</enabled> |
| 201 | <updatePolicy>always</updatePolicy> |
| 202 | </snapshots> |
| 203 | </repository> |
| 204 | <repository> |
| 205 | <id>onap-staging</id> |
| 206 | <url>https://nexus.onap.org/content/groups/staging</url> |
| 207 | <releases> |
| 208 | <enabled>true</enabled> |
| 209 | <updatePolicy>never</updatePolicy> |
| 210 | </releases> |
| 211 | <snapshots> |
| 212 | <enabled>true</enabled> |
| 213 | <updatePolicy>always</updatePolicy> |
| 214 | </snapshots> |
| 215 | </repository> |
| 216 | <repository> |
| 217 | <id>ecomp-release</id> |
| 218 | <name>onap-repository-releases</name> |
| 219 | <url>https://nexus.onap.org/content/repositories/releases</url> |
| 220 | <releases> |
| 221 | <enabled>true</enabled> |
| 222 | <updatePolicy>never</updatePolicy> |
| 223 | </releases> |
| 224 | <snapshots> |
| 225 | <enabled>false</enabled> |
| 226 | </snapshots> |
| 227 | </repository> |
| 228 | <repository> |
| 229 | <id>ecomp-snapshot</id> |
| 230 | <name>onap-repository-snapshots</name> |
| 231 | <url>https://nexus.onap.org/content/repositories/snapshots</url> |
| 232 | <releases> |
| 233 | <enabled>false</enabled> |
| 234 | </releases> |
| 235 | <snapshots> |
| 236 | <enabled>true</enabled> |
| 237 | </snapshots> |
| 238 | </repository> |
| 239 | <repository> |
| 240 | <id>opendaylight-mirror</id> |
| 241 | <name>opendaylight-mirror</name> |
| 242 | <url>https://nexus.opendaylight.org/content/repositories/public/</url> |
| 243 | <releases> |
| 244 | <enabled>true</enabled> |
| 245 | <updatePolicy>never</updatePolicy> |
| 246 | </releases> |
| 247 | <snapshots> |
| 248 | <enabled>false</enabled> |
| 249 | </snapshots> |
| 250 | </repository> |
| 251 | <repository> |
| 252 | <id>opendaylight-snapshot</id> |
| 253 | <name>opendaylight-snapshot</name> |
| 254 | <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> |
| 255 | <releases> |
| 256 | <enabled>false</enabled> |
| 257 | </releases> |
| 258 | <snapshots> |
| 259 | <enabled>true</enabled> |
| 260 | </snapshots> |
| 261 | </repository> |
| 262 | <repository> |
| 263 | <snapshots> |
| 264 | <enabled>false</enabled> |
| 265 | </snapshots> |
| 266 | <id>onap-bintray</id> |
| 267 | <name>onap-bintray</name> |
| 268 | <url>https://nexus.onap.org/content/repositories/bintray/</url> |
| 269 | </repository> |
| 270 | </repositories> |
| 271 | <pluginRepositories> |
| 272 | <pluginRepository> |
| 273 | <id>onap-public</id> |
| 274 | <url>${onap.nexus.public-url}</url> |
| 275 | <releases> |
| 276 | <enabled>true</enabled> |
| 277 | </releases> |
| 278 | <snapshots> |
| 279 | <enabled>true</enabled> |
| 280 | </snapshots> |
| 281 | </pluginRepository> |
| 282 | <pluginRepository> |
| 283 | <id>onap-staging</id> |
| 284 | <url>${onap.nexus.staging-url}</url> |
| 285 | <releases> |
| 286 | <enabled>true</enabled> |
| 287 | </releases> |
| 288 | <snapshots> |
| 289 | <enabled>true</enabled> |
| 290 | </snapshots> |
| 291 | </pluginRepository> |
| 292 | <pluginRepository> |
| 293 | <id>onap-snapshot</id> |
| 294 | <url>${onap.nexus.snapshot-url}</url> |
| 295 | <releases> |
| 296 | <enabled>false</enabled> |
| 297 | </releases> |
| 298 | <snapshots> |
| 299 | <enabled>true</enabled> |
| 300 | </snapshots> |
| 301 | </pluginRepository> |
| 302 | <pluginRepository> |
| 303 | <id>opendaylight-mirror</id> |
| 304 | <name>opendaylight-mirror</name> |
| 305 | <url>${opendaylight.nexus.public-url}</url> |
| 306 | <releases> |
| 307 | <enabled>true</enabled> |
| 308 | <updatePolicy>never</updatePolicy> |
| 309 | </releases> |
| 310 | <snapshots> |
| 311 | <enabled>false</enabled> |
| 312 | </snapshots> |
| 313 | </pluginRepository> |
| 314 | <pluginRepository> |
| 315 | <id>opendaylight-snapshot</id> |
| 316 | <name>opendaylight-snapshot</name> |
| 317 | <url>${opendaylight.nexus.snapshot-url}</url> |
| 318 | <releases> |
| 319 | <enabled>false</enabled> |
| 320 | </releases> |
| 321 | <snapshots> |
| 322 | <enabled>true</enabled> |
| 323 | </snapshots> |
| 324 | </pluginRepository> |
| 325 | <!-- Black Duck plugin dependencies --> |
| 326 | <pluginRepository> |
| 327 | <id>JCenter</id> |
| 328 | <name>JCenter Repository</name> |
| 329 | <url>http://jcenter.bintray.com</url> |
| 330 | </pluginRepository> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 331 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 332 | <pluginRepository> |
| 333 | <id>Restlet</id> |
| 334 | <name>Restlet Repository</name> |
| 335 | <url>http://maven.restlet.com</url> |
| 336 | </pluginRepository> |
Timoney, Dan (dt5972) | 0b24f8e | 2018-08-17 14:38:54 -0400 | [diff] [blame] | 337 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 338 | <pluginRepository> |
| 339 | <id>onap-bintray</id> |
| 340 | <name>onap-bintray</name> |
| 341 | <url>https://nexus.onap.org/content/repositories/bintray/</url> |
| 342 | </pluginRepository> |
| 343 | </pluginRepositories> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 344 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 345 | <build> |
| 346 | <pluginManagement> |
| 347 | <plugins> |
| 348 | <plugin> |
| 349 | <groupId>org.apache.maven.plugins</groupId> |
Singal, Kapil (ks220y) | e1d0e25 | 2021-02-01 22:06:16 -0500 | [diff] [blame] | 350 | <artifactId>maven-deploy-plugin</artifactId> |
| 351 | <!-- This version supports the "deployAtEnd" parameter --> |
| 352 | <version>2.8</version> |
| 353 | <configuration> |
| 354 | <skip/> |
| 355 | <deployAtEnd>true</deployAtEnd> |
| 356 | </configuration> |
| 357 | </plugin> |
| 358 | <plugin> |
| 359 | <groupId>org.apache.maven.plugins</groupId> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 360 | <artifactId>maven-compiler-plugin</artifactId> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 361 | <version>${maven-compiler-plugin.version}</version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 362 | <configuration> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 363 | <release>${java.version}</release> |
| 364 | <!--explicitly remove source and target--> |
| 365 | <source combine.self="override"/> |
| 366 | <target combine.self="override"/> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 367 | </configuration> |
| 368 | </plugin> |
| 369 | <plugin> |
| 370 | <groupId>org.apache.maven.plugins</groupId> |
Michael DÜrre | c6bdd9a | 2020-12-01 13:34:56 +0100 | [diff] [blame] | 371 | <artifactId>maven-surefire-plugin</artifactId> |
| 372 | <version>${maven-surefire-plugin.version}</version> |
| 373 | <configuration> |
| 374 | <!-- Sets the VM argument line used when unit tests are run. --> |
| 375 | <argLine>${surefireArgLine}</argLine> |
| 376 | <!-- Excludes integration tests when unit tests are run. --> |
| 377 | <excludes> |
| 378 | <exclude>**/IT*.java</exclude> |
| 379 | </excludes> |
| 380 | </configuration> |
| 381 | </plugin> |
| 382 | <plugin> |
| 383 | <groupId>org.apache.maven.plugins</groupId> |
| 384 | <artifactId>maven-failsafe-plugin</artifactId> |
| 385 | <version>${maven-failsafe-plugin.version}</version> |
| 386 | <executions> |
| 387 | <!-- Ensures that both integration-test and verify goals of the Failsafe Maven plugin are executed. --> |
| 388 | <execution> |
| 389 | <id>integration-tests</id> |
| 390 | <goals> |
| 391 | <goal>integration-test</goal> |
| 392 | <goal>verify</goal> |
| 393 | </goals> |
| 394 | <configuration> |
| 395 | <!-- Sets the VM argument line used when integration tests are run. --> |
| 396 | <argLine>${failsafeArgLine}</argLine> |
| 397 | </configuration> |
| 398 | </execution> |
| 399 | </executions> |
| 400 | </plugin> |
| 401 | <plugin> |
| 402 | <groupId>org.apache.maven.plugins</groupId> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 403 | <artifactId>maven-source-plugin</artifactId> |
| 404 | <version>3.0.1</version> |
| 405 | <executions> |
| 406 | <execution> |
| 407 | <id>install-sources</id> |
| 408 | <goals> |
| 409 | <goal>jar</goal> |
| 410 | </goals> |
| 411 | </execution> |
| 412 | <execution> |
| 413 | <id>deploy-sources</id> |
| 414 | <phase>deploy</phase> |
| 415 | <goals> |
| 416 | <goal>jar</goal> |
| 417 | </goals> |
| 418 | </execution> |
| 419 | </executions> |
| 420 | </plugin> |
| 421 | <plugin> |
| 422 | <groupId>org.apache.maven.plugins</groupId> |
| 423 | <artifactId>maven-dependency-plugin</artifactId> |
| 424 | <version>2.10</version> |
| 425 | <configuration> |
| 426 | <outputDirectory>${project.build.directory}/dependency</outputDirectory> |
| 427 | <includes>**\/*.yang</includes> |
| 428 | </configuration> |
| 429 | <executions> |
| 430 | <execution> |
| 431 | <id>unpack-shared-resources</id> |
| 432 | <goals> |
| 433 | <goal>unpack-dependencies</goal> |
| 434 | </goals> |
| 435 | <phase>initialize</phase> |
| 436 | </execution> |
| 437 | </executions> |
| 438 | </plugin> |
| 439 | <plugin> |
| 440 | <artifactId>maven-antrun-plugin</artifactId> |
| 441 | <version>1.8</version> |
| 442 | <executions> |
| 443 | <execution> |
| 444 | <phase>initialize</phase> |
| 445 | <goals> |
| 446 | <goal>run</goal> |
| 447 | </goals> |
| 448 | </execution> |
| 449 | </executions> |
| 450 | <configuration> |
| 451 | <tasks> |
| 452 | <!-- flatten out structure --> |
| 453 | <move todir="${project.build.directory}/dependency" failonerror="false"> |
| 454 | <fileset dir="${project.build.directory}/dependency"/> |
| 455 | <mapper type="flatten"/> |
| 456 | </move> |
| 457 | <!-- move to yang folder --> |
| 458 | <copy todir="${project.build.directory}/yang" failonerror="false"> |
| 459 | <fileset dir="${project.build.directory}/dependency" includes="**/*.yang"/> |
| 460 | <mapper type="flatten"/> |
| 461 | </copy> |
| 462 | <!-- add in hard coded items from src/main/yang --> |
| 463 | <copy todir="${project.build.directory}/yang" failonerror="false"> |
| 464 | <fileset dir="${project.basedir}/src/main/yang" includes="**/*.yang"/> |
| 465 | <mapper type="flatten"/> |
| 466 | </copy> |
| 467 | </tasks> |
| 468 | </configuration> |
| 469 | </plugin> |
| 470 | <plugin> |
| 471 | <groupId>org.opendaylight.yangtools</groupId> |
| 472 | <artifactId>yang-maven-plugin</artifactId> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 473 | <version>${yangtools.version}</version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 474 | <dependencies> |
| 475 | <dependency> |
| 476 | <groupId>com.mrv.yangtools</groupId> |
| 477 | <artifactId>swagger-maven-plugin</artifactId> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 478 | <version>${yang2swagger.version}</version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 479 | </dependency> |
| 480 | <dependency> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 481 | <groupId>com.fasterxml.jackson.core</groupId> |
| 482 | <artifactId>jackson-core</artifactId> |
| 483 | <version>${jackson.version}</version> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 484 | </dependency> |
| 485 | </dependencies> |
| 486 | <executions> |
| 487 | <execution> |
Singal, Kapil (ks220y) | 704554f | 2020-01-20 15:12:43 -0500 | [diff] [blame] | 488 | <id>binding</id> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 489 | <goals> |
| 490 | <goal>generate-sources</goal> |
| 491 | </goals> |
| 492 | <configuration> |
| 493 | <codeGenerators> |
| 494 | <generator> |
| 495 | <codeGeneratorClass>com.mrv.yangtools.maven.gen.swagger.MavenSwaggerGenerator</codeGeneratorClass> |
| 496 | <outputBaseDir>${project.build.directory}/generated-sources/swagger-maven-api-gen</outputBaseDir> |
| 497 | <resourceBaseDir>${project.build.directory}/yang</resourceBaseDir> |
| 498 | <additionalConfiguration> |
| 499 | <api-version>${project.version}</api-version> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 500 | <base-module>${api.name}</base-module> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 501 | <swagger-format>yaml</swagger-format> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 502 | <path-format>odl</path-format> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 503 | </additionalConfiguration> |
| 504 | </generator> |
| 505 | </codeGenerators> |
| 506 | <inspectDependencies>false</inspectDependencies> |
| 507 | <yangFilesRootDir>${project.build.directory}/yang</yangFilesRootDir> |
| 508 | </configuration> |
| 509 | </execution> |
| 510 | </executions> |
| 511 | </plugin> |
| 512 | <plugin> |
| 513 | <groupId>io.swagger</groupId> |
| 514 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 515 | <version>2.2.3</version> |
| 516 | <dependencies> |
| 517 | <dependency> |
| 518 | <groupId>com.fasterxml.jackson.core</groupId> |
| 519 | <artifactId>jackson-core</artifactId> |
| 520 | <version>${jackson.version}</version> |
| 521 | </dependency> |
| 522 | <dependency> |
| 523 | <groupId>com.fasterxml.jackson.core</groupId> |
| 524 | <artifactId>jackson-databind</artifactId> |
| 525 | <version>${jackson.version}</version> |
| 526 | </dependency> |
| 527 | <dependency> |
| 528 | <groupId>com.fasterxml.jackson.core</groupId> |
| 529 | <artifactId>jackson-annotations</artifactId> |
| 530 | <version>${jackson.version}</version> |
| 531 | </dependency> |
| 532 | <dependency> |
| 533 | <groupId>com.fasterxml.jackson.module</groupId> |
| 534 | <artifactId>jackson-module-jaxb-annotations</artifactId> |
| 535 | <version>${jackson.version}</version> |
| 536 | </dependency> |
| 537 | <dependency> |
| 538 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 539 | <artifactId>jackson-jaxrs-base</artifactId> |
| 540 | <version>${jackson.version}</version> |
| 541 | </dependency> |
| 542 | <dependency> |
| 543 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 544 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 545 | <version>${jackson.version}</version> |
| 546 | </dependency> |
| 547 | </dependencies> |
| 548 | <executions> |
| 549 | <execution> |
| 550 | <goals> |
| 551 | <goal>generate</goal> |
| 552 | </goals> |
| 553 | <configuration> |
Dan Timoney | c24de69 | 2020-04-21 13:26:37 -0400 | [diff] [blame] | 554 | <inputSpec>${project.build.directory}/generated-sources/swagger-maven-api-gen/${api.name}.yaml</inputSpec> |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 555 | <language>spring</language> |
| 556 | </configuration> |
| 557 | </execution> |
| 558 | </executions> |
| 559 | </plugin> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 560 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 561 | </plugins> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 562 | |
Singal, Kapil (ks220y) | 2e8a4da | 2019-10-01 22:31:50 -0400 | [diff] [blame] | 563 | </pluginManagement> |
| 564 | <plugins> |
| 565 | <plugin> |
| 566 | <groupId>org.codehaus.mojo</groupId> |
| 567 | <artifactId>versions-maven-plugin</artifactId> |
| 568 | <version>2.5</version> |
| 569 | <configuration> |
| 570 | <processAllModules>true</processAllModules> |
| 571 | </configuration> |
| 572 | </plugin> |
| 573 | <plugin> |
| 574 | <artifactId>maven-scm-plugin</artifactId> |
| 575 | <version>1.8.1</version> |
| 576 | <configuration> |
| 577 | <tag>${project.artifactId}-${project.version}</tag> |
| 578 | </configuration> |
| 579 | </plugin> |
| 580 | </plugins> |
| 581 | </build> |
DR695H | 849ca9b | 2018-07-10 18:04:11 -0400 | [diff] [blame] | 582 | </project> |