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> |
Forsyth, James (jf2512) | 7f7a95f | 2020-05-01 10:27:15 -0400 | [diff] [blame] | 29 | <version>1.7.2-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> |
LaMont, William(wl2432) | a8ce62a | 2020-06-12 13:35:23 -0400 | [diff] [blame] | 75 | <schema.version.api.default>v20</schema.version.api.default> |
LaMont, William(wl2432) | 353536d | 2020-04-29 13:15:07 -0400 | [diff] [blame] | 76 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20</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) | a8ce62a | 2020-06-12 13:35:23 -0400 | [diff] [blame] | 187 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,18,v19,v20</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> |
Igor Dysko | 37a8cab | 2020-06-27 23:42:28 +0200 | [diff] [blame^] | 273 | <groupId>javax.annotation</groupId> |
| 274 | <artifactId>javax.annotation-api</artifactId> |
| 275 | <scope>compile</scope> |
| 276 | </dependency> |
| 277 | <dependency> |
| 278 | <groupId>javax.el</groupId> |
| 279 | <artifactId>javax.el-api</artifactId> |
| 280 | <version>3.0.0</version> |
| 281 | </dependency> |
| 282 | <dependency> |
| 283 | <groupId>org.glassfish</groupId> |
| 284 | <artifactId>javax.el</artifactId> |
| 285 | <version>3.0.0</version> |
| 286 | </dependency> |
| 287 | <dependency> |
| 288 | <groupId>javax.jms</groupId> |
| 289 | <artifactId>javax.jms-api</artifactId> |
| 290 | <version>2.0.1</version> |
| 291 | </dependency> |
| 292 | <dependency> |
| 293 | <groupId>javax.ws.rs</groupId> |
| 294 | <artifactId>javax.ws.rs-api</artifactId> |
| 295 | <version>2.1</version> |
| 296 | </dependency> |
| 297 | <dependency> |
| 298 | <groupId>com.sun.xml.bind</groupId> |
| 299 | <artifactId>jaxb-impl</artifactId> |
| 300 | </dependency> |
| 301 | <dependency> |
| 302 | <groupId>com.sun.xml.bind</groupId> |
| 303 | <artifactId>jaxb-core</artifactId> |
| 304 | </dependency> |
| 305 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 306 | <groupId>com.att.eelf</groupId> |
| 307 | <artifactId>eelf-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 308 | </dependency> |
| 309 | <dependency> |
| 310 | <groupId>ch.qos.logback</groupId> |
| 311 | <artifactId>logback-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 312 | </dependency> |
| 313 | <dependency> |
| 314 | <groupId>ch.qos.logback</groupId> |
| 315 | <artifactId>logback-classic</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 316 | </dependency> |
| 317 | <dependency> |
| 318 | <groupId>ch.qos.logback</groupId> |
| 319 | <artifactId>logback-access</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 320 | </dependency> |
| 321 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 322 | <groupId>junit</groupId> |
| 323 | <artifactId>junit</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 324 | <scope>test</scope> |
| 325 | </dependency> |
| 326 | <dependency> |
| 327 | <groupId>com.google.guava</groupId> |
| 328 | <artifactId>guava</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 329 | </dependency> |
| 330 | <dependency> |
| 331 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 332 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 333 | </dependency> |
| 334 | <dependency> |
| 335 | <groupId>org.mockito</groupId> |
| 336 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 337 | <scope>test</scope> |
| 338 | </dependency> |
| 339 | <dependency> |
| 340 | <groupId>javax.xml.bind</groupId> |
| 341 | <artifactId>jaxb-api</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 342 | </dependency> |
| 343 | <dependency> |
| 344 | <groupId>org.eclipse.persistence</groupId> |
| 345 | <artifactId>eclipselink</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 346 | </dependency> |
| 347 | <dependency> |
| 348 | <groupId>org.eclipse.persistence</groupId> |
| 349 | <artifactId>org.eclipse.persistence.moxy</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 350 | <scope>compile</scope> |
| 351 | </dependency> |
| 352 | <dependency> |
| 353 | <groupId>org.springframework.boot</groupId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 354 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 355 | </dependency> |
| 356 | <dependency> |
| 357 | <groupId>org.springframework.boot</groupId> |
| 358 | <artifactId>spring-boot-starter-jersey</artifactId> |
| 359 | </dependency> |
| 360 | <dependency> |
| 361 | <groupId>org.springframework.boot</groupId> |
| 362 | <artifactId>spring-boot-starter-aop</artifactId> |
| 363 | </dependency> |
| 364 | <dependency> |
Igor Dysko | 37a8cab | 2020-06-27 23:42:28 +0200 | [diff] [blame^] | 365 | <groupId>org.onap.aai.aai-common</groupId> |
| 366 | <artifactId>aai-core</artifactId> |
| 367 | <exclusions> |
| 368 | <exclusion> |
| 369 | <groupId>org.springframework.boot</groupId> |
| 370 | <artifactId>spring-boot-starter-web</artifactId> |
| 371 | </exclusion> |
| 372 | <exclusion> |
| 373 | <groupId>org.onap.aai.aai-common</groupId> |
| 374 | <artifactId>aai-schema-ingest</artifactId> |
| 375 | </exclusion> |
| 376 | </exclusions> |
| 377 | </dependency> |
| 378 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 379 | <groupId>org.springframework.boot</groupId> |
| 380 | <artifactId>spring-boot-test</artifactId> |
| 381 | <scope>test</scope> |
| 382 | </dependency> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 383 | <dependency> |
| 384 | <groupId>org.springframework</groupId> |
| 385 | <artifactId>spring-test</artifactId> |
| 386 | <scope>test</scope> |
| 387 | </dependency> |
| 388 | <dependency> |
| 389 | <groupId>org.mockito</groupId> |
| 390 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 391 | <scope>test</scope> |
| 392 | </dependency> |
| 393 | <dependency> |
| 394 | <groupId>org.hamcrest</groupId> |
| 395 | <artifactId>hamcrest-junit</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 396 | </dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 397 | </dependencies> |
| 398 | <build> |
| 399 | <resources> |
| 400 | <resource> |
| 401 | <directory>${project.basedir}/src/main/swm</directory> |
| 402 | <targetPath>${project.build.directory}/swm</targetPath> |
| 403 | <filtering>false</filtering> |
| 404 | </resource> |
| 405 | <resource> |
| 406 | <directory>${project.basedir}/src/main/resources</directory> |
| 407 | <includes> |
| 408 | <include>application.properties</include> |
| 409 | <include>dme2.properties</include> |
| 410 | <include>logback.xml</include> |
| 411 | <include>localhost-access-logback.xml</include> |
| 412 | </includes> |
| 413 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 414 | <filtering>false</filtering> |
| 415 | </resource> |
| 416 | <resource> |
| 417 | <directory>${project.basedir}/src/main/resources</directory> |
| 418 | <includes> |
| 419 | <include>**/*</include> |
| 420 | </includes> |
| 421 | <filtering>true</filtering> |
| 422 | </resource> |
| 423 | <resource> |
| 424 | <directory>${project.basedir}/src/main/resources/etc/appprops/</directory> |
| 425 | <includes> |
| 426 | <include>aaiconfig.properties</include> |
| 427 | </includes> |
| 428 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 429 | <filtering>false</filtering> |
| 430 | </resource> |
| 431 | <resource> |
| 432 | <directory>${project.basedir}/src/main/resources/etc/auth/</directory> |
| 433 | <includes> |
| 434 | <include>aai-client-cert.p12</include> |
| 435 | <include>tomcat_keystore</include> |
| 436 | <include>aai_policy.json</include> |
| 437 | </includes> |
| 438 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 439 | <filtering>true</filtering> |
| 440 | </resource> |
| 441 | <resource> |
| 442 | <directory>${project.basedir}/src/main/resources/</directory> |
| 443 | <includes> |
| 444 | <include>logback.xml</include> |
| 445 | <include>localhost-access-logback.xml</include> |
| 446 | <include>hbase-site.xml</include> |
| 447 | </includes> |
| 448 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 449 | <filtering>true</filtering> |
| 450 | </resource> |
| 451 | <resource> |
| 452 | <directory>${project.basedir}/src/main/docker</directory> |
| 453 | <includes> |
| 454 | <include>**/*</include> |
| 455 | </includes> |
| 456 | <targetPath>${aai.build.directory}</targetPath> |
| 457 | <filtering>true</filtering> |
| 458 | </resource> |
| 459 | <resource> |
| 460 | <directory>${project.build.directory}/</directory> |
| 461 | <includes> |
| 462 | <include>${project.artifactId}-${project.version}.jar</include> |
| 463 | </includes> |
| 464 | <targetPath>${aai.build.directory}/lib/</targetPath> |
| 465 | <filtering>false</filtering> |
| 466 | </resource> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 467 | </resources> |
| 468 | <pluginManagement> |
| 469 | <plugins> |
| 470 | <plugin> |
| 471 | <groupId>org.codehaus.groovy.maven</groupId> |
| 472 | <artifactId>gmaven-plugin</artifactId> |
| 473 | <version>1.0</version> |
| 474 | <executions> |
| 475 | <execution> |
| 476 | <phase>validate</phase> |
| 477 | <goals> |
| 478 | <goal>execute</goal> |
| 479 | </goals> |
| 480 | <configuration> |
| 481 | <source> |
| 482 | println project.properties['aai.project.version']; |
| 483 | def versionArray; |
| 484 | if (project.properties['aai.project.version'] != null) { |
| 485 | versionArray = project.properties['aai.project.version'].split('\\.'); |
| 486 | } |
| 487 | |
| 488 | project.properties["project.major.version"] = versionArray[0]; |
| 489 | project.properties["project.minor.version"] = versionArray[1]; |
| 490 | project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest'; |
| 491 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 492 | </source> |
| 493 | </configuration> |
| 494 | </execution> |
| 495 | </executions> |
| 496 | </plugin> |
| 497 | </plugins> |
| 498 | </pluginManagement> |
| 499 | <plugins> |
| 500 | <plugin> |
| 501 | <groupId>org.springframework.boot</groupId> |
| 502 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 503 | </plugin> |
| 504 | <plugin> |
| 505 | <groupId>org.apache.maven.plugins</groupId> |
| 506 | <artifactId>maven-clean-plugin</artifactId> |
| 507 | <version>2.4.1</version> |
| 508 | <configuration> |
| 509 | <filesets> |
| 510 | <fileset> |
| 511 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 512 | <includes> |
| 513 | <include>**/*</include> |
| 514 | </includes> |
| 515 | <followSymlinks>false</followSymlinks> |
| 516 | </fileset> |
| 517 | </filesets> |
| 518 | </configuration> |
| 519 | </plugin> |
| 520 | <plugin> |
| 521 | <groupId>org.codehaus.groovy.maven</groupId> |
| 522 | <artifactId>gmaven-plugin</artifactId> |
| 523 | </plugin> |
| 524 | <plugin> |
| 525 | <groupId>org.apache.maven.plugins</groupId> |
| 526 | <artifactId>maven-dependency-plugin</artifactId> |
| 527 | <version>2.10</version> |
| 528 | </plugin> |
| 529 | <plugin> |
| 530 | <groupId>org.apache.maven.plugins</groupId> |
| 531 | <artifactId>maven-javadoc-plugin</artifactId> |
| 532 | <version>${javadoc.plugin.version}</version> |
| 533 | </plugin> |
| 534 | <plugin> |
| 535 | <artifactId>maven-assembly-plugin</artifactId> |
| 536 | <configuration> |
| 537 | <descriptors> |
| 538 | <descriptor>src/main/assembly/descriptor.xml</descriptor> |
| 539 | </descriptors> |
| 540 | </configuration> |
| 541 | <executions> |
| 542 | <execution> |
| 543 | <id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 544 | <phase>package</phase> <!-- bind to the packaging phase --> |
| 545 | <goals> |
| 546 | <goal>single</goal> |
| 547 | </goals> |
| 548 | </execution> |
| 549 | </executions> |
| 550 | </plugin> |
| 551 | <plugin> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 552 | <artifactId>maven-resources-plugin</artifactId> |
| 553 | <version>2.7</version> |
| 554 | <executions> |
| 555 | <execution> |
| 556 | <id>copy-oxm-edgerules-project</id> |
| 557 | <phase>initialize</phase> |
| 558 | <goals> |
| 559 | <goal>copy-resources</goal> |
| 560 | </goals> |
| 561 | <configuration> |
| 562 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 563 | <resources> |
| 564 | <resource> |
| 565 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 566 | <includes> |
| 567 | <include>**/oxm/**/*.xml</include> |
| 568 | <include>**/dbedgerules/**/*.json</include> |
| 569 | </includes> |
| 570 | </resource> |
| 571 | </resources> |
| 572 | </configuration> |
| 573 | </execution> |
| 574 | <execution> |
| 575 | <id>copy-queries-project</id> |
| 576 | <phase>initialize</phase> |
| 577 | <goals> |
| 578 | <goal>copy-resources</goal> |
| 579 | </goals> |
| 580 | <configuration> |
| 581 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 582 | <resources> |
| 583 | <resource> |
| 584 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 585 | <includes> |
| 586 | <include>**/query/**/*.json</include> |
| 587 | </includes> |
| 588 | </resource> |
| 589 | </resources> |
| 590 | </configuration> |
| 591 | </execution> |
| 592 | <execution> |
| 593 | <id>copy-oxm-edgerules</id> |
| 594 | <phase>initialize</phase> |
| 595 | <goals> |
| 596 | <goal>copy-resources</goal> |
| 597 | </goals> |
| 598 | <configuration> |
| 599 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 600 | <resources> |
| 601 | <resource> |
| 602 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 603 | <includes> |
| 604 | <include>**/oxm/**/*.xml</include> |
| 605 | <include>**/dbedgerules/**/*.json</include> |
| 606 | </includes> |
| 607 | </resource> |
| 608 | </resources> |
| 609 | </configuration> |
| 610 | </execution> |
| 611 | <execution> |
| 612 | <id>copy-queries</id> |
| 613 | <phase>initialize</phase> |
| 614 | <goals> |
| 615 | <goal>copy-resources</goal> |
| 616 | </goals> |
| 617 | <configuration> |
| 618 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 619 | <resources> |
| 620 | <resource> |
| 621 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 622 | <includes> |
| 623 | <include>**/query/**/*.json</include> |
| 624 | </includes> |
| 625 | </resource> |
| 626 | </resources> |
| 627 | </configuration> |
| 628 | </execution> |
| 629 | </executions> |
| 630 | </plugin> |
| 631 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 632 | <groupId>org.apache.maven.plugins</groupId> |
| 633 | <artifactId>maven-surefire-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 634 | <configuration> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 635 | <runOrder>alphabetical</runOrder> |
| 636 | </configuration> |
| 637 | </plugin> |
| 638 | <plugin> |
| 639 | <groupId>com.mycila</groupId> |
| 640 | <artifactId>license-maven-plugin</artifactId> |
| 641 | </plugin> |
| 642 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 643 | <groupId>org.apache.maven.plugins</groupId> |
| 644 | <artifactId>maven-deploy-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 645 | </plugin> |
Jimmy Forsyth | fad0609 | 2019-06-26 18:41:27 -0400 | [diff] [blame] | 646 | |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 647 | <plugin> |
| 648 | <groupId>org.springframework.boot</groupId> |
| 649 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 650 | <version>${spring.boot.version}</version> |
| 651 | <configuration> |
| 652 | <mainClass>${start-class}</mainClass> |
| 653 | <layout>ZIP</layout> |
| 654 | </configuration> |
| 655 | <executions> |
| 656 | <execution> |
| 657 | <goals> |
| 658 | <goal>repackage</goal> |
| 659 | </goals> |
| 660 | </execution> |
| 661 | </executions> |
| 662 | </plugin> |
| 663 | <plugin> |
| 664 | <groupId>org.apache.maven.plugins</groupId> |
| 665 | <artifactId>maven-clean-plugin</artifactId> |
| 666 | <version>2.4.1</version> |
| 667 | <configuration> |
| 668 | <filesets> |
| 669 | <fileset> |
| 670 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 671 | <includes> |
| 672 | <include>**/*</include> |
| 673 | </includes> |
| 674 | <followSymlinks>false</followSymlinks> |
| 675 | </fileset> |
| 676 | </filesets> |
| 677 | </configuration> |
| 678 | </plugin> |
| 679 | </plugins> |
| 680 | </build> |
| 681 | <reporting> |
| 682 | <plugins> |
| 683 | <plugin> |
| 684 | <groupId>org.apache.maven.plugins</groupId> |
| 685 | <artifactId>maven-javadoc-plugin</artifactId> |
| 686 | <version>2.10.4</version> |
| 687 | <configuration> |
| 688 | <failOnError>false</failOnError> |
| 689 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 690 | <docletArtifact> |
| 691 | <groupId>org.umlgraph</groupId> |
| 692 | <artifactId>umlgraph</artifactId> |
| 693 | <version>5.6</version> |
| 694 | </docletArtifact> |
| 695 | <additionalparam>-views</additionalparam> |
| 696 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 697 | </configuration> |
| 698 | </plugin> |
| 699 | </plugins> |
| 700 | </reporting> |
| 701 | </project> |