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> |
nandkishorpatke | 959f03b | 2023-11-14 20:07:46 +0530 | [diff] [blame] | 29 | <version>1.12.3-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 | |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 37 | <docker.fabric.version>0.40.2</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 | |
wr148d | 18f4b07 | 2022-03-07 09:49:28 -0500 | [diff] [blame] | 45 | <logback.version>1.2.7</logback.version> |
| 46 | |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 47 | <!-- |
| 48 | Location where assembly of our scripts, resources and main jar will be held |
| 49 | Check the ${project.artifactId}/src/main/assembly/descriptor.xml for more info |
| 50 | --> |
| 51 | <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/ |
| 52 | </aai.build.directory> |
| 53 | <aai.docker.namespace>onap</aai.docker.namespace> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 54 | <aai.base.image>alpine</aai.base.image> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 55 | <aai.base.image.version>1.8.1</aai.base.image.version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 56 | |
| 57 | <maven.skip.tests>true</maven.skip.tests> |
| 58 | |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 59 | <jacoco.line.coverage.limit>0.44</jacoco.line.coverage.limit> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 60 | |
| 61 | <!-- This will be used for the docker images as the default format of maven build has issues --> |
| 62 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 63 | <javadoc.plugin.version>3.4.1</javadoc.plugin.version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 64 | |
| 65 | <!-- Start of Default ONAP Schema Properties --> |
| 66 | <schema.source.name>onap</schema.source.name> |
| 67 | <schema.configuration.location>N/A</schema.configuration.location> |
Dmitry Puzikov | 8c9c7b6 | 2019-08-29 11:49:09 +0200 | [diff] [blame] | 68 | <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm |
| 69 | </schema.nodes.location> |
| 70 | <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules |
| 71 | </schema.edges.location> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 72 | <schema.version.depth.start>v10</schema.version.depth.start> |
| 73 | <schema.version.related.link.start>v10</schema.version.related.link.start> |
| 74 | <schema.version.app.root.start>v11</schema.version.app.root.start> |
| 75 | <schema.version.namespace.change.start>v12</schema.version.namespace.change.start> |
| 76 | <schema.version.edge.label.start>v12</schema.version.edge.label.start> |
nandkishorpatke | 107e758 | 2024-05-03 14:08:11 +0530 | [diff] [blame^] | 77 | <schema.version.api.default>v29</schema.version.api.default> |
| 78 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29</schema.version.list> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 79 | <schema.uri.base.path>/aai/schema-service</schema.uri.base.path> |
| 80 | <!-- End of Default ONAP Schema Properties --> |
| 81 | |
| 82 | <!-- Setting some default value to not complain by editor but it will be overridden by gmaven plugin --> |
| 83 | </properties> |
| 84 | <profiles> |
| 85 | <!-- Docker profile to be used for building docker image and pushing to nexus --> |
| 86 | <profile> |
| 87 | <id>docker</id> |
| 88 | <build> |
| 89 | <plugins> |
| 90 | <plugin> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 91 | <groupId>org.codehaus.groovy.maven</groupId> |
| 92 | <artifactId>gmaven-plugin</artifactId> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 93 | <executions> |
| 94 | <execution> |
Dmitry Puzikov | 8c9c7b6 | 2019-08-29 11:49:09 +0200 | [diff] [blame] | 95 | <phase>pre-clean</phase> |
| 96 | </execution> |
| 97 | <execution> |
| 98 | <id>parse-base</id> |
| 99 | <phase>pre-clean</phase> |
Dmitry Puzikov | 64dce89 | 2019-04-15 11:57:14 +0200 | [diff] [blame] | 100 | <goals> |
| 101 | <goal>execute</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <source> |
| 105 | def userAaiBaseImage = session.userProperties['aai.base.image']; |
| 106 | def userAaiCommonVersion = session.userProperties['aai.base.image.version']; |
| 107 | if (userAaiCommonVersion != null) { |
| 108 | project.properties['aai.base.image.version'] = userAaiCommonVersion; |
| 109 | } |
| 110 | if (userAaiBaseImage != null) { |
| 111 | project.properties['aai.base.image'] = userAaiBaseImage; |
| 112 | } |
| 113 | log.info 'Base image flavour: ' + project.properties['aai.base.image']; |
| 114 | log.info 'Base image version: ' + project.properties['aai.base.image.version']; |
| 115 | </source> |
| 116 | </configuration> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 121 | <groupId>io.fabric8</groupId> |
| 122 | <artifactId>docker-maven-plugin</artifactId> |
| 123 | <version>${docker.fabric.version}</version> |
| 124 | <configuration> |
| 125 | <verbose>true</verbose> |
| 126 | <apiVersion>1.23</apiVersion> |
| 127 | <images> |
| 128 | <image> |
| 129 | <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name> |
| 130 | <build> |
| 131 | <filter>@</filter> |
| 132 | <tags> |
| 133 | <tag>latest</tag> |
| 134 | <tag>${project.docker.latesttag.version}</tag> |
| 135 | <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag> |
| 136 | </tags> |
| 137 | <cleanup>try</cleanup> |
| 138 | <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir> |
| 139 | <assembly> |
| 140 | <inline> |
| 141 | <fileSets> |
| 142 | <fileSet> |
| 143 | <directory>${aai.build.directory}</directory> |
| 144 | <outputDirectory>/${project.artifactId}</outputDirectory> |
| 145 | </fileSet> |
| 146 | </fileSets> |
| 147 | </inline> |
| 148 | </assembly> |
| 149 | </build> |
| 150 | </image> |
| 151 | </images> |
| 152 | </configuration> |
| 153 | <executions> |
| 154 | <execution> |
| 155 | <id>clean-images</id> |
| 156 | <phase>pre-clean</phase> |
| 157 | <goals> |
| 158 | <goal>remove</goal> |
| 159 | </goals> |
| 160 | <configuration> |
| 161 | <removeAll>true</removeAll> |
| 162 | </configuration> |
| 163 | </execution> |
| 164 | <execution> |
| 165 | <id>generate-images</id> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 166 | <phase>verify</phase> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 167 | <goals> |
| 168 | <goal>build</goal> |
| 169 | </goals> |
| 170 | </execution> |
| 171 | <execution> |
| 172 | <id>push-images</id> |
| 173 | <phase>deploy</phase> |
| 174 | <goals> |
| 175 | <goal>push</goal> |
| 176 | </goals> |
| 177 | </execution> |
| 178 | </executions> |
| 179 | </plugin> |
| 180 | </plugins> |
| 181 | </build> |
| 182 | </profile> |
| 183 | <!-- Start of ONAP Profile --> |
| 184 | <profile> |
| 185 | <id>onap</id> |
| 186 | <properties> |
| 187 | <schema.source.name>onap</schema.source.name> |
| 188 | <schema.version.namespace.change.start>v12</schema.version.namespace.change.start> |
nandkishorpatke | 107e758 | 2024-05-03 14:08:11 +0530 | [diff] [blame^] | 189 | <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29</schema.version.list> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 190 | </properties> |
| 191 | </profile> |
| 192 | <!-- End of ONAP Profile --> |
| 193 | <profile> |
| 194 | <id>runAjsc</id> |
| 195 | <properties> |
| 196 | <skipTests>${maven.skip.tests}</skipTests> |
| 197 | </properties> |
| 198 | <build> |
| 199 | <defaultGoal>pre-integration-test</defaultGoal> |
| 200 | <plugins> |
| 201 | <plugin> |
| 202 | <groupId>org.codehaus.mojo</groupId> |
| 203 | <artifactId>exec-maven-plugin</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 204 | <version>3.1.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 205 | <executions> |
| 206 | <execution> |
| 207 | <id>run-spring-boot</id> |
| 208 | <phase>package</phase> |
| 209 | <goals> |
| 210 | <goal>java</goal> |
| 211 | </goals> |
| 212 | </execution> |
| 213 | </executions> |
| 214 | <configuration> |
| 215 | <mainClass>${start-class}</mainClass> |
| 216 | <systemProperties> |
| 217 | <property> |
| 218 | <key>schema.source.name</key> |
| 219 | <value>${schema.source.name}</value> |
| 220 | </property> |
| 221 | <property> |
| 222 | <key>schema.configuration.location</key> |
| 223 | <value>${schema.configuration.location}</value> |
| 224 | </property> |
| 225 | <property> |
| 226 | <key>schema.nodes.location</key> |
| 227 | <value>${schema.nodes.location}</value> |
| 228 | </property> |
| 229 | <property> |
| 230 | <key>schema.edges.location</key> |
| 231 | <value>${schema.edges.location}</value> |
| 232 | </property> |
| 233 | <property> |
| 234 | <key>schema.version.depth.start</key> |
| 235 | <value>${schema.version.depth.start}</value> |
| 236 | </property> |
| 237 | <property> |
| 238 | <key>schema.version.related.link.start</key> |
| 239 | <value>${schema.version.related.link.start}</value> |
| 240 | </property> |
| 241 | <property> |
| 242 | <key>schema.version.app.root.start</key> |
| 243 | <value>${schema.version.app.root.start}</value> |
| 244 | </property> |
| 245 | <property> |
| 246 | <key>schema.version.namespace.change.start</key> |
| 247 | <value>${schema.version.namespace.change.start}</value> |
| 248 | </property> |
| 249 | <property> |
| 250 | <key>schema.version.edge.label.start</key> |
| 251 | <value>${schema.version.edge.label.start}</value> |
| 252 | </property> |
| 253 | <property> |
| 254 | <key>schema.version.api.default</key> |
| 255 | <value>${schema.version.api.default}</value> |
| 256 | </property> |
| 257 | <property> |
| 258 | <key>schema.version.list</key> |
| 259 | <value>${schema.version.list}</value> |
| 260 | </property> |
| 261 | <property> |
| 262 | <key>schema.uri.base.path</key> |
| 263 | <value>${schema.uri.base.path}</value> |
| 264 | </property> |
| 265 | </systemProperties> |
| 266 | <executable>java</executable> |
| 267 | </configuration> |
| 268 | </plugin> |
| 269 | </plugins> |
| 270 | </build> |
| 271 | </profile> |
| 272 | </profiles> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 273 | <dependencies> |
| 274 | <dependency> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 275 | <groupId>jakarta.xml.bind</groupId> |
| 276 | <artifactId>jakarta.xml.bind-api</artifactId> |
| 277 | <version>3.0.0</version> |
| 278 | </dependency> |
| 279 | <dependency> |
Igor Dysko | 37a8cab | 2020-06-27 23:42:28 +0200 | [diff] [blame] | 280 | <groupId>javax.annotation</groupId> |
| 281 | <artifactId>javax.annotation-api</artifactId> |
| 282 | <scope>compile</scope> |
| 283 | </dependency> |
| 284 | <dependency> |
| 285 | <groupId>javax.el</groupId> |
| 286 | <artifactId>javax.el-api</artifactId> |
| 287 | <version>3.0.0</version> |
| 288 | </dependency> |
| 289 | <dependency> |
| 290 | <groupId>org.glassfish</groupId> |
| 291 | <artifactId>javax.el</artifactId> |
| 292 | <version>3.0.0</version> |
| 293 | </dependency> |
| 294 | <dependency> |
| 295 | <groupId>javax.jms</groupId> |
| 296 | <artifactId>javax.jms-api</artifactId> |
| 297 | <version>2.0.1</version> |
| 298 | </dependency> |
| 299 | <dependency> |
| 300 | <groupId>javax.ws.rs</groupId> |
| 301 | <artifactId>javax.ws.rs-api</artifactId> |
| 302 | <version>2.1</version> |
| 303 | </dependency> |
| 304 | <dependency> |
| 305 | <groupId>com.sun.xml.bind</groupId> |
| 306 | <artifactId>jaxb-impl</artifactId> |
| 307 | </dependency> |
| 308 | <dependency> |
| 309 | <groupId>com.sun.xml.bind</groupId> |
| 310 | <artifactId>jaxb-core</artifactId> |
| 311 | </dependency> |
| 312 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 313 | <groupId>com.att.eelf</groupId> |
| 314 | <artifactId>eelf-core</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 315 | </dependency> |
| 316 | <dependency> |
| 317 | <groupId>ch.qos.logback</groupId> |
| 318 | <artifactId>logback-core</artifactId> |
wr148d | 18f4b07 | 2022-03-07 09:49:28 -0500 | [diff] [blame] | 319 | <version>${logback.version}</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 320 | </dependency> |
| 321 | <dependency> |
| 322 | <groupId>ch.qos.logback</groupId> |
| 323 | <artifactId>logback-classic</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 324 | </dependency> |
| 325 | <dependency> |
| 326 | <groupId>ch.qos.logback</groupId> |
| 327 | <artifactId>logback-access</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 328 | </dependency> |
| 329 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 330 | <groupId>junit</groupId> |
| 331 | <artifactId>junit</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 332 | <scope>test</scope> |
| 333 | </dependency> |
| 334 | <dependency> |
| 335 | <groupId>com.google.guava</groupId> |
| 336 | <artifactId>guava</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 337 | </dependency> |
| 338 | <dependency> |
| 339 | <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 340 | <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 341 | </dependency> |
| 342 | <dependency> |
| 343 | <groupId>org.mockito</groupId> |
| 344 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 345 | <scope>test</scope> |
| 346 | </dependency> |
| 347 | <dependency> |
| 348 | <groupId>javax.xml.bind</groupId> |
| 349 | <artifactId>jaxb-api</artifactId> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 350 | <version>2.3.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 351 | </dependency> |
| 352 | <dependency> |
| 353 | <groupId>org.eclipse.persistence</groupId> |
| 354 | <artifactId>eclipselink</artifactId> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 355 | <version>3.0.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 356 | </dependency> |
| 357 | <dependency> |
| 358 | <groupId>org.eclipse.persistence</groupId> |
| 359 | <artifactId>org.eclipse.persistence.moxy</artifactId> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 360 | <version>3.0.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 361 | <scope>compile</scope> |
| 362 | </dependency> |
| 363 | <dependency> |
| 364 | <groupId>org.springframework.boot</groupId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 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> |
Igor Dysko | 37a8cab | 2020-06-27 23:42:28 +0200 | [diff] [blame] | 376 | <groupId>org.onap.aai.aai-common</groupId> |
| 377 | <artifactId>aai-core</artifactId> |
| 378 | <exclusions> |
| 379 | <exclusion> |
| 380 | <groupId>org.springframework.boot</groupId> |
| 381 | <artifactId>spring-boot-starter-web</artifactId> |
| 382 | </exclusion> |
| 383 | <exclusion> |
| 384 | <groupId>org.onap.aai.aai-common</groupId> |
| 385 | <artifactId>aai-schema-ingest</artifactId> |
| 386 | </exclusion> |
| 387 | </exclusions> |
| 388 | </dependency> |
| 389 | <dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 390 | <groupId>org.springframework.boot</groupId> |
| 391 | <artifactId>spring-boot-test</artifactId> |
| 392 | <scope>test</scope> |
| 393 | </dependency> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 394 | <dependency> |
| 395 | <groupId>org.springframework</groupId> |
| 396 | <artifactId>spring-test</artifactId> |
| 397 | <scope>test</scope> |
| 398 | </dependency> |
| 399 | <dependency> |
| 400 | <groupId>org.mockito</groupId> |
| 401 | <artifactId>mockito-all</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 402 | <scope>test</scope> |
| 403 | </dependency> |
| 404 | <dependency> |
| 405 | <groupId>org.hamcrest</groupId> |
| 406 | <artifactId>hamcrest-junit</artifactId> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 407 | </dependency> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 408 | </dependencies> |
| 409 | <build> |
| 410 | <resources> |
| 411 | <resource> |
| 412 | <directory>${project.basedir}/src/main/swm</directory> |
| 413 | <targetPath>${project.build.directory}/swm</targetPath> |
| 414 | <filtering>false</filtering> |
| 415 | </resource> |
| 416 | <resource> |
| 417 | <directory>${project.basedir}/src/main/resources</directory> |
| 418 | <includes> |
| 419 | <include>application.properties</include> |
| 420 | <include>dme2.properties</include> |
| 421 | <include>logback.xml</include> |
| 422 | <include>localhost-access-logback.xml</include> |
| 423 | </includes> |
| 424 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 425 | <filtering>false</filtering> |
| 426 | </resource> |
| 427 | <resource> |
| 428 | <directory>${project.basedir}/src/main/resources</directory> |
| 429 | <includes> |
| 430 | <include>**/*</include> |
| 431 | </includes> |
| 432 | <filtering>true</filtering> |
| 433 | </resource> |
| 434 | <resource> |
| 435 | <directory>${project.basedir}/src/main/resources/etc/appprops/</directory> |
| 436 | <includes> |
| 437 | <include>aaiconfig.properties</include> |
| 438 | </includes> |
| 439 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 440 | <filtering>false</filtering> |
| 441 | </resource> |
| 442 | <resource> |
| 443 | <directory>${project.basedir}/src/main/resources/etc/auth/</directory> |
| 444 | <includes> |
| 445 | <include>aai-client-cert.p12</include> |
| 446 | <include>tomcat_keystore</include> |
| 447 | <include>aai_policy.json</include> |
| 448 | </includes> |
| 449 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 450 | <filtering>true</filtering> |
| 451 | </resource> |
| 452 | <resource> |
| 453 | <directory>${project.basedir}/src/main/resources/</directory> |
| 454 | <includes> |
| 455 | <include>logback.xml</include> |
| 456 | <include>localhost-access-logback.xml</include> |
| 457 | <include>hbase-site.xml</include> |
| 458 | </includes> |
| 459 | <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath> |
| 460 | <filtering>true</filtering> |
| 461 | </resource> |
| 462 | <resource> |
| 463 | <directory>${project.basedir}/src/main/docker</directory> |
| 464 | <includes> |
| 465 | <include>**/*</include> |
| 466 | </includes> |
| 467 | <targetPath>${aai.build.directory}</targetPath> |
| 468 | <filtering>true</filtering> |
| 469 | </resource> |
| 470 | <resource> |
| 471 | <directory>${project.build.directory}/</directory> |
| 472 | <includes> |
| 473 | <include>${project.artifactId}-${project.version}.jar</include> |
| 474 | </includes> |
| 475 | <targetPath>${aai.build.directory}/lib/</targetPath> |
| 476 | <filtering>false</filtering> |
| 477 | </resource> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 478 | </resources> |
| 479 | <pluginManagement> |
| 480 | <plugins> |
| 481 | <plugin> |
| 482 | <groupId>org.codehaus.groovy.maven</groupId> |
| 483 | <artifactId>gmaven-plugin</artifactId> |
| 484 | <version>1.0</version> |
| 485 | <executions> |
| 486 | <execution> |
| 487 | <phase>validate</phase> |
| 488 | <goals> |
| 489 | <goal>execute</goal> |
| 490 | </goals> |
| 491 | <configuration> |
| 492 | <source> |
| 493 | println project.properties['aai.project.version']; |
| 494 | def versionArray; |
| 495 | if (project.properties['aai.project.version'] != null) { |
| 496 | versionArray = project.properties['aai.project.version'].split('\\.'); |
| 497 | } |
| 498 | |
| 499 | project.properties["project.major.version"] = versionArray[0]; |
| 500 | project.properties["project.minor.version"] = versionArray[1]; |
| 501 | project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest'; |
| 502 | println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; |
| 503 | </source> |
| 504 | </configuration> |
| 505 | </execution> |
| 506 | </executions> |
| 507 | </plugin> |
| 508 | </plugins> |
| 509 | </pluginManagement> |
| 510 | <plugins> |
| 511 | <plugin> |
| 512 | <groupId>org.springframework.boot</groupId> |
| 513 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 514 | </plugin> |
| 515 | <plugin> |
| 516 | <groupId>org.apache.maven.plugins</groupId> |
| 517 | <artifactId>maven-clean-plugin</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 518 | <version>3.2.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 519 | <configuration> |
| 520 | <filesets> |
| 521 | <fileset> |
| 522 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 523 | <includes> |
| 524 | <include>**/*</include> |
| 525 | </includes> |
| 526 | <followSymlinks>false</followSymlinks> |
| 527 | </fileset> |
| 528 | </filesets> |
| 529 | </configuration> |
| 530 | </plugin> |
| 531 | <plugin> |
| 532 | <groupId>org.codehaus.groovy.maven</groupId> |
| 533 | <artifactId>gmaven-plugin</artifactId> |
| 534 | </plugin> |
| 535 | <plugin> |
| 536 | <groupId>org.apache.maven.plugins</groupId> |
| 537 | <artifactId>maven-dependency-plugin</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 538 | <version>3.3.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 539 | </plugin> |
| 540 | <plugin> |
| 541 | <groupId>org.apache.maven.plugins</groupId> |
| 542 | <artifactId>maven-javadoc-plugin</artifactId> |
| 543 | <version>${javadoc.plugin.version}</version> |
| 544 | </plugin> |
| 545 | <plugin> |
| 546 | <artifactId>maven-assembly-plugin</artifactId> |
| 547 | <configuration> |
| 548 | <descriptors> |
| 549 | <descriptor>src/main/assembly/descriptor.xml</descriptor> |
| 550 | </descriptors> |
| 551 | </configuration> |
| 552 | <executions> |
| 553 | <execution> |
| 554 | <id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 555 | <phase>package</phase> <!-- bind to the packaging phase --> |
| 556 | <goals> |
| 557 | <goal>single</goal> |
| 558 | </goals> |
| 559 | </execution> |
| 560 | </executions> |
| 561 | </plugin> |
| 562 | <plugin> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 563 | <artifactId>maven-resources-plugin</artifactId> |
| 564 | <version>2.7</version> |
| 565 | <executions> |
| 566 | <execution> |
| 567 | <id>copy-oxm-edgerules-project</id> |
| 568 | <phase>initialize</phase> |
| 569 | <goals> |
| 570 | <goal>copy-resources</goal> |
| 571 | </goals> |
| 572 | <configuration> |
| 573 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 574 | <resources> |
| 575 | <resource> |
| 576 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 577 | <includes> |
| 578 | <include>**/oxm/**/*.xml</include> |
| 579 | <include>**/dbedgerules/**/*.json</include> |
| 580 | </includes> |
| 581 | </resource> |
| 582 | </resources> |
| 583 | </configuration> |
| 584 | </execution> |
| 585 | <execution> |
| 586 | <id>copy-queries-project</id> |
| 587 | <phase>initialize</phase> |
| 588 | <goals> |
| 589 | <goal>copy-resources</goal> |
| 590 | </goals> |
| 591 | <configuration> |
| 592 | <outputDirectory>${project.basedir}/src/main/resources/schema</outputDirectory> |
| 593 | <resources> |
| 594 | <resource> |
| 595 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 596 | <includes> |
| 597 | <include>**/query/**/*.json</include> |
| 598 | </includes> |
| 599 | </resource> |
| 600 | </resources> |
| 601 | </configuration> |
| 602 | </execution> |
| 603 | <execution> |
| 604 | <id>copy-oxm-edgerules</id> |
| 605 | <phase>initialize</phase> |
| 606 | <goals> |
| 607 | <goal>copy-resources</goal> |
| 608 | </goals> |
| 609 | <configuration> |
| 610 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 611 | <resources> |
| 612 | <resource> |
| 613 | <directory>${project.basedir}/../aai-schema/src/main/resources/</directory> |
| 614 | <includes> |
| 615 | <include>**/oxm/**/*.xml</include> |
| 616 | <include>**/dbedgerules/**/*.json</include> |
| 617 | </includes> |
| 618 | </resource> |
| 619 | </resources> |
| 620 | </configuration> |
| 621 | </execution> |
| 622 | <execution> |
| 623 | <id>copy-queries</id> |
| 624 | <phase>initialize</phase> |
| 625 | <goals> |
| 626 | <goal>copy-resources</goal> |
| 627 | </goals> |
| 628 | <configuration> |
| 629 | <outputDirectory>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema/</outputDirectory> |
| 630 | <resources> |
| 631 | <resource> |
| 632 | <directory>${project.basedir}/../aai-queries/src/main/resources/schema</directory> |
| 633 | <includes> |
| 634 | <include>**/query/**/*.json</include> |
| 635 | </includes> |
| 636 | </resource> |
| 637 | </resources> |
| 638 | </configuration> |
| 639 | </execution> |
Yoo, Brian (by703c) | a9fee2c | 2021-01-22 13:50:01 -0500 | [diff] [blame] | 640 | <execution> |
| 641 | <id>copy-fat-jar</id> |
| 642 | <!-- |
| 643 | Reason the phase for this is set in the post integration phase due |
| 644 | to the spring boot maven plugin repackages post package phase |
| 645 | |
| 646 | So basically first the spring boot plugin in phase package or pre package |
| 647 | only creates an jar without its dependencies |
| 648 | |
| 649 | ls -trl target/ |
| 650 | |
| 651 | 3.3 MB aai-schema-1.8.0-SNAPSHOT.jar |
| 652 | |
| 653 | Then in the post package or during the package phase, it would get dependencies |
| 654 | and convert it into an fat jar |
| 655 | |
| 656 | 80 MB aai-schema-1.8.0-SNAPSHOT.jar |
| 657 | |
| 658 | During the package phase if the copy of the above aai-schema-1.8.0-SNAPSHOT jar |
| 659 | was done, it would take the slim 3.3 MB jar and wouldn't include any of the dependencies |
| 660 | so thats why the phase for this exection must be in post the spring boot repackage phase |
| 661 | --> |
| 662 | <phase>post-integration-test</phase> |
| 663 | <goals> |
| 664 | <goal>copy-resources</goal> |
| 665 | </goals> |
| 666 | <configuration> |
| 667 | <outputDirectory>${aai.build.directory}/lib/</outputDirectory> |
| 668 | <resources> |
| 669 | <resource> |
| 670 | <directory>${project.build.directory}/</directory> |
| 671 | <includes> |
| 672 | <include>${project.artifactId}-${project.version}.jar</include> |
| 673 | </includes> |
| 674 | <filtering>false</filtering> |
| 675 | </resource> |
| 676 | </resources> |
| 677 | </configuration> |
| 678 | </execution> |
Kajur, Harish (vk250x) | 47fe584 | 2019-01-22 17:11:02 -0500 | [diff] [blame] | 679 | </executions> |
| 680 | </plugin> |
| 681 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 682 | <groupId>org.apache.maven.plugins</groupId> |
| 683 | <artifactId>maven-surefire-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 684 | <configuration> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 685 | <runOrder>alphabetical</runOrder> |
| 686 | </configuration> |
| 687 | </plugin> |
| 688 | <plugin> |
| 689 | <groupId>com.mycila</groupId> |
| 690 | <artifactId>license-maven-plugin</artifactId> |
| 691 | </plugin> |
| 692 | <plugin> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 693 | <groupId>org.apache.maven.plugins</groupId> |
| 694 | <artifactId>maven-deploy-plugin</artifactId> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 695 | </plugin> |
Jimmy Forsyth | fad0609 | 2019-06-26 18:41:27 -0400 | [diff] [blame] | 696 | |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 697 | <plugin> |
| 698 | <groupId>org.springframework.boot</groupId> |
| 699 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 700 | <version>${spring.boot.version}</version> |
| 701 | <configuration> |
| 702 | <mainClass>${start-class}</mainClass> |
| 703 | <layout>ZIP</layout> |
| 704 | </configuration> |
| 705 | <executions> |
| 706 | <execution> |
| 707 | <goals> |
| 708 | <goal>repackage</goal> |
| 709 | </goals> |
| 710 | </execution> |
| 711 | </executions> |
| 712 | </plugin> |
| 713 | <plugin> |
| 714 | <groupId>org.apache.maven.plugins</groupId> |
| 715 | <artifactId>maven-clean-plugin</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 716 | <version>3.2.0</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 717 | <configuration> |
| 718 | <filesets> |
| 719 | <fileset> |
| 720 | <directory>${project.basedir}/src/main/resources/schema</directory> |
| 721 | <includes> |
| 722 | <include>**/*</include> |
| 723 | </includes> |
| 724 | <followSymlinks>false</followSymlinks> |
| 725 | </fileset> |
| 726 | </filesets> |
| 727 | </configuration> |
| 728 | </plugin> |
| 729 | </plugins> |
| 730 | </build> |
| 731 | <reporting> |
| 732 | <plugins> |
| 733 | <plugin> |
| 734 | <groupId>org.apache.maven.plugins</groupId> |
| 735 | <artifactId>maven-javadoc-plugin</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 736 | <version>3.4.1</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 737 | <configuration> |
| 738 | <failOnError>false</failOnError> |
| 739 | <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet> |
| 740 | <docletArtifact> |
| 741 | <groupId>org.umlgraph</groupId> |
| 742 | <artifactId>umlgraph</artifactId> |
Fiete Ostkamp | e4fd0ae | 2022-09-23 14:03:41 +0200 | [diff] [blame] | 743 | <version>5.6.6</version> |
Kajur, Harish (vk250x) | d64d789 | 2018-11-26 00:07:25 -0500 | [diff] [blame] | 744 | </docletArtifact> |
| 745 | <additionalparam>-views</additionalparam> |
| 746 | <useStandardDocletOptions>true</useStandardDocletOptions> |
| 747 | </configuration> |
| 748 | </plugin> |
| 749 | </plugins> |
| 750 | </reporting> |
| 751 | </project> |