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