Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
| 4 | ============LICENSE_START======================================================= |
| 5 | org.onap.aai |
| 6 | ================================================================================ |
LaMont, William(wl2432) | 86e7411 | 2020-04-14 14:00:00 -0400 | [diff] [blame^] | 7 | Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 8 | ================================================================================ |
| 9 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 | you may not use this file except in compliance with the License. |
| 11 | You may obtain a copy of the License at |
| 12 | |
| 13 | http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | |
| 15 | Unless required by applicable law or agreed to in writing, software |
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 | See the License for the specific language governing permissions and |
| 19 | limitations under the License. |
| 20 | ============LICENSE_END========================================================= |
| 21 | |
| 22 | --> |
| 23 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 26 | <parent> |
| 27 | <groupId>org.onap.aai.schema-service</groupId> |
| 28 | <artifactId>schema-service</artifactId> |
Jimmy Forsyth | 63a9b7f | 2020-04-08 12:16:04 -0400 | [diff] [blame] | 29 | <version>1.7.0-SNAPSHOT</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 30 | </parent> |
Jimmy Forsyth | 1bdeba3 | 2019-12-12 10:46:50 -0500 | [diff] [blame] | 31 | <groupId>org.onap.aai.schema-service</groupId> |
| 32 | <artifactId>aai-schema-service</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 33 | <properties> |
| 34 | <java.version>1.8</java.version> |
| 35 | <start-class>org.onap.aai.schemaservice.SchemaServiceApp</start-class> |
| 36 | |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 37 | <docker.fabric.version>0.28.0</docker.fabric.version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 38 | <!-- Default docker registry that maven fabric plugin will try to pull from --> |
| 39 | <docker.registry>docker.io</docker.registry> |
| 40 | <!-- Specifying the docker push registry where the image should be pushed --> |
| 41 | <!-- This value should be overwritten at runtime to wherever need to be pushed to --> |
| 42 | <docker.push.registry>localhost:5000</docker.push.registry> |
Dmitry Puzikov | 7b11e7c | 2019-05-13 13:04:00 +0200 | [diff] [blame] | 43 | <aai.docker.version>1.0.0</aai.docker.version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 44 | |
| 45 | <!-- |
| 46 | Location where assembly of our scripts, resources and main jar will be held |
| 47 | Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info |
| 48 | --> |
| 49 | <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/ |
| 50 | </aai.build.directory> |
| 51 | <aai.docker.namespace>onap</aai.docker.namespace> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 52 | <aai.base.image>alpine</aai.base.image> |
| 53 | <aai.base.image.version>1.6.0</aai.base.image.version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 54 | |
| 55 | <maven.skip.tests>true</maven.skip.tests> |
| 56 | |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 57 | <jacoco.line.coverage.limit>0.44</jacoco.line.coverage.limit> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 58 | |
| 59 | <!-- This will be used for the docker images as the default format of maven build has issues --> |
| 60 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 61 | <javadoc.plugin.version>2.10.4</javadoc.plugin.version> |
| 62 | |
| 63 | <!-- Start of Default ONAP Schema Properties --> |
| 64 | <schema.source.name>onap</schema.source.name> |
| 65 | <schema.configuration.location>N/A</schema.configuration.location> |
Dmitry Puzikov | 8c9c7b6 | 2019-08-29 11:49:09 +0200 | [diff] [blame] | 66 | <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm |
| 67 | </schema.nodes.location> |
| 68 | <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules |
| 69 | </schema.edges.location> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 70 | <schema.version.depth.start>v10</schema.version.depth.start> |
| 71 | <schema.version.related.link.start>v10</schema.version.related.link.start> |
| 72 | <schema.version.app.root.start>v11</schema.version.app.root.start> |
| 73 | <schema.version.namespace.change.start>v12</schema.version.namespace.change.start> |
| 74 | <schema.version.edge.label.start>v12</schema.version.edge.label.start> |
Harish Venkata Kajur | 127d57b | 2020-01-17 23:26:48 -0500 | [diff] [blame] | 75 | <schema.version.api.default>v19</schema.version.api.default> |
| 76 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19</schema.version.list> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 77 | <schema.uri.base.path>/aai/schema-service</schema.uri.base.path> |
| 78 | <!-- End of Default ONAP Schema Properties --> |
| 79 | |
| 80 | <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin --> |
| 81 | </properties> |
| 82 | <profiles> |
| 83 | <!-- Docker profile to be used for building docker image and pushing to nexus --> |
| 84 | <profile> |
| 85 | <id>docker</id> |
| 86 | <build> |
| 87 | <plugins> |
| 88 | <plugin> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 89 | <groupId>org.codehaus.groovy.maven</groupId> |
| 90 | <artifactId>gmaven-plugin</artifactId> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 91 | <executions> |
| 92 | <execution> |
Dmitry Puzikov | 8c9c7b6 | 2019-08-29 11:49:09 +0200 | [diff] [blame] | 93 | <phase>pre-clean</phase> |
| 94 | </execution> |
| 95 | <execution> |
| 96 | <id>parse-base</id> |
| 97 | <phase>pre-clean</phase> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 98 | <goals> |
| 99 | <goal>execute</goal> |
| 100 | </goals> |
| 101 | <configuration> |
| 102 | <source> |
| 103 | def userAaiBaseImage = session.userProperties['aai.base.image']; |
| 104 | def userAaiCommonVersion = session.userProperties['aai.base.image.version']; |
| 105 | if (userAaiCommonVersion != null) { |
| 106 | project.properties['aai.base.image.version'] = userAaiCommonVersion; |
| 107 | } |
| 108 | if (userAaiBaseImage != null) { |
| 109 | project.properties['aai.base.image'] = userAaiBaseImage; |
| 110 | } |
| 111 | log.info 'Base image flavour: ' + project.properties['aai.base.image']; |
| 112 | log.info 'Base image version: ' + project.properties['aai.base.image.version']; |
| 113 | </source> |
| 114 | </configuration> |
| 115 | </execution> |
| 116 | </executions> |
| 117 | </plugin> |
| 118 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 119 | <groupId>io.fabric8</groupId> |
| 120 | <artifactId>docker-maven-plugin</artifactId> |
| 121 | <version>${docker.fabric.version}</version> |
| 122 | <configuration> |
| 123 | <verbose>true</verbose> |
| 124 | <apiVersion>1.23</apiVersion> |
| 125 | <images> |
| 126 | <image> |
| 127 | <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name> |
| 128 | <build> |
| 129 | <filter>@</filter> |
| 130 | <tags> |
| 131 | <tag>latest</tag> |
| 132 | <tag>${project.docker.latesttag.version}</tag> |
| 133 | <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag> |
| 134 | </tags> |
| 135 | <cleanup>try</cleanup> |
| 136 | <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir> |
| 137 | <assembly> |
| 138 | <inline> |
| 139 | <fileSets> |
| 140 | <fileSet> |
| 141 | <directory>${aai.build.directory}</directory> |
| 142 | <outputDirectory>/${project.artifactId}</outputDirectory> |
| 143 | </fileSet> |
| 144 | </fileSets> |
| 145 | </inline> |
| 146 | </assembly> |
| 147 | </build> |
| 148 | </image> |
| 149 | </images> |
| 150 | </configuration> |
| 151 | <executions> |
| 152 | <execution> |
| 153 | <id>clean-images</id> |
| 154 | <phase>pre-clean</phase> |
| 155 | <goals> |
| 156 | <goal>remove</goal> |
| 157 | </goals> |
| 158 | <configuration> |
| 159 | <removeAll>true</removeAll> |
| 160 | </configuration> |
| 161 | </execution> |
| 162 | <execution> |
| 163 | <id>generate-images</id> |
| 164 | <phase>package</phase> |
| 165 | <goals> |
| 166 | <goal>build</goal> |
| 167 | </goals> |
| 168 | </execution> |
| 169 | <execution> |
| 170 | <id>push-images</id> |
| 171 | <phase>deploy</phase> |
| 172 | <goals> |
| 173 | <goal>push</goal> |
| 174 | </goals> |
| 175 | </execution> |
| 176 | </executions> |
| 177 | </plugin> |
| 178 | </plugins> |
| 179 | </build> |
| 180 | </profile> |
| 181 | <!-- Start of ONAP Profile --> |
| 182 | <profile> |
| 183 | <id>onap</id> |
| 184 | <properties> |
| 185 | <schema.source.name>onap</schema.source.name> |
| 186 | <schema.version.namespace.change.start>v12</schema.version.namespace.change.start> |
LaMont, William(wl2432) | 12671ef | 2020-03-10 17:11:42 -0400 | [diff] [blame] | 187 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,18,v19</schema.version.list> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 188 | </properties> |
| 189 | </profile> |
| 190 | <!-- End of ONAP Profile --> |
| 191 | <profile> |
| 192 | <id>runAjsc</id> |
| 193 | <properties> |
| 194 | <skipTests>${maven.skip.tests}</skipTests> |
| 195 | </properties> |
| 196 | <build> |
| 197 | <defaultGoal>pre-integration-test</defaultGoal> |
| 198 | <plugins> |
| 199 | <plugin> |
| 200 | <groupId>org.codehaus.mojo</groupId> |
| 201 | <artifactId>exec-maven-plugin</artifactId> |
| 202 | <version>1.6.0</version> |
| 203 | <executions> |
| 204 | <execution> |
| 205 | <id>run-spring-boot</id> |
| 206 | <phase>package</phase> |
| 207 | <goals> |
| 208 | <goal>java</goal> |
| 209 | </goals> |
| 210 | </execution> |
| 211 | </executions> |
| 212 | <configuration> |
| 213 | <mainClass>${start-class}</mainClass> |
| 214 | <systemProperties> |
| 215 | <property> |
| 216 | <key>schema.source.name</key> |
| 217 | <value>${schema.source.name}</value> |
| 218 | </property> |
| 219 | <property> |
| 220 | <key>schema.configuration.location</key> |
| 221 | <value>${schema.configuration.location}</value> |
| 222 | </property> |
| 223 | <property> |
| 224 | <key>schema.nodes.location</key> |
| 225 | <value>${schema.nodes.location}</value> |
| 226 | </property> |
| 227 | <property> |
| 228 | <key>schema.edges.location</key> |
| 229 | <value>${schema.edges.location}</value> |
| 230 | </property> |
| 231 | <property> |
| 232 | <key>schema.version.depth.start</key> |
| 233 | <value>${schema.version.depth.start}</value> |
| 234 | </property> |
| 235 | <property> |
| 236 | <key>schema.version.related.link.start</key> |
| 237 | <value>${schema.version.related.link.start}</value> |
| 238 | </property> |
| 239 | <property> |
| 240 | <key>schema.version.app.root.start</key> |
| 241 | <value>${schema.version.app.root.start}</value> |
| 242 | </property> |
| 243 | <property> |
| 244 | <key>schema.version.namespace.change.start</key> |
| 245 | <value>${schema.version.namespace.change.start}</value> |
| 246 | </property> |
| 247 | <property> |
| 248 | <key>schema.version.edge.label.start</key> |
| 249 | <value>${schema.version.edge.label.start}</value> |
| 250 | </property> |
| 251 | <property> |
| 252 | <key>schema.version.api.default</key> |
| 253 | <value>${schema.version.api.default}</value> |
| 254 | </property> |
| 255 | <property> |
| 256 | <key>schema.version.list</key> |
| 257 | <value>${schema.version.list}</value> |
| 258 | </property> |
| 259 | <property> |
| 260 | <key>schema.uri.base.path</key> |
| 261 | <value>${schema.uri.base.path}</value> |
| 262 | </property> |
| 263 | </systemProperties> |
| 264 | <executable>java</executable> |
| 265 | </configuration> |
| 266 | </plugin> |
| 267 | </plugins> |
| 268 | </build> |
| 269 | </profile> |
| 270 | </profiles> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 271 | <dependencies> |
| 272 | <dependency> |
| 273 | <groupId>com.att.eelf</groupId> |
| 274 | <artifactId>eelf-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 275 | </dependency> |
| 276 | <dependency> |
| 277 | <groupId>ch.qos.logback</groupId> |
| 278 | <artifactId>logback-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 279 | </dependency> |
| 280 | <dependency> |
| 281 | <groupId>ch.qos.logback</groupId> |
| 282 | <artifactId>logback-classic</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 283 | </dependency> |
| 284 | <dependency> |
| 285 | <groupId>ch.qos.logback</groupId> |
| 286 | <artifactId>logback-access</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 287 | </dependency> |
| 288 | <dependency> |
| 289 | <groupId>org.onap.aai.aai-common</groupId> |
| 290 | <artifactId>aai-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 291 | <exclusions> |
| 292 | <exclusion> |
| 293 | <groupId>com.sun.jersey</groupId> |
| 294 | <artifactId>jersey-core</artifactId> |
| 295 | </exclusion> |
| 296 | <exclusion> |
| 297 | <groupId>org.codehaus.jackson</groupId> |
| 298 | <artifactId>jackson-mapper-asl</artifactId> |
| 299 | </exclusion> |
| 300 | <exclusion> |
| 301 | <groupId>org.eclipse.jetty</groupId> |
| 302 | <artifactId>jetty-http</artifactId> |
| 303 | </exclusion> |
| 304 | <exclusion> |
| 305 | <groupId>org.eclipse.jetty</groupId> |
| 306 | <artifactId>jetty-server</artifactId> |
| 307 | </exclusion> |
| 308 | <exclusion> |
| 309 | <groupId>org.springframework</groupId> |
| 310 | <artifactId>spring-web</artifactId> |
| 311 | </exclusion> |
| 312 | <exclusion> |
| 313 | <groupId>org.onap.aai</groupId> |
| 314 | <artifactId>aai-schema-ingest</artifactId> |
| 315 | </exclusion> |
| 316 | </exclusions> |
| 317 | </dependency> |
| 318 | <dependency> |
| 319 | <groupId>org.hamcrest</groupId> |
| 320 | <artifactId>hamcrest-junit</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 321 | </dependency> |
| 322 | <dependency> |
| 323 | <groupId>junit</groupId> |
| 324 | <artifactId>junit</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 325 | <scope>test</scope> |
| 326 | </dependency> |
| 327 | <dependency> |
| 328 | <groupId>com.google.guava</groupId> |
| 329 | <artifactId>guava</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 330 | </dependency> |
| 331 | <dependency> |
| 332 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 333 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 334 | </dependency> |
| 335 | <dependency> |
| 336 | <groupId>org.mockito</groupId> |
| 337 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 338 | <scope>test</scope> |
| 339 | </dependency> |
| 340 | <dependency> |
| 341 | <groupId>javax.xml.bind</groupId> |
| 342 | <artifactId>jaxb-api</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 343 | </dependency> |
| 344 | <dependency> |
| 345 | <groupId>org.eclipse.persistence</groupId> |
| 346 | <artifactId>eclipselink</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 347 | </dependency> |
| 348 | <dependency> |
| 349 | <groupId>org.eclipse.persistence</groupId> |
| 350 | <artifactId>org.eclipse.persistence.moxy</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 351 | <scope>compile</scope> |
| 352 | </dependency> |
| 353 | <dependency> |
| 354 | <groupId>org.springframework.boot</groupId> |
| 355 | <artifactId>spring-boot-starter-web</artifactId> |
| 356 | <exclusions> |
| 357 | <exclusion> |
| 358 | <groupId>org.springframework.boot</groupId> |
| 359 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 360 | </exclusion> |
| 361 | </exclusions> |
| 362 | </dependency> |
| 363 | <dependency> |
| 364 | <groupId>org.springframework.boot</groupId> |
| 365 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 366 | </dependency> |
| 367 | <dependency> |
| 368 | <groupId>org.springframework.boot</groupId> |
| 369 | <artifactId>spring-boot-starter-jersey</artifactId> |
| 370 | </dependency> |
| 371 | <dependency> |
| 372 | <groupId>org.springframework.boot</groupId> |
| 373 | <artifactId>spring-boot-starter-aop</artifactId> |
| 374 | </dependency> |
| 375 | <dependency> |
| 376 | <groupId>org.springframework.boot</groupId> |
| 377 | <artifactId>spring-boot-test</artifactId> |
| 378 | <scope>test</scope> |
| 379 | </dependency> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 380 | <dependency> |
| 381 | <groupId>org.springframework</groupId> |
| 382 | <artifactId>spring-test</artifactId> |
| 383 | <scope>test</scope> |
| 384 | </dependency> |
| 385 | <dependency> |
| 386 | <groupId>org.mockito</groupId> |
| 387 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 388 | <scope>test</scope> |
| 389 | </dependency> |
| 390 | <dependency> |
| 391 | <groupId>org.hamcrest</groupId> |
| 392 | <artifactId>hamcrest-junit</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 393 | </dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 394 | </dependencies> |
| 395 | <build> |
| 396 | <resources> |
| 397 | <resource> |
| 398 | <directory>${project.basedir}/src/main/swm</directory> |
| 399 | <targetPath>${project.build.directory}/swm</targetPath> |
| 400 | <filtering>false</filtering> |
| 401 | </resource> |
| 402 | <resource> |
| 403 | <directory>${project.basedir}/src/main/resources</directory> |
| 404 | <includes> |
| 405 | <include>application.properties</include> |
| 406 | <include>dme2.properties</include> |
| 407 | <include>logback.xml</include> |
| 408 | <include>localhost-access-logback.xml</include> |
| 409 | </includes> |
| 410 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 411 | <filtering>false</filtering> |
| 412 | </resource> |
| 413 | <resource> |
| 414 | <directory>${project.basedir}/src/main/resources</directory> |
| 415 | <includes> |
| 416 | <include>**/*</include> |
| 417 | </includes> |
| 418 | <filtering>true</filtering> |
| 419 | </resource> |
| 420 | <resource> |
| 421 | <directory>${project.basedir}/src/main/resources/etc/appprops/</directory> |
| 422 | <includes> |
| 423 | <include>aaiconfig.properties</include> |
| 424 | </includes> |
| 425 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 426 | <filtering>false</filtering> |
| 427 | </resource> |
| 428 | <resource> |
| 429 | <directory>${project.basedir}/src/main/resources/etc/auth/</directory> |
| 430 | <includes> |
| 431 | <include>aai-client-cert.p12</include> |
| 432 | <include>tomcat_keystore</include> |
| 433 | <include>aai_policy.json</include> |
| 434 | </includes> |
| 435 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 436 | <filtering>true</filtering> |
| 437 | </resource> |
| 438 | <resource> |
| 439 | <directory>${project.basedir}/src/main/resources/</directory> |
| 440 | <includes> |
| 441 | <include>logback.xml</include> |
| 442 | <include>localhost-access-logback.xml</include> |
| 443 | <include>hbase-site.xml</include> |
| 444 | </includes> |
| 445 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 446 | <filtering>true</filtering> |
| 447 | </resource> |
| 448 | <resource> |
| 449 | <directory>${project.basedir}/src/main/docker</directory> |
| 450 | <includes> |
| 451 | <include>**/*</include> |
| 452 | </includes> |
| 453 | <targetPath>${aai.build.directory}</targetPath> |
| 454 | <filtering>true</filtering> |
| 455 | </resource> |
| 456 | <resource> |
| 457 | <directory>${project.build.directory}/</directory> |
| 458 | <includes> |
| 459 | <include>${project.artifactId}-${project.version}.jar</include> |
| 460 | </includes> |
| 461 | <targetPath>${aai.build.directory}/lib/</targetPath> |
| 462 | <filtering>false</filtering> |
| 463 | </resource> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 464 | </resources> |
| 465 | <pluginManagement> |
| 466 | <plugins> |
| 467 | <plugin> |
| 468 | <groupId>org.codehaus.groovy.maven</groupId> |
| 469 | <artifactId>gmaven-plugin</artifactId> |
| 470 | <version>1.0</version> |
| 471 | <executions> |
| 472 | <execution> |
| 473 | <phase>validate</phase> |
| 474 | <goals> |
| 475 | <goal>execute</goal> |
| 476 | </goals> |
| 477 | <configuration> |
| 478 | <source> |
| 479 | println project.properties['aai.project.version']; |
| 480 | def versionArray; |
| 481 | if (project.properties['aai.project.version'] != null) { |
| 482 | versionArray = project.properties['aai.project.version'].split('\\.'); |
| 483 | } |
| 484 | |
| 485 | project.properties["project.major.version"] = versionArray[0]; |
| 486 | project.properties["project.minor.version"] = versionArray[1]; |
| 487 | project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest'; |
| 488 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 489 | </source> |
| 490 | </configuration> |
| 491 | </execution> |
| 492 | </executions> |
| 493 | </plugin> |
| 494 | </plugins> |
| 495 | </pluginManagement> |
| 496 | <plugins> |
| 497 | <plugin> |
| 498 | <groupId>org.springframework.boot</groupId> |
| 499 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 500 | </plugin> |
| 501 | <plugin> |
| 502 | <groupId>org.apache.maven.plugins</groupId> |
| 503 | <artifactId>maven-clean-plugin</artifactId> |
| 504 | <version>2.4.1</version> |
| 505 | <configuration> |
| 506 | <filesets> |
| 507 | <fileset> |
| 508 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 509 | <includes> |
| 510 | <include>**/*</include> |
| 511 | </includes> |
| 512 | <followSymlinks>false</followSymlinks> |
| 513 | </fileset> |
| 514 | </filesets> |
| 515 | </configuration> |
| 516 | </plugin> |
| 517 | <plugin> |
| 518 | <groupId>org.codehaus.groovy.maven</groupId> |
| 519 | <artifactId>gmaven-plugin</artifactId> |
| 520 | </plugin> |
| 521 | <plugin> |
| 522 | <groupId>org.apache.maven.plugins</groupId> |
| 523 | <artifactId>maven-dependency-plugin</artifactId> |
| 524 | <version>2.10</version> |
| 525 | </plugin> |
| 526 | <plugin> |
| 527 | <groupId>org.apache.maven.plugins</groupId> |
| 528 | <artifactId>maven-javadoc-plugin</artifactId> |
| 529 | <version>${javadoc.plugin.version}</version> |
| 530 | </plugin> |
| 531 | <plugin> |
| 532 | <artifactId>maven-assembly-plugin</artifactId> |
| 533 | <configuration> |
| 534 | <descriptors> |
| 535 | <descriptor>src/main/assembly/descriptor.xml</descriptor> |
| 536 | </descriptors> |
| 537 | </configuration> |
| 538 | <executions> |
| 539 | <execution> |
| 540 | <id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 541 | <phase>package</phase> <!-- bind to the packaging phase --> |
| 542 | <goals> |
| 543 | <goal>single</goal> |
| 544 | </goals> |
| 545 | </execution> |
| 546 | </executions> |
| 547 | </plugin> |
| 548 | <plugin> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 549 | <artifactId>maven-resources-plugin</artifactId> |
| 550 | <version>2.7</version> |
| 551 | <executions> |
| 552 | <execution> |
| 553 | <id>copy-oxm-edgerules-project</id> |
| 554 | <phase>initialize</phase> |
| 555 | <goals> |
| 556 | <goal>copy-resources</goal> |
| 557 | </goals> |
| 558 | <configuration> |
| 559 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 560 | <resources> |
| 561 | <resource> |
| 562 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 563 | <includes> |
| 564 | <include>**/oxm/**/*.xml</include> |
| 565 | <include>**/dbedgerules/**/*.json</include> |
| 566 | </includes> |
| 567 | </resource> |
| 568 | </resources> |
| 569 | </configuration> |
| 570 | </execution> |
| 571 | <execution> |
| 572 | <id>copy-queries-project</id> |
| 573 | <phase>initialize</phase> |
| 574 | <goals> |
| 575 | <goal>copy-resources</goal> |
| 576 | </goals> |
| 577 | <configuration> |
| 578 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 579 | <resources> |
| 580 | <resource> |
| 581 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 582 | <includes> |
| 583 | <include>**/query/**/*.json</include> |
| 584 | </includes> |
| 585 | </resource> |
| 586 | </resources> |
| 587 | </configuration> |
| 588 | </execution> |
| 589 | <execution> |
| 590 | <id>copy-oxm-edgerules</id> |
| 591 | <phase>initialize</phase> |
| 592 | <goals> |
| 593 | <goal>copy-resources</goal> |
| 594 | </goals> |
| 595 | <configuration> |
| 596 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 597 | <resources> |
| 598 | <resource> |
| 599 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 600 | <includes> |
| 601 | <include>**/oxm/**/*.xml</include> |
| 602 | <include>**/dbedgerules/**/*.json</include> |
| 603 | </includes> |
| 604 | </resource> |
| 605 | </resources> |
| 606 | </configuration> |
| 607 | </execution> |
| 608 | <execution> |
| 609 | <id>copy-queries</id> |
| 610 | <phase>initialize</phase> |
| 611 | <goals> |
| 612 | <goal>copy-resources</goal> |
| 613 | </goals> |
| 614 | <configuration> |
| 615 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 616 | <resources> |
| 617 | <resource> |
| 618 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 619 | <includes> |
| 620 | <include>**/query/**/*.json</include> |
| 621 | </includes> |
| 622 | </resource> |
| 623 | </resources> |
| 624 | </configuration> |
| 625 | </execution> |
| 626 | </executions> |
| 627 | </plugin> |
| 628 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 629 | <groupId>org.apache.maven.plugins</groupId> |
| 630 | <artifactId>maven-surefire-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 631 | <configuration> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 632 | <runOrder>alphabetical</runOrder> |
| 633 | </configuration> |
| 634 | </plugin> |
| 635 | <plugin> |
| 636 | <groupId>com.mycila</groupId> |
| 637 | <artifactId>license-maven-plugin</artifactId> |
| 638 | </plugin> |
| 639 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 640 | <groupId>org.apache.maven.plugins</groupId> |
| 641 | <artifactId>maven-deploy-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 642 | </plugin> |
Jimmy Forsyth | fad0609 | 2019-06-26 18:41:27 -0400 | [diff] [blame] | 643 | |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 644 | <plugin> |
| 645 | <groupId>org.springframework.boot</groupId> |
| 646 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 647 | <version>${spring.boot.version}</version> |
| 648 | <configuration> |
| 649 | <mainClass>${start-class}</mainClass> |
| 650 | <layout>ZIP</layout> |
| 651 | </configuration> |
| 652 | <executions> |
| 653 | <execution> |
| 654 | <goals> |
| 655 | <goal>repackage</goal> |
| 656 | </goals> |
| 657 | </execution> |
| 658 | </executions> |
| 659 | </plugin> |
| 660 | <plugin> |
| 661 | <groupId>org.apache.maven.plugins</groupId> |
| 662 | <artifactId>maven-clean-plugin</artifactId> |
| 663 | <version>2.4.1</version> |
| 664 | <configuration> |
| 665 | <filesets> |
| 666 | <fileset> |
| 667 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 668 | <includes> |
| 669 | <include>**/*</include> |
| 670 | </includes> |
| 671 | <followSymlinks>false</followSymlinks> |
| 672 | </fileset> |
| 673 | </filesets> |
| 674 | </configuration> |
| 675 | </plugin> |
| 676 | </plugins> |
| 677 | </build> |
| 678 | <reporting> |
| 679 | <plugins> |
| 680 | <plugin> |
| 681 | <groupId>org.apache.maven.plugins</groupId> |
| 682 | <artifactId>maven-javadoc-plugin</artifactId> |
| 683 | <version>2.10.4</version> |
| 684 | <configuration> |
| 685 | <failOnError>false</failOnError> |
| 686 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 687 | <docletArtifact> |
| 688 | <groupId>org.umlgraph</groupId> |
| 689 | <artifactId>umlgraph</artifactId> |
| 690 | <version>5.6</version> |
| 691 | </docletArtifact> |
| 692 | <additionalparam>-views</additionalparam> |
| 693 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 694 | </configuration> |
| 695 | </plugin> |
| 696 | </plugins> |
| 697 | </reporting> |
| 698 | </project> |