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