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