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