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