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