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