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