[AAI] Update traversal to use the new v26 schema and upversion to 1.9.4
[aai/traversal.git] / aai-traversal / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2019 AT&T Intellectual Property. All rights reserved.
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="http://maven.apache.org/POM/4.0.0"
24         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26         <modelVersion>4.0.0</modelVersion>
27
28         <parent>
29                 <groupId>org.onap.aai.traversal</groupId>
30                 <artifactId>traversal</artifactId>
31                 <version>1.9.4-SNAPSHOT</version>
32         </parent>
33         <groupId>org.onap.aai.traversal</groupId>
34         <artifactId>aai-traversal</artifactId>
35
36         <properties>
37           <mockito.core.version>1.10.19</mockito.core.version>
38                 <java.version>1.8</java.version>
39                 <start-class>org.onap.aai.TraversalApp</start-class>
40
41                 <maven.skip.tests>true</maven.skip.tests>
42                 <maven.compiler.source>1.8</maven.compiler.source>
43                 <maven.compiler.target>1.8</maven.compiler.target>
44                 
45                 <jopt.simple.version>4.9</jopt.simple.version>
46
47                 <!-- End of the jacoco plugin properties -->
48                 
49                 <!-- Default docker registry that maven fabric plugin will try to pull 
50                         from -->
51                 <gremlin.version>3.2.3</gremlin.version>
52                 <docker.registry>docker.io</docker.registry>
53                 <!-- Specifying the docker push registry where the image should be pushed -->
54                 <!-- This value should be overwritten at runtime to wherever need to be 
55                         pushed to -->
56                 <docker.push.registry>localhost:5000</docker.push.registry>
57                 <aai.docker.version>1.0.0</aai.docker.version>
58
59                 <!-- Location where assembly of our scripts, resources and main jar will 
60                         be held Check the ${project.artifactId}/src/main/assembly/descriptor.xml 
61                         for more info -->
62                 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
63                 <aai.docker.version>1.0.0</aai.docker.version>
64                 <aai.docker.namespace>onap</aai.docker.namespace>
65                 <aai.base.image>alpine</aai.base.image>
66                 <aai.base.image.version>1.6.0</aai.base.image.version>
67
68                 <!-- Nexus Proxy Properties and Snapshot Locations Ideally this can be 
69                         overwritten at runtime per internal environment specific values at runtime -->
70                 <nexusproxy>https://nexus.onap.org</nexusproxy>
71                 <site.path>/content/sites/site/org/onap/aai/traversal/${project.artifactId}/${project.version}</site.path>
72                 <release.path>/content/repositories/releases/</release.path>
73                 <snapshot.path>/content/repositories/snapshots/</snapshot.path>
74
75                 <!-- This will be used for the docker images as the default format of maven 
76                         build has issues -->
77                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
78
79                 <antlr4.visitor>true</antlr4.visitor>
80                 <antlr4.listener>true</antlr4.listener>
81
82                 <snapshot.file>${project.basedir}/snapshots/data.graphson</snapshot.file>
83                 <jacoco.line.coverage.limit>0.61</jacoco.line.coverage.limit>
84
85                 <!-- Start of Default ONAP Schema Properties -->
86                 <schema.source.name>onap</schema.source.name>
87                 <schema.configuration.location>N/A</schema.configuration.location>
88                 <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
89                 <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
90                 <schema.version.depth.start>v10</schema.version.depth.start>
91                 <schema.version.related.link.start>v10</schema.version.related.link.start>
92                 <schema.version.app.root.start>v11</schema.version.app.root.start>
93                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
94                 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
95                 <schema.version.api.default>v24</schema.version.api.default>
96                 <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26</schema.version.list>
97                 <schema.uri.base.path>/aai</schema.uri.base.path>
98                 <keycloak.version>11.0.2</keycloak.version>
99                 <micrometer-spring-legacy.version>1.3.19</micrometer-spring-legacy.version>
100                 <micrometer-core.version>1.6.6</micrometer-core.version>
101                 <micrometer-registry-prometheus.version>1.6.6</micrometer-registry-prometheus.version>
102                 <micrometer-jersey2>1.6.6</micrometer-jersey2>
103                 <testcontainers.version>1.6.1</testcontainers.version>
104                 <!-- End of Default ONAP Schema Properties -->
105
106                 <!-- Integration tests will be skipped by default. Could be enabled here or by -DskipITs=false-->
107                 <skipITs>true</skipITs>
108         </properties>
109         <profiles>
110                 <!-- Docker profile to be used for building docker image and pushing to 
111                         nexus -->
112                 <profile>
113                         <id>docker</id>
114                         <build>
115                                 <plugins>
116                                         <plugin>
117                                                 <groupId>org.codehaus.groovy.maven</groupId>
118                                                 <artifactId>gmaven-plugin</artifactId>
119                                                 <version>1.0</version>
120                                                 <executions>
121                                                         <execution>
122                                                                 <phase>pre-clean</phase>
123                                                         </execution>
124                                                         <execution>
125                                                                 <id>parse-base</id>
126                                                                 <phase>prepare-package</phase>
127                                                                 <goals>
128                                                                         <goal>execute</goal>
129                                                                 </goals>
130                                                                 <configuration>
131                                                                         <source>
132                                                                                 def userAaiBaseImage = session.userProperties['aai.base.image'];
133                                                                                 def userAaiCommonVersion =
134                                                                                 session.userProperties['aai.base.image.version'];
135                                                                                 if (userAaiCommonVersion != null) {
136                                                                                 project.properties['aai.base.image.version'] =
137                                                                                 userAaiCommonVersion;
138                                                                                 }
139                                                                                 if (userAaiBaseImage != null) {
140                                                                                 project.properties['aai.base.image'] = userAaiBaseImage;
141                                                                                 }
142                                                                                 log.info 'Base image flavour: ' +
143                                                                                 project.properties['aai.base.image'];
144                                                                                 log.info 'Base image version: ' +
145                                                                                 project.properties['aai.base.image.version'];
146                                                                         </source>
147                                                                 </configuration>
148                                                         </execution>
149                                                 </executions>
150                                         </plugin>
151                                         <plugin>
152                                                 <groupId>io.fabric8</groupId>
153                                                 <artifactId>docker-maven-plugin</artifactId>
154                                                 <configuration>
155                                                         <verbose>true</verbose>
156                                                         <apiVersion>1.23</apiVersion>
157                                                         <images>
158                                                                 <image>
159                                                                         <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
160                                                                         <build>
161                                                                                 <filter>@</filter>
162                                                                                 <tags>
163                                                                                         <tag>latest</tag>
164                                                                                         <tag>${project.docker.latesttag.version}</tag>
165                                                                                         <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
166                                                                                 </tags>
167                                                                                 <cleanup>try</cleanup>
168                                                                                 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
169                                                                                 <assembly>
170                                                                                         <inline>
171                                                                                                 <fileSets>
172                                                                                                         <fileSet>
173                                                                                                                 <directory>${aai.build.directory}</directory>
174                                                                                                                 <outputDirectory>/${project.artifactId}</outputDirectory>
175                                                                                                         </fileSet>
176                                                                                                 </fileSets>
177                                                                                         </inline>
178                                                                                 </assembly>
179                                                                         </build>
180                                                                 </image>
181                                                         </images>
182                                                 </configuration>
183                                                 <executions>
184                                                         <execution>
185                                                                 <id>clean-images</id>
186                                                                 <phase>pre-clean</phase>
187                                                                 <goals>
188                                                                         <goal>remove</goal>
189                                                                 </goals>
190                                                                 <configuration>
191                                                                         <removeAll>true</removeAll>
192                                                                 </configuration>
193                                                         </execution>
194                                                         <execution>
195                                                                 <id>generate-images</id>
196                                                                 <phase>verify</phase>
197                                                                 <goals>
198                                                                         <goal>build</goal>
199                                                                 </goals>
200                                                         </execution>
201                                                         <execution>
202                                                                 <id>push-images</id>
203                                                                 <phase>deploy</phase>
204                                                                 <goals>
205                                                                         <goal>push</goal>
206                                                                 </goals>
207                                                         </execution>
208                                                 </executions>
209                                         </plugin>
210                                 </plugins>
211                         </build>
212                 </profile>
213                 <!-- Start of ONAP Profile -->
214                 <profile>
215                         <id>onap</id>
216                         <properties>
217                                 <schema.source.name>onap</schema.source.name>
218                                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
219                                 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
220                         </properties>
221                 </profile>
222                 <!-- End of ONAP Profile -->
223                 <profile>
224                         <id>runAjsc</id>
225                         <properties>
226                                 <skipTests>${maven.skip.tests}</skipTests>
227                         </properties>
228                         <build>
229                                 <defaultGoal>pre-integration-test</defaultGoal>
230                                 <plugins>
231                                         <plugin>
232                                                 <groupId>org.codehaus.mojo</groupId>
233                                                 <artifactId>exec-maven-plugin</artifactId>
234                                                 <version>1.6.0</version>
235                                                 <executions>
236                                                         <execution>
237                                                                 <id>run-spring-boot</id>
238                                                                 <phase>package</phase>
239                                                                 <goals>
240                                                                         <goal>java</goal>
241                                                                 </goals>
242                                                         </execution>
243                                                 </executions>
244                                                 <configuration>
245                                                         <mainClass>${start-class}</mainClass>
246                                                         <systemProperties>
247                                                                 <property>
248                                                                         <key>snapshot.location</key>
249                                                                         <value>${snapshot.file}</value>
250                                                                 </property>
251                                                                 <property>
252                                                                         <key>schema.source.name</key>
253                                                                         <value>${schema.source.name}</value>
254                                                                 </property>
255                                                                 <property>
256                                                                         <key>schema.configuration.location</key>
257                                                                         <value>${schema.configuration.location}</value>
258                                                                 </property>
259                                                                 <property>
260                                                                         <key>schema.nodes.location</key>
261                                                                         <value>${schema.nodes.location}</value>
262                                                                 </property>
263                                                                 <property>
264                                                                         <key>schema.edges.location</key>
265                                                                         <value>${schema.edges.location}</value>
266                                                                 </property>
267                                                                 <property>
268                                                                         <key>schema.version.depth.start</key>
269                                                                         <value>${schema.version.depth.start}</value>
270                                                                 </property>
271                                                                 <property>
272                                                                         <key>schema.version.related.link.start</key>
273                                                                         <value>${schema.version.related.link.start}</value>
274                                                                 </property>
275                                                                 <property>
276                                                                         <key>schema.version.app.root.start</key>
277                                                                         <value>${schema.version.app.root.start}</value>
278                                                                 </property>
279                                                                 <property>
280                                                                         <key>schema.version.namespace.change.start</key>
281                                                                         <value>${schema.version.namespace.change.start}</value>
282                                                                 </property>
283                                                                 <property>
284                                                                         <key>schema.version.edge.label.start</key>
285                                                                         <value>${schema.version.edge.label.start}</value>
286                                                                 </property>
287                                                                 <property>
288                                                                         <key>schema.version.api.default</key>
289                                                                         <value>${schema.version.api.default}</value>
290                                                                 </property>
291                                                                 <property>
292                                                                         <key>schema.version.list</key>
293                                                                         <value>${schema.version.list}</value>
294                                                                 </property>
295                                                                 <property>
296                                                                         <key>schema.uri.base.path</key>
297                                                                         <value>${schema.uri.base.path}</value>
298                                                                 </property>
299                                                         </systemProperties>
300                                                         <executable>java</executable>
301                                                 </configuration>
302                                         </plugin>
303                                 </plugins>
304                         </build>
305                 </profile>
306         </profiles>
307
308         <!-- <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> 
309                 <artifactId>spring-boot-starter-parent</artifactId> <type>pom</type> <scope>import</scope> 
310                 </dependency> </dependencies> </dependencyManagement> -->
311         <dependencies>
312                 <dependency>
313                         <groupId>org.springframework.boot</groupId>
314                         <artifactId>spring-boot-starter-actuator</artifactId>
315                 </dependency>
316                 <dependency>
317                         <groupId>org.springframework.boot</groupId>
318                         <artifactId>spring-boot-starter-hateoas</artifactId>
319                 </dependency>
320                 <dependency>
321                         <groupId>io.micrometer</groupId>
322                         <artifactId>micrometer-spring-legacy</artifactId>
323                         <version>${micrometer-spring-legacy.version}</version>
324                 </dependency>
325                 <dependency>
326                         <groupId>io.micrometer</groupId>
327                         <artifactId>micrometer-core</artifactId>
328                         <version>${micrometer-core.version}</version>
329                 </dependency>
330                 <dependency>
331                         <groupId>io.micrometer</groupId>
332                         <artifactId>micrometer-registry-prometheus</artifactId>
333                         <version>${micrometer-registry-prometheus.version}</version>
334                 </dependency>
335                 <dependency>
336                         <groupId>io.micrometer</groupId>
337                         <artifactId>micrometer-jersey2</artifactId>
338                         <version>${micrometer-jersey2}</version>
339                 </dependency>
340                 <dependency>
341                     <groupId>javax.jms</groupId>
342                     <artifactId>javax.jms-api</artifactId>
343                     <version>2.0.1</version>
344                 </dependency>
345                 <dependency>
346                     <groupId>javax.ws.rs</groupId>
347                     <artifactId>javax.ws.rs-api</artifactId>
348                     <version>2.1</version>
349                 </dependency>
350                 <dependency>
351                     <groupId>javax.xml.bind</groupId>
352                     <artifactId>jaxb-api</artifactId>
353                 </dependency>
354                 <dependency>
355                     <groupId>com.sun.xml.bind</groupId>
356                     <artifactId>jaxb-impl</artifactId>
357                 </dependency>
358                 <dependency>
359                     <groupId>com.sun.xml.bind</groupId>
360                     <artifactId>jaxb-core</artifactId>
361                 </dependency>
362         <dependency>
363             <groupId>net.sf.jopt-simple</groupId>
364             <artifactId>jopt-simple</artifactId>
365             <version>${jopt.simple.version}</version>
366         </dependency>   
367                 <dependency>
368                         <groupId>io.swagger</groupId>
369                         <artifactId>swagger-core</artifactId>
370                         <exclusions>
371                                 <exclusion>
372                                         <groupId>javax.ws.rs</groupId>
373                                         <artifactId>jsr311-api</artifactId>
374                                 </exclusion>
375                         </exclusions>
376                 </dependency>
377                 <dependency>
378                         <groupId>io.swagger</groupId>
379                         <artifactId>swagger-annotations</artifactId>
380                 </dependency>
381                 <dependency>
382                         <groupId>io.swagger</groupId>
383                         <artifactId>swagger-jersey-jaxrs</artifactId>
384                         <exclusions>
385                                 <exclusion>
386                                         <groupId>org.glassfish.jersey.media</groupId>
387                                         <artifactId>jersey-media-multipart</artifactId>
388                                 </exclusion>
389                                 <exclusion>
390                                         <artifactId>jersey-core</artifactId>
391                                         <groupId>com.sun.jersey</groupId>
392                                 </exclusion>
393                                 <exclusion>
394                                         <artifactId>jersey-json</artifactId>
395                                         <groupId>com.sun.jersey</groupId>
396                                 </exclusion>
397                                 <exclusion>
398                                         <artifactId>jersey-server</artifactId>
399                                         <groupId>com.sun.jersey</groupId>
400                                 </exclusion>
401                                 <exclusion>
402                                         <artifactId>jersey-client</artifactId>
403                                         <groupId>com.sun.jersey</groupId>
404                                 </exclusion>
405                                 <exclusion>
406                                         <artifactId>jsr311-api</artifactId>
407                                         <groupId>javax.ws.rs</groupId>
408                                 </exclusion>
409                                 <exclusion>
410                                         <artifactId>jersey-multipart</artifactId>
411                                         <groupId>com.sun.jersey.contribs</groupId>
412                                 </exclusion>
413                         </exclusions>
414                 </dependency>
415                 <dependency>
416                         <groupId>commons-configuration</groupId>
417                         <artifactId>commons-configuration</artifactId>
418                         <exclusions>
419                                 <exclusion>
420                                         <artifactId>commons-lang</artifactId>
421                                         <groupId>commons-lang</groupId>
422                                 </exclusion>
423                         </exclusions>
424                 </dependency>
425                 <dependency>
426                         <groupId>commons-lang</groupId>
427                         <artifactId>commons-lang</artifactId>
428                 </dependency>
429                 <!-- eelf dependency -->
430                 <dependency>
431                         <groupId>com.att.eelf</groupId>
432                         <artifactId>eelf-core</artifactId>
433                 </dependency>
434                 <dependency>
435                         <groupId>ch.qos.logback</groupId>
436                         <artifactId>logback-core</artifactId>
437                 </dependency>
438                 <dependency>
439                         <groupId>ch.qos.logback</groupId>
440                         <artifactId>logback-classic</artifactId>
441                 </dependency>
442                 <dependency>
443                         <groupId>ch.qos.logback</groupId>
444                         <artifactId>logback-access</artifactId>
445                 </dependency>
446                 <dependency>
447                         <groupId>org.hamcrest</groupId>
448                         <artifactId>hamcrest-junit</artifactId>
449                 </dependency>
450                 <dependency>
451                         <groupId>junit</groupId>
452                         <artifactId>junit</artifactId>
453                         <scope>test</scope>
454                 </dependency>
455                 <dependency>
456                         <groupId>com.google.guava</groupId>
457                         <artifactId>guava</artifactId>
458                 </dependency>
459                 <dependency>
460                         <groupId>org.janusgraph</groupId>
461                         <artifactId>janusgraph-cql</artifactId>
462                         <exclusions>
463                                 <exclusion>
464                                         <groupId>org.slf4j</groupId>
465                                         <artifactId>slf4j-log4j12</artifactId>
466                                 </exclusion>
467                         </exclusions>
468                 </dependency>
469                 <dependency>
470                         <groupId>com.github.jnr</groupId>
471                         <artifactId>jnr-ffi</artifactId>
472                 </dependency>
473                 <dependency>
474                         <groupId>org.apache.tinkerpop</groupId>
475                         <artifactId>gremlin-driver</artifactId>
476                         <exclusions>
477                                 <exclusion>
478                                         <groupId>org.codehaus.groovy</groupId>
479                                         <artifactId>groovy</artifactId>
480                                 </exclusion>
481                         </exclusions>
482                 </dependency>
483                 <dependency>
484                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
485                         <artifactId>jackson-jaxrs-json-provider</artifactId>
486                 </dependency>
487                 <dependency>
488                         <groupId>org.mockito</groupId>
489                         <artifactId>mockito-all</artifactId>
490                         <scope>test</scope>
491                 </dependency>
492                 <dependency>
493                         <groupId>org.powermock</groupId>
494                         <artifactId>powermock-module-junit4</artifactId>
495                         <scope>test</scope>
496                 </dependency>
497                 <dependency>
498                         <groupId>org.powermock</groupId>
499                         <artifactId>powermock-api-mockito</artifactId>
500                         <scope>test</scope>
501                         <version>1.6.6</version>
502                 </dependency>
503                 <dependency>
504                         <groupId>com.beust</groupId>
505                         <artifactId>jcommander</artifactId>
506                 </dependency>
507                 <dependency>
508                         <groupId>org.json</groupId>
509                         <artifactId>json</artifactId>
510                 </dependency>
511                 <dependency>
512                         <groupId>org.freemarker</groupId>
513                         <artifactId>freemarker</artifactId>
514                 </dependency>
515                 <dependency>
516                         <groupId>javax.xml.bind</groupId>
517                         <artifactId>jaxb-api</artifactId>
518                 </dependency>
519                 <dependency>
520                         <groupId>org.eclipse.persistence</groupId>
521                         <artifactId>eclipselink</artifactId>
522                 </dependency>
523                 <dependency>
524                         <groupId>org.eclipse.persistence</groupId>
525                         <artifactId>org.eclipse.persistence.moxy</artifactId>
526                         <scope>compile</scope>
527                 </dependency>
528                 <dependency>
529                         <groupId>org.powermock</groupId>
530                         <artifactId>powermock-module-javaagent</artifactId>
531                         <scope>test</scope>
532                 </dependency>
533                 <dependency>
534                         <groupId>org.powermock</groupId>
535                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
536                         <scope>test</scope>
537                 </dependency>
538                 <dependency>
539                         <groupId>com.github.fge</groupId>
540                         <artifactId>json-patch</artifactId>
541                 </dependency>
542                 <dependency>
543                         <groupId>org.javatuples</groupId>
544                         <artifactId>javatuples</artifactId>
545                         <scope>compile</scope>
546                 </dependency>
547                 <dependency>
548                         <groupId>com.google.code.gson</groupId>
549                         <artifactId>gson</artifactId>
550                 </dependency>
551                 <dependency>
552                         <groupId>com.bazaarvoice.jolt</groupId>
553                         <artifactId>jolt-complete</artifactId>
554                 </dependency>
555                 <dependency>
556                         <groupId>com.jayway.jsonpath</groupId>
557                         <artifactId>json-path</artifactId>
558                 </dependency>
559                 <!-- Do not use activemq-all because they force you to use a specific logging 
560                         and they shade it so you can't simply exclude it and when you deploy the 
561                         jar, you will notice failure -->
562                 <dependency>
563                         <groupId>org.apache.activemq</groupId>
564                         <artifactId>activemq-broker</artifactId>
565                 </dependency>
566                 <dependency>
567                         <groupId>org.apache.activemq</groupId>
568                         <artifactId>activemq-client</artifactId>
569                 </dependency>
570                 <dependency>
571                         <groupId>org.onap.aai.aai-common</groupId>
572                         <artifactId>aai-core</artifactId>
573                         <exclusions>
574                                 <exclusion>
575                                         <groupId>org.onap.aai.aai-common</groupId>
576                                         <artifactId>aai-aaf-auth</artifactId>
577                                 </exclusion>
578                                 <exclusion>
579                                         <groupId>com.sun.jersey</groupId>
580                                         <artifactId>jersey-core</artifactId>
581                                 </exclusion>
582                                 <exclusion>
583                                         <groupId>org.codehaus.jackson</groupId>
584                                         <artifactId>jackson-mapper-asl</artifactId>
585                                 </exclusion>
586                                 <exclusion>
587                                         <groupId>org.eclipse.jetty</groupId>
588                                         <artifactId>jetty-http</artifactId>
589                                 </exclusion>
590                                 <exclusion>
591                                         <groupId>org.eclipse.jetty</groupId>
592                                         <artifactId>jetty-server</artifactId>
593                                 </exclusion>
594                                 <exclusion>
595                                         <groupId>org.springframework</groupId>
596                                         <artifactId>spring-web</artifactId>
597                                 </exclusion>
598                 <exclusion>
599                     <groupId>org.onap.aai</groupId>
600                     <artifactId>aai-logging</artifactId>
601                 </exclusion>
602             </exclusions>
603                 </dependency>
604                 <dependency>
605                         <groupId>org.springframework</groupId>
606                         <artifactId>spring-jms</artifactId>
607                         <exclusions>
608                                 <exclusion>
609                                         <groupId>com.sun.jersey</groupId>
610                                         <artifactId>jersey-core</artifactId>
611                                 </exclusion>
612                         </exclusions>
613                 </dependency>
614                 <!-- Do not use the jersey-client since jersey client 1.0 version clashes 
615                         with jersey 2 which we are using -->
616                 <!-- Use this to make http requests instead of jersey 1.0 client -->
617                 <dependency>
618                         <groupId>org.apache.httpcomponents</groupId>
619                         <artifactId>httpclient</artifactId>
620                 </dependency>
621                 <dependency>
622                         <groupId>org.onap.aai.aai-common</groupId>
623                         <artifactId>aai-rest</artifactId>
624                         <exclusions>
625                                 <exclusion>
626                                         <groupId>org.onap.aai.aai-common</groupId>
627                                         <artifactId>aai-aaf-auth</artifactId>
628                                 </exclusion>
629                         </exclusions>
630                 </dependency>
631                 <dependency>
632                         <groupId>org.skyscreamer</groupId>
633                         <artifactId>jsonassert</artifactId>
634                         <scope>test</scope>
635                 </dependency>
636                 <!-- Explicitly stating the security spring framework and exclude the bouncy 
637                         castle since that is somehow overwriting our p12 file decryption that's built 
638                         into java security This will cause the password is incorrect This needs to 
639                         be added back if org.bouncy castle dependency sneaks backs in and causing 
640                         issues with the two way ssl -->
641                 <dependency>
642                         <groupId>org.springframework.security</groupId>
643                         <artifactId>spring-security-rsa</artifactId>
644                         <exclusions>
645                                 <exclusion>
646                                         <groupId>org.bouncycastle</groupId>
647                                         <artifactId>bcpkix-jdk15on</artifactId>
648                                 </exclusion>
649                         </exclusions>
650                 </dependency>
651                 <dependency>
652                         <groupId>io.netty</groupId>
653                         <artifactId>netty-handler</artifactId>
654                 </dependency>
655                 <dependency>
656                         <groupId>org.springframework.boot</groupId>
657                         <artifactId>spring-boot-starter-web</artifactId>
658                         <exclusions>
659                                 <exclusion>
660                                         <groupId>org.springframework.boot</groupId>
661                                         <artifactId>spring-boot-starter-tomcat</artifactId>
662                                 </exclusion>
663                                 <exclusion>
664                                         <groupId>org.slf4j</groupId>
665                                         <artifactId>log4j-over-slf4j</artifactId>
666                                 </exclusion>
667                         </exclusions>
668                 </dependency>
669                 <dependency>
670                         <groupId>org.springframework.boot</groupId>
671                         <artifactId>spring-boot-starter-jetty</artifactId>
672                 </dependency>
673                 <dependency>
674                         <groupId>org.onap.aaf.authz</groupId>
675                         <artifactId>aaf-cadi-aaf</artifactId>
676                 </dependency>
677                 <dependency>
678                         <groupId>io.netty</groupId>
679                         <artifactId>netty-all</artifactId>
680                 </dependency>
681                 <dependency>
682                         <groupId>org.springframework</groupId>
683                         <artifactId>spring-test</artifactId>
684                         <scope>test</scope>
685                 </dependency>
686                 <dependency>
687                         <groupId>org.springframework.boot</groupId>
688                         <artifactId>spring-boot-test</artifactId>
689                         <scope>test</scope>
690                 </dependency>
691                 <dependency>
692                         <groupId>org.antlr</groupId>
693                         <artifactId>antlr4-runtime</artifactId>
694                 </dependency>
695                 <dependency>
696                         <groupId>org.antlr</groupId>
697                         <artifactId>antlr4-maven-plugin</artifactId>
698                         <version>${antlr.version}</version>
699                         <exclusions>
700                                 <exclusion>
701                                         <groupId>org.sonatype.sisu</groupId>
702                                         <artifactId>sisu-guava</artifactId>
703                                 </exclusion>
704                         </exclusions>
705                 </dependency>
706                 <dependency>
707                         <groupId>org.apache.tinkerpop</groupId>
708                         <artifactId>gremlin-core</artifactId>
709                         <exclusions>
710                                 <exclusion>
711                                         <groupId>org.slf4j</groupId>
712                                         <artifactId>slf4j-log4j12</artifactId>
713                                 </exclusion>
714                         </exclusions>
715                 </dependency>
716                 <dependency>
717                         <groupId>org.apache.tinkerpop</groupId>
718                         <artifactId>tinkergraph-gremlin</artifactId>
719                 </dependency>
720                 <dependency>
721                         <groupId>org.apache.tinkerpop</groupId>
722                         <artifactId>gremlin-groovy</artifactId>
723                 </dependency>
724                 <dependency>
725                         <groupId>org.codehaus.plexus</groupId>
726                         <artifactId>plexus-utils</artifactId>
727                 </dependency>
728                 <dependency>
729                         <groupId>org.springframework.boot</groupId>
730                         <artifactId>spring-boot-starter-security</artifactId>
731                 </dependency>
732                 <dependency>
733                         <groupId>org.keycloak</groupId>
734                         <artifactId>keycloak-spring-boot-starter</artifactId>
735                 </dependency>
736                 <dependency>
737                         <groupId>com.github.dasniko</groupId>
738                         <artifactId>testcontainers-keycloak</artifactId>
739                         <version>${testcontainers.version}</version>
740                         <scope>test</scope>
741                 </dependency>
742                 <dependency>
743                         <groupId>org.keycloak</groupId>
744                         <artifactId>keycloak-admin-client</artifactId>
745                         <version>${keycloak.version}</version>
746                         <scope>test</scope>
747                 </dependency>
748         </dependencies>
749         <dependencyManagement>
750                 <dependencies>
751                         <dependency>
752                                 <groupId>org.keycloak.bom</groupId>
753                                 <artifactId>keycloak-adapter-bom</artifactId>
754                                 <version>${keycloak.version}</version>
755                                 <type>pom</type>
756                                 <scope>import</scope>
757                         </dependency>
758                 </dependencies>
759         </dependencyManagement>
760         <build>
761                 <resources>
762                         <resource>
763                                 <directory>${project.basedir}/src/main/swm</directory>
764                                 <targetPath>${project.build.directory}/swm</targetPath>
765                                 <filtering>false</filtering>
766                         </resource>
767                         <resource>
768                                 <directory>${project.basedir}/src/main/resources</directory>
769                                 <includes>
770                                         <include>application.properties</include>
771                                         <include>dme2.properties</include>
772                                         <include>logback.xml</include>
773                                         <include>localhost-access-logback.xml</include>
774                                 </includes>
775                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
776                                 <filtering>false</filtering>
777                         </resource>
778                         <resource>
779                                 <directory>${project.basedir}/src/main/resources</directory>
780                                 <includes>
781                                         <include>**/*</include>
782                                 </includes>
783                                 <filtering>true</filtering>
784                         </resource>
785                         <resource>
786                                 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
787                                 <includes>
788                                         <include>janusgraph-realtime.properties</include>
789                                         <include>janusgraph-cached.properties</include>
790                                         <include>aaiconfig.properties</include>
791                                 </includes>
792                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
793                                 <filtering>false</filtering>
794                         </resource>
795                         <resource>
796                                 <directory>${project.basedir}/src/main/resources/etc/auth/</directory>
797                                 <includes>
798                                         <include>aai-client-cert.p12</include>
799                                         <include>tomcat_keystore</include>
800                                         <include>aai_policy.json</include>
801                                 </includes>
802                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
803                                 <filtering>true</filtering>
804                         </resource>
805                         <resource>
806                                 <directory>${project.basedir}/src/main/resources/</directory>
807                                 <includes>
808                                         <include>logback.xml</include>
809                                         <include>localhost-access-logback.xml</include>
810                                 </includes>
811                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig</targetPath>
812                                 <filtering>true</filtering>
813                         </resource>
814                         <resource>
815                                 <directory>${project.basedir}/src/main/resources/schema/</directory>
816                                 <includes>
817                                         <include>**/oxm/**/*.xml</include>
818                                         <include>**/dbedgerules/**/*.json</include>
819                                         <include>**/query/**</include>
820                                 </includes>
821                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
822                                 <filtering>false</filtering>
823                         </resource>
824                         <resource>
825                                 <directory>${project.basedir}/src/main/resources/query/</directory>
826                                 <includes>
827                                         <include>**/*.json</include>
828                                 </includes>
829                                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/query</targetPath>
830                                 <filtering>false</filtering>
831                         </resource>
832                         <resource>
833                                 <directory>${project.basedir}/src/main/docker</directory>
834                                 <includes>
835                                         <include>**/*</include>
836                                 </includes>
837                                 <targetPath>${aai.build.directory}</targetPath>
838                                 <filtering>true</filtering>
839                         </resource>
840                 </resources>
841                 <pluginManagement>
842                         <plugins>
843                                 <plugin>
844                                         <groupId>com.mycila</groupId>
845                                         <artifactId>license-maven-plugin</artifactId>
846                                         <version>3.0</version>
847                                         <configuration>
848                                                 <header>LICENSE.TXT</header>
849                                                 <includes>
850                                                         <include>src/main/java/**</include>
851                                                         <include>src/test/java/**</include>
852                                                         <include>pom.xml</include>
853                                                 </includes>
854                                                 <skipExistingHeaders>true</skipExistingHeaders>
855                                                 <skip>false</skip>
856                                         </configuration>
857                                 </plugin>
858                                 <plugin>
859                                         <groupId>org.codehaus.groovy.maven</groupId>
860                                         <artifactId>gmaven-plugin</artifactId>
861                                         <version>1.0</version>
862                                         <executions>
863                                                 <execution>
864                                                         <phase>validate</phase>
865                                                         <goals>
866                                                                 <goal>execute</goal>
867                                                         </goals>
868                                                         <configuration>
869                                                                 <source>
870                                                                         println project.properties['aai.project.version'];
871                                                                         def versionArray;
872                                                                         if (project.properties['aai.project.version'] != null) {
873                                                                         versionArray =
874                                                                         project.properties['aai.project.version'].split('\\.');
875                                                                         }
876
877                                                                         project.properties["project.major.version"] = versionArray[0];
878                                                                         project.properties["project.minor.version"] = versionArray[1];
879                                                                         project.properties['project.docker.latesttag.version'] =
880                                                                         versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
881                                                                         println 'New Tag for docker:' +
882                                                                         project.properties['project.docker.latesttag.version'];
883                                                                 </source>
884                                                         </configuration>
885                                                 </execution>
886                                         </executions>
887                                 </plugin>
888                         </plugins>
889                 </pluginManagement>
890                 <plugins>
891                         <plugin>
892                                 <groupId>org.jacoco</groupId>
893                                 <artifactId>jacoco-maven-plugin</artifactId>
894                                 <configuration combine.children="append">
895                                         <excludes>
896                                                 <exclude>**/*WebSecurityConfig.*</exclude>
897                                         </excludes>
898                                 </configuration>
899                         </plugin>
900                         <plugin>
901                                 <groupId>org.apache.maven.plugins</groupId>
902                                 <artifactId>maven-clean-plugin</artifactId>
903                                 <version>2.4.1</version>
904                                 <configuration>
905                                         <filesets>
906                                                 <fileset>
907                                                         <directory>${project.basedir}/src/main/resources/etc/oxm</directory>
908                                                         <includes>
909                                                                 <include>**/*</include>
910                                                         </includes>
911                                                         <followSymlinks>false</followSymlinks>
912                                                 </fileset>
913                                                 <fileset>
914                                                         <directory>${project.basedir}/src/main/resources/etc/dbedgerules</directory>
915                                                         <includes>
916                                                                 <include>**/*</include>
917                                                         </includes>
918                                                         <followSymlinks>false</followSymlinks>
919                                                 </fileset>
920                                                 <fileset>
921                                                         <directory>${project.basedir}/src/main/resources/schema</directory>
922                                                         <includes>
923                                                                 <include>**/oxm/**</include>
924                                                                 <include>**/dbedgerules/**</include>
925                                                         </includes>
926                                                         <followSymlinks>false</followSymlinks>
927                                                 </fileset>
928                                         </filesets>
929                                 </configuration>
930                         </plugin>
931                         <plugin>
932                                 <artifactId>exec-maven-plugin</artifactId>
933                                 <groupId>org.codehaus.mojo</groupId>
934                         </plugin>
935                         <plugin>
936                                 <groupId>org.apache.maven.plugins</groupId>
937                                 <artifactId>maven-javadoc-plugin</artifactId>
938                         </plugin>
939                         <plugin>
940                                 <groupId>com.mycila</groupId>
941                                 <artifactId>license-maven-plugin</artifactId>
942                         </plugin>
943
944                         <plugin>
945                           <groupId>org.apache.maven.plugins</groupId>
946                           <artifactId>maven-surefire-plugin</artifactId>
947                           <configuration>
948                             <runOrder>alphabetical</runOrder>
949                           </configuration>
950                         </plugin>
951
952                         <plugin>
953                                 <groupId>org.codehaus.groovy.maven</groupId>
954                                 <artifactId>gmaven-plugin</artifactId>
955                         </plugin>
956
957                         <plugin>
958                                 <groupId>org.antlr</groupId>
959                                 <artifactId>antlr4-maven-plugin</artifactId>
960                                 <version>4.7.2</version>
961                                 <executions>
962                                         <execution>
963                                                 <goals>
964                                                         <goal>antlr4</goal>
965                                                 </goals>
966                                                 <configuration>
967                                                         <sourceDirectory>src/main/resources/antlr4</sourceDirectory>
968                                                         <!-- <outputDirectory>src/main/java/antlr4</outputDirectory> -->
969                                                 </configuration>
970                                         </execution>
971                                 </executions>
972                         </plugin>
973                         <plugin>
974                           <groupId>org.springframework.boot</groupId>
975                                 <artifactId>spring-boot-maven-plugin</artifactId>
976                                 <configuration>
977                                         <mainClass>${start-class}</mainClass>
978                                         <layout>ZIP</layout>
979                                 </configuration>
980                                 <executions>
981                                         <execution>
982                                                 <goals>
983                                                         <goal>repackage</goal>
984                                                 </goals>
985                                         </execution>
986                                 </executions>
987                         </plugin>
988             <plugin>
989               <artifactId>maven-resources-plugin</artifactId>
990               <version>3.0.0</version>
991               <executions>
992                 <execution>
993                   <id>copy-fat-jar</id>
994                   <phase>post-integration-test</phase>
995                   <goals>
996                     <goal>copy-resources</goal>
997                   </goals>
998                   <configuration>
999                       <outputDirectory>${aai.build.directory}/lib/</outputDirectory>
1000                       <resources>
1001                           <resource>
1002                               <directory>${project.build.directory}/</directory>
1003                               <includes>
1004                                   <include>${project.artifactId}-${project.version}.jar</include>
1005                               </includes>
1006                               <filtering>false</filtering>
1007                           </resource>
1008                       </resources>
1009                   </configuration>
1010                 </execution>
1011               </executions>
1012             </plugin>
1013
1014                         <plugin>
1015                                 <artifactId>maven-assembly-plugin</artifactId>
1016                                 <configuration>
1017                                         <descriptors>
1018                                                 <descriptor>src/main/assembly/descriptor.xml</descriptor>
1019                                         </descriptors>
1020                                 </configuration>
1021                                 <executions>
1022                                         <execution>
1023                                                 <id>make-assembly</id> <!-- this is used for inheritance merges -->
1024                                                 <phase>package</phase> <!-- bind to the packaging phase -->
1025                                                 <goals>
1026                                                         <goal>single</goal>
1027                                                 </goals>
1028                                         </execution>
1029                                 </executions>
1030                         </plugin>
1031                         <plugin>
1032                                 <groupId>org.apache.maven.plugins</groupId>
1033                                 <artifactId>maven-dependency-plugin</artifactId>
1034                                 <version>2.8</version>
1035                                 <executions>
1036                                         <execution>
1037                                                 <id>unpack-schema-dependency</id>
1038                                                 <phase>initialize</phase>
1039                                                 <goals>
1040                                                         <goal>unpack</goal>
1041                                                 </goals>
1042                                                 <configuration>
1043                                                         <artifactItems>
1044                                                                 <artifactItem>
1045                                                                         <groupId>org.onap.aai.schema-service</groupId>
1046                                                                         <artifactId>aai-schema</artifactId>
1047                                                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1048                                                                         <includes>**/oxm/**/*.xml</includes>
1049                                                                         <version>${aai.schema.service.version}</version>
1050                                                                 </artifactItem>
1051                                                         </artifactItems>
1052                                                         <!-- other configurations here -->
1053                                                 </configuration>
1054                                         </execution>
1055                                         <execution>
1056                                                 <id>unpack-edgerules-dependency</id>
1057                                                 <phase>initialize</phase>
1058                                                 <goals>
1059                                                         <goal>unpack</goal>
1060                                                 </goals>
1061                                                 <configuration>
1062                                                         <artifactItems>
1063                                                                 <artifactItem>
1064                                                                         <groupId>org.onap.aai.schema-service</groupId>
1065                                                                         <artifactId>aai-schema</artifactId>
1066                                                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
1067                                                                         <includes>**/dbedgerules/**/*.json</includes>
1068                                                                         <version>${aai.schema.service.version}</version>
1069                                                                 </artifactItem>
1070                                                         </artifactItems>
1071                                                         <!-- other configurations here -->
1072                                                 </configuration>
1073                                         </execution>
1074                                 </executions>
1075                         </plugin>
1076                         <plugin>
1077                                 <groupId>com.mycila</groupId>
1078                                 <artifactId>license-maven-plugin</artifactId>
1079                                 <version>3.0</version>
1080                                 <configuration>
1081                                         <header>LICENSE.TXT</header>
1082                                         <includes>
1083                                                 <include>src/main/java/**</include>
1084                                                 <include>src/test/java/**</include>
1085                                                 <include>pom.xml</include>
1086                                         </includes>
1087                                         <skipExistingHeaders>false</skipExistingHeaders>
1088                                         <skip>false</skip>
1089                                 </configuration>
1090                         </plugin>
1091                         <plugin>
1092                                 <groupId>org.apache.maven.plugins</groupId>
1093                                 <artifactId>maven-failsafe-plugin</artifactId>
1094                                 <version>3.0.0-M4</version>
1095                                 <configuration>
1096                                         <classesDirectory>${project.build.outputDirectory}</classesDirectory>
1097                                 </configuration>
1098                         </plugin>
1099                 </plugins>
1100         </build>
1101 </project>