Set parent to 1.6.3
[aai/graphadmin.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4     ============LICENSE_START=======================================================
5     org.onap.aai
6     ================================================================================
7     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.aai.aai-common</groupId>
28         <artifactId>aai-parent</artifactId>
29         <version>1.6.3</version>
30     </parent>
31     <groupId>org.onap.aai.graphadmin</groupId>
32     <artifactId>aai-graphadmin</artifactId>
33     <version>1.6.3-SNAPSHOT</version>
34
35     <properties>
36
37         <!-- Start of Compiler Related Properties -->
38         <java.version>1.8</java.version>
39         <maven.compiler.source>1.8</maven.compiler.source>
40         <maven.compiler.target>1.8</maven.compiler.target>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <!-- End of Compiler Related Properties -->
43
44         <!-- Start of Test Related Properties -->
45         <skip.unit.tests>false</skip.unit.tests>
46         <skip.integration.tests>true</skip.integration.tests>
47         <!-- End of Test Related Properties -->
48
49         <!-- Start of Sonar Related Properties -->
50         <sonar.language>java</sonar.language>
51         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
54         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
55         <sonar.projectVersion>${project.version}</sonar.projectVersion>
56         <!-- End of Sonar Related Properties -->
57
58         <!-- Start of Docker Related Properties -->
59         <docker.fabric.version>0.28.0</docker.fabric.version>
60         <!-- Default docker registry that maven fabric plugin will try to pull from -->
61         <docker.registry>docker.io</docker.registry>
62         <!-- Specifying the docker push registry where the image should be pushed -->
63         <!-- This value should be overwritten at runtime to wherever need to be pushed to -->
64         <docker.push.registry>localhost:5000</docker.push.registry>
65         <aai.docker.version>1.0.0</aai.docker.version>
66         <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
67         </aai.build.directory>
68         <aai.docker.namespace>onap</aai.docker.namespace>
69         <!-- base image for aai-common -->
70         <aai.base.image>alpine</aai.base.image>
71         <!-- aai-common image version -->
72         <aai.base.image.version>1.6.0</aai.base.image.version>
73         <!-- End of Docker Related Properties -->
74
75         <license.goal.type>check</license.goal.type>
76
77         <!--
78             Nexus Proxy Properties and Snapshot Locations
79             Ideally this can be overwritten at runtime per internal environment specific values at runtime
80         -->
81         <nexusproxy>https://nexus.onap.org</nexusproxy>
82         <site.path>/content/sites/site/org/onap/aai/graphadmin/${project.artifactId}/${project.version}</site.path>
83         <release.path>/content/repositories/releases/</release.path>
84         <snapshot.path>/content/repositories/snapshots/</snapshot.path>
85         <!-- GMaven plugin uses this property to figure out the name of the docker tag -->
86         <aai.project.version>${project.version}</aai.project.version>
87
88         <!-- Start of Database Related Properties -->
89         <!-- End of Database Related Properties -->
90
91         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
92         <start-class>org.onap.aai.GraphAdminApp</start-class>
93
94         <snapshot.file>${project.basedir}/snapshots/int1-data.graphson</snapshot.file>
95         <jacoco.line.coverage.limit>0.46</jacoco.line.coverage.limit>
96
97         <!-- Start of Default ONAP Schema Properties -->
98         <schema.source.name>onap</schema.source.name>
99         <schema.configuration.location>N/A</schema.configuration.location>
100         <schema.nodes.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/oxm</schema.nodes.location>
101         <schema.edges.location>${project.basedir}/src/main/resources/schema/${schema.source.name}/dbedgerules</schema.edges.location>
102         <schema.version.depth.start>v10</schema.version.depth.start>
103         <schema.version.related.link.start>v10</schema.version.related.link.start>
104         <schema.version.app.root.start>v11</schema.version.app.root.start>
105         <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
106         <schema.version.edge.label.start>v12</schema.version.edge.label.start>
107         <schema.version.api.default>v16</schema.version.api.default>
108         <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
109         <schema.uri.base.path>/aai</schema.uri.base.path>
110         <!-- End of Default ONAP Schema Properties -->
111     </properties>
112
113     <profiles>
114         <!-- Used during verify stage in Jenkins -->
115         <profile>
116             <id>all-tests</id>
117             <properties>
118                 <build.profile.id>all-tests</build.profile.id>
119
120                 <!-- All tests are run. -->
121                 <skip.integration.tests>false</skip.integration.tests>
122                 <skip.unit.tests>false</skip.unit.tests>
123             </properties>
124         </profile>
125         <profile>
126             <id>skipTests</id>
127             <activation>
128                 <property>
129                     <name>skipTests</name>
130                 </property>
131             </activation>
132             <properties>
133                 <!-- All tests are skipped. -->
134                 <skip.integration.tests>true</skip.integration.tests>
135                 <skip.unit.tests>true</skip.unit.tests>
136             </properties>
137         </profile>
138         <profile>
139             <id>dev</id>
140         </profile>
141         <profile>
142             <id>integration-test</id>
143             <properties>
144                 <!-- Only integration tests are run. -->
145                 <build.profile.id>integration-test</build.profile.id>
146                 <skip.integration.tests>false</skip.integration.tests>
147                 <skip.unit.tests>true</skip.unit.tests>
148             </properties>
149         </profile>
150         <!-- Start of ONAP Profile -->
151         <profile>
152             <id>onap</id>
153             <properties>
154                 <schema.source.name>onap</schema.source.name>
155                 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
156                 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
157             </properties>
158         </profile>
159         <!-- End of ONAP Profile -->
160         <profile>
161             <id>runAjsc</id>
162             <properties>
163                 <skipTests>${skip.unit.tests}</skipTests>
164             </properties>
165             <build>
166                 <defaultGoal>pre-integration-test</defaultGoal>
167                 <plugins>
168                     <plugin>
169                         <groupId>org.codehaus.mojo</groupId>
170                         <artifactId>exec-maven-plugin</artifactId>
171                         <version>1.6.0</version>
172                         <executions>
173                             <execution>
174                                 <id>run-spring-boot</id>
175                                 <phase>package</phase>
176                                 <goals>
177                                     <goal>java</goal>
178                                 </goals>
179                             </execution>
180                         </executions>
181                         <configuration>
182                             <mainClass>${start-class}</mainClass>
183                             <systemProperties>
184                                 <property>
185                                     <key>snapshot.location</key>
186                                     <value>${snapshot.file}</value>
187                                 </property>
188                                 <property>
189                                     <key>schema.source.name</key>
190                                     <value>${schema.source.name}</value>
191                                 </property>
192                                 <property>
193                                     <key>schema.configuration.location</key>
194                                     <value>${schema.configuration.location}</value>
195                                 </property>
196                                 <property>
197                                     <key>schema.nodes.location</key>
198                                     <value>${schema.nodes.location}</value>
199                                 </property>
200                                 <property>
201                                     <key>schema.edges.location</key>
202                                     <value>${schema.edges.location}</value>
203                                 </property>
204                                 <property>
205                                     <key>schema.version.depth.start</key>
206                                     <value>${schema.version.depth.start}</value>
207                                 </property>
208                                 <property>
209                                     <key>schema.version.related.link.start</key>
210                                     <value>${schema.version.related.link.start}</value>
211                                 </property>
212                                 <property>
213                                     <key>schema.version.app.root.start</key>
214                                     <value>${schema.version.app.root.start}</value>
215                                 </property>
216                                 <property>
217                                     <key>schema.version.namespace.change.start</key>
218                                     <value>${schema.version.namespace.change.start}</value>
219                                 </property>
220                                 <property>
221                                     <key>schema.version.edge.label.start</key>
222                                     <value>${schema.version.edge.label.start}</value>
223                                 </property>
224                                 <property>
225                                     <key>schema.version.api.default</key>
226                                     <value>${schema.version.api.default}</value>
227                                 </property>
228                                 <property>
229                                     <key>schema.version.list</key>
230                                     <value>${schema.version.list}</value>
231                                 </property>
232                                 <property>
233                                     <key>schema.uri.base.path</key>
234                                     <value>${schema.uri.base.path}</value>
235                                 </property>
236                             </systemProperties>
237                             <executable>java</executable>
238                         </configuration>
239                     </plugin>
240                 </plugins>
241             </build>
242         </profile>
243         <!-- Docker profile to be used for building docker image and pushing to nexus -->
244         <profile>
245             <id>docker</id>
246             <build>
247                 <plugins>
248                     <plugin>
249                         <groupId>org.codehaus.groovy.maven</groupId>
250                         <artifactId>gmaven-plugin</artifactId>
251                         <version>1.0</version>
252                         <executions>
253                             <execution>
254                                 <phase>pre-clean</phase>
255                             </execution>
256                             <execution>
257                                 <id>parse-base</id>
258                                 <phase>prepare-package</phase>
259                                 <goals>
260                                     <goal>execute</goal>
261                                 </goals>
262                                 <configuration>
263                                     <source>
264                                         def userAaiBaseImage = session.userProperties['aai.base.image'];
265                                         def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
266                                         if (userAaiCommonVersion != null) {
267                                             project.properties['aai.base.image.version'] = userAaiCommonVersion;
268                                         }
269                                         if (userAaiBaseImage != null) {
270                                             project.properties['aai.base.image'] = userAaiBaseImage;
271                                         }
272                                         log.info 'Base image flavour: ' + project.properties['aai.base.image'];
273                                         log.info 'Base image version: ' + project.properties['aai.base.image.version'];
274                                     </source>
275                                 </configuration>
276                             </execution>
277                         </executions>
278                     </plugin>
279                     <plugin>
280                         <groupId>io.fabric8</groupId>
281                         <artifactId>docker-maven-plugin</artifactId>
282                         <version>${docker.fabric.version}</version>
283                         <configuration>
284                             <verbose>true</verbose>
285                             <apiVersion>1.23</apiVersion>
286                             <images>
287                                 <image>
288                                     <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
289                                     <build>
290                                         <filter>@</filter>
291                                         <tags>
292                                             <tag>latest</tag>
293                                             <tag>${project.docker.latesttag.version}</tag>
294                                             <tag>${project.major.version}.${project.minor.version}-STAGING-${maven.build.timestamp}</tag>
295                                         </tags>
296                                         <cleanup>try</cleanup>
297                                         <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
298                                         <assembly>
299                                             <inline>
300                                                 <fileSets>
301                                                     <fileSet>
302                                                         <directory>${aai.build.directory}</directory>
303                                                         <outputDirectory>/${project.artifactId}</outputDirectory>
304                                                     </fileSet>
305                                                 </fileSets>
306                                             </inline>
307                                         </assembly>
308                                     </build>
309                                 </image>
310                             </images>
311                         </configuration>
312                         <executions>
313                             <execution>
314                                 <id>clean-images</id>
315                                 <phase>pre-clean</phase>
316                                 <goals>
317                                     <goal>remove</goal>
318                                 </goals>
319                                 <configuration>
320                                     <removeAll>true</removeAll>
321                                 </configuration>
322                             </execution>
323                             <execution>
324                                 <id>generate-images</id>
325                                 <phase>package</phase>
326                                 <goals>
327                                     <goal>build</goal>
328                                 </goals>
329                             </execution>
330                             <execution>
331                                 <id>push-images</id>
332                                 <phase>deploy</phase>
333                                 <goals>
334                                     <goal>push</goal>
335                                 </goals>
336                             </execution>
337                         </executions>
338                     </plugin>
339                 </plugins>
340             </build>
341         </profile>
342     </profiles>
343
344     <dependencyManagement>
345         <dependencies>
346             <dependency>
347                 <groupId>org.springframework.boot</groupId>
348                 <artifactId>spring-boot-starter-parent</artifactId>
349                 <version>${spring.boot.version}</version>
350                 <scope>import</scope>
351                 <type>pom</type>
352             </dependency>
353         </dependencies>
354     </dependencyManagement>
355
356     <dependencies>
357         <!-- Start of Logback Dependencies -->
358         <dependency>
359             <groupId>com.att.eelf</groupId>
360             <artifactId>eelf-core</artifactId>
361         </dependency>
362         <dependency>
363             <groupId>ch.qos.logback</groupId>
364             <artifactId>logback-core</artifactId>
365         </dependency>
366         <dependency>
367             <groupId>ch.qos.logback</groupId>
368             <artifactId>logback-classic</artifactId>
369         </dependency>
370         <dependency>
371             <groupId>ch.qos.logback</groupId>
372             <artifactId>logback-access</artifactId>
373         </dependency>
374         <!-- End of Logback Dependencies -->
375         <dependency>
376             <groupId>com.google.guava</groupId>
377             <artifactId>guava</artifactId>
378         </dependency>
379         <!-- Start of Janus Graph Dependencies -->
380         <dependency>
381             <groupId>org.janusgraph</groupId>
382             <artifactId>janusgraph-core</artifactId>
383             <exclusions>
384                 <exclusion>
385                     <groupId>org.slf4j</groupId>
386                     <artifactId>slf4j-log4j12</artifactId>
387                 </exclusion>
388                 <exclusion>
389                     <groupId>dom4j</groupId>
390                     <artifactId>dom4j</artifactId>
391                 </exclusion>
392             </exclusions>
393         </dependency>
394         <dependency>
395             <groupId>org.janusgraph</groupId>
396             <artifactId>janusgraph-cassandra</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         <!--
409             indirect janusgraph-cassandra dependency
410             need to be newer than default one
411             in order to support multiple cpu archs
412         -->
413         <dependency>
414             <groupId>com.github.jnr</groupId>
415             <artifactId>jnr-ffi</artifactId>
416         </dependency>
417         <dependency>
418             <groupId>org.janusgraph</groupId>
419             <artifactId>janusgraph-cql</artifactId>
420             <exclusions>
421                 <exclusion>
422                     <groupId>org.slf4j</groupId>
423                     <artifactId>slf4j-log4j12</artifactId>
424                 </exclusion>
425             </exclusions>
426         </dependency>
427         <!-- End of Janus Graph Dependencies -->
428         <!-- Start of Tinkerpop Dependencies -->
429         <dependency>
430             <groupId>org.apache.tinkerpop</groupId>
431             <artifactId>tinkergraph-gremlin</artifactId>
432         </dependency>
433
434         <dependency>
435             <groupId>org.antlr</groupId>
436             <artifactId>antlr4-runtime</artifactId>
437         </dependency>
438         <dependency>
439             <groupId>org.apache.tinkerpop</groupId>
440             <artifactId>gremlin-core</artifactId>
441         </dependency>
442         <dependency>
443             <groupId>org.apache.tinkerpop</groupId>
444             <artifactId>gremlin-driver</artifactId>
445             <exclusions>
446                 <exclusion>
447                     <groupId>org.codehaus.groovy</groupId>
448                     <artifactId>groovy</artifactId>
449                 </exclusion>
450             </exclusions>
451         </dependency>
452         <!-- End of Tinkerpop Dependencies -->
453         <dependency>
454             <groupId>com.fasterxml.jackson.jaxrs</groupId>
455             <artifactId>jackson-jaxrs-json-provider</artifactId>
456         </dependency>
457         <dependency>
458             <groupId>org.json</groupId>
459             <artifactId>json</artifactId>
460         </dependency>
461         <!-- Start of JAXB Dependencies -->
462         <dependency>
463             <groupId>javax.xml.bind</groupId>
464             <artifactId>jaxb-api</artifactId>
465         </dependency>
466         <!-- End of JAXB Dependencies -->
467         <dependency>
468             <groupId>org.eclipse.persistence</groupId>
469             <artifactId>eclipselink</artifactId>
470         </dependency>
471         <dependency>
472             <groupId>org.eclipse.persistence</groupId>
473             <artifactId>org.eclipse.persistence.moxy</artifactId>
474             <scope>compile</scope>
475         </dependency>
476         <dependency>
477             <groupId>com.google.code.gson</groupId>
478             <artifactId>gson</artifactId>
479         </dependency>
480         <!--
481             Do not use activemq-all because they force you to use a specific logging
482             and they shade it so you can't simply exclude it and when you deploy the
483             jar, you will notice failure
484         -->
485         <dependency>
486             <groupId>org.apache.activemq</groupId>
487             <artifactId>activemq-broker</artifactId>
488         </dependency>
489         <dependency>
490             <groupId>org.apache.activemq</groupId>
491             <artifactId>activemq-client</artifactId>
492         </dependency>
493         <dependency>
494             <groupId>org.onap.aai.aai-common</groupId>
495             <artifactId>aai-core</artifactId>
496             <exclusions>
497                 <exclusion>
498                     <groupId>com.sun.jersey</groupId>
499                     <artifactId>jersey-core</artifactId>
500                 </exclusion>
501                 <exclusion>
502                     <groupId>org.slf4j</groupId>
503                     <artifactId>slf4j-log4j12</artifactId>
504                 </exclusion>
505                 <exclusion>
506                     <groupId>org.apache.cxf</groupId>
507                     <artifactId>cxf-core</artifactId>
508                 </exclusion>
509                 <exclusion>
510                     <groupId>org.eclipse.jetty</groupId>
511                     <artifactId>jetty-http</artifactId>
512                 </exclusion>
513                 <exclusion>
514                     <groupId>org.eclipse.jetty</groupId>
515                     <artifactId>jetty-server</artifactId>
516                 </exclusion>
517                 <exclusion>
518                     <groupId>org.springframework</groupId>
519                     <artifactId>spring-web</artifactId>
520                 </exclusion>
521                 <exclusion>
522                     <groupId>org.codehaus.jackson</groupId>
523                     <artifactId>jackson-mapper-asl</artifactId>
524                 </exclusion>
525             </exclusions>
526         </dependency>
527         <dependency>
528             <groupId>com.sun.jersey</groupId>
529             <artifactId>jersey-client</artifactId>
530         </dependency>
531         <dependency>
532             <groupId>com.sun.jersey</groupId>
533             <artifactId>jersey-json</artifactId>
534             <exclusions>
535                 <exclusion>
536                     <groupId>org.codehaus.jackson</groupId>
537                     <artifactId>jackson-mapper-asl</artifactId>
538                 </exclusion>
539             </exclusions>
540         </dependency>
541         <!-- Do not use the jersey-client since jersey client 1.0 version clashes
542             with jersey 2 which we are using -->
543         <!-- Use this to make http requests instead of jersey 1.0 client -->
544         <dependency>
545             <groupId>org.apache.httpcomponents</groupId>
546             <artifactId>httpclient</artifactId>
547         </dependency>
548         <!-- Start of Spring Framework Dependencies -->
549         <!--
550             Explicitly stating the security spring framework and
551             exclude the bouncy castle since that is somehow overwriting
552             our p12 file decryption that's built into java security
553             This will cause the password is incorrect
554             This needs to be added back if org.bouncy castle dependency
555             sneaks backs in and causing issues with the two way ssl
556         -->
557         <dependency>
558             <groupId>org.springframework.security</groupId>
559             <artifactId>spring-security-rsa</artifactId>
560             <exclusions>
561                 <exclusion>
562                     <groupId>org.bouncycastle</groupId>
563                     <artifactId>bcpkix-jdk15on</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         <dependency>
578             <groupId>org.springframework.boot</groupId>
579             <artifactId>spring-boot-starter-web</artifactId>
580             <exclusions>
581                 <exclusion>
582                     <groupId>org.springframework.boot</groupId>
583                     <artifactId>spring-boot-starter-tomcat</artifactId>
584                 </exclusion>
585             </exclusions>
586         </dependency>
587         <dependency>
588             <groupId>org.springframework.boot</groupId>
589             <artifactId>spring-boot-starter-jetty</artifactId>
590         </dependency>
591         <dependency>
592             <groupId>org.springframework.boot</groupId>
593             <artifactId>spring-boot-starter-test</artifactId>
594         </dependency>
595         <dependency>
596             <groupId>org.springframework.boot</groupId>
597             <artifactId>spring-boot-starter-jersey</artifactId>
598             <exclusions>
599                 <exclusion>
600                     <groupId>org.springframework.boot</groupId>
601                     <artifactId>spring-boot-starter-tomcat</artifactId>
602                 </exclusion>
603             </exclusions>
604         </dependency>
605         <dependency>
606             <groupId>org.springframework</groupId>
607             <artifactId>spring-test</artifactId>
608             <scope>test</scope>
609         </dependency>
610         <!-- End of Spring Framework Dependencies -->
611         <!-- Start of Netty Dependencies -->
612         <dependency>
613             <groupId>io.netty</groupId>
614             <artifactId>netty-all</artifactId>
615         </dependency>
616         <dependency>
617             <groupId>io.netty</groupId>
618             <artifactId>netty-handler</artifactId>
619         </dependency>
620         <!-- End of Netty Dependencies -->
621         <!-- Start of Antlr dependencies for DSL -->
622         <dependency>
623             <groupId>org.antlr</groupId>
624             <artifactId>antlr4-runtime</artifactId>
625         </dependency>
626         <dependency>
627             <groupId>org.antlr</groupId>
628             <artifactId>antlr4-maven-plugin</artifactId>
629             <exclusions>
630                 <exclusion>
631                     <groupId>org.sonatype.sisu</groupId>
632                     <artifactId>sisu-guava</artifactId>
633                 </exclusion>
634             </exclusions>
635         </dependency>
636         <!-- End of Antlr dependencies for DSL -->
637         <!-- Start of Plexus dependencies for DSL -->
638         <dependency>
639             <groupId>org.codehaus.plexus</groupId>
640             <artifactId>plexus-utils</artifactId>
641         </dependency>
642         <!-- End of Plexus dependencies for DSL -->
643         <!-- Start of Junit Test Dependencies -->
644         <dependency>
645             <groupId>org.hamcrest</groupId>
646             <artifactId>hamcrest-junit</artifactId>
647             <scope>test</scope>
648         </dependency>
649         <dependency>
650             <groupId>junit</groupId>
651             <artifactId>junit</artifactId>
652             <scope>test</scope>
653         </dependency>
654         <dependency>
655             <groupId>org.mockito</groupId>
656             <artifactId>mockito-all</artifactId>
657             <scope>test</scope>
658         </dependency>
659         <dependency>
660             <groupId>org.skyscreamer</groupId>
661             <artifactId>jsonassert</artifactId>
662             <scope>test</scope>
663         </dependency>
664         <!-- End of Junit Test Dependencies -->
665     </dependencies>
666
667     <build>
668         <pluginManagement>
669             <plugins>
670                 <!--This plugin's configuration is used to store Eclipse m2e settings
671                     only. It has no influence on the Maven build itself. -->
672                 <plugin>
673                     <groupId>org.eclipse.m2e</groupId>
674                     <artifactId>lifecycle-mapping</artifactId>
675                     <version>1.0.0</version>
676                     <configuration>
677                         <lifecycleMappingMetadata>
678                             <pluginExecutions>
679                                 <pluginExecution>
680                                     <pluginExecutionFilter>
681                                         <groupId>com.github.kongchen</groupId>
682                                         <artifactId>swagger-maven-plugin</artifactId>
683                                         <versionRange>3.1.3</versionRange>
684                                         <goals>
685                                             <goal>generate</goal>
686                                         </goals>
687                                     </pluginExecutionFilter>
688                                     <action>
689                                         <ignore/>
690                                     </action>
691                                 </pluginExecution>
692                             </pluginExecutions>
693                         </lifecycleMappingMetadata>
694                     </configuration>
695                 </plugin>
696                 <plugin>
697                     <groupId>org.apache.maven.plugins</groupId>
698                     <artifactId>maven-dependency-plugin</artifactId>
699                     <version>2.8</version>
700                     <executions>
701                         <execution>
702                             <id>unpack-schema-dependency</id>
703                             <phase>initialize</phase>
704                             <goals>
705                                 <goal>unpack</goal>
706                             </goals>
707                             <configuration>
708                                 <artifactItems>
709                                     <artifactItem>
710                                         <groupId>org.onap.aai.schema-service</groupId>
711                                         <artifactId>aai-schema</artifactId>
712                                         <version>${aai.schema.version}</version>
713                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
714                                         <includes>**/oxm/**/*.xml</includes>
715                                     </artifactItem>
716                                 </artifactItems>
717                                 <!-- other configurations here -->
718                             </configuration>
719                         </execution>
720                         <execution>
721                             <id>unpack-edgerules-dependency</id>
722                             <phase>initialize</phase>
723                             <goals>
724                                 <goal>unpack</goal>
725                             </goals>
726                             <configuration>
727                                 <artifactItems>
728                                     <artifactItem>
729                                         <groupId>org.onap.aai.schema-service</groupId>
730                                         <artifactId>aai-schema</artifactId>
731                                         <version>${aai.schema.version}</version>
732                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
733                                         <includes>**/dbedgerules/**/*.json</includes>
734                                     </artifactItem>
735                                 </artifactItems>
736                                 <!-- other configurations here -->
737                             </configuration>
738                         </execution>
739                     </executions>
740                 </plugin>
741                 <plugin>
742                     <groupId>org.codehaus.groovy.maven</groupId>
743                     <artifactId>gmaven-plugin</artifactId>
744                     <version>1.0</version>
745                     <executions>
746                         <execution>
747                             <phase>validate</phase>
748                             <goals>
749                                 <goal>execute</goal>
750                             </goals>
751                             <configuration>
752                                 <source>
753                                     println project.properties['aai.project.version'];
754                                     def versionArray;
755                                     if (project.properties['aai.project.version'] != null) {
756                                         versionArray = project.properties['aai.project.version'].split('\\.');
757                                     }
758
759                                     project.properties["project.major.version"] = versionArray[0];
760                                     project.properties["project.minor.version"] = versionArray[1];
761                                     project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
762                                     println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
763                                 </source>
764                             </configuration>
765                         </execution>
766                     </executions>
767                 </plugin>
768                 <plugin>
769                     <groupId>org.apache.maven.plugins</groupId>
770                     <artifactId>maven-deploy-plugin</artifactId>
771                 </plugin>
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                     <executions>
787                         <execution>
788                             <goals>
789                                 <!-- Set goal to "format" to auto update license headers -->
790                                 <goal>${license.goal.type}</goal>
791                             </goals>
792                             <phase>process-sources</phase>
793                         </execution>
794                     </executions>
795                 </plugin>
796             </plugins>
797         </pluginManagement>
798         <plugins>
799             <!--
800             Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
801             Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
802             Use in combination to rewrite code and imports, then checkstyle
803
804             mvn formatter:format spotless:apply process-sources
805             -->
806             <plugin>
807                  <groupId>net.revelc.code.formatter</groupId>
808                  <artifactId>formatter-maven-plugin</artifactId>
809                  <version>2.8.1</version>
810                  <configuration>
811                     <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
812                  </configuration>
813                  <!-- https://code.revelc.net/formatter-maven-plugin/
814                       use mvn formatter:format to rewrite source files
815                       use mvn formatter:validate to validate source files -->
816              </plugin>
817             <plugin>
818               <groupId>com.diffplug.spotless</groupId>
819               <artifactId>spotless-maven-plugin</artifactId>
820               <version>1.18.0</version>
821               <configuration>
822                 <java>
823                  <importOrder>
824                    <order>com,java,javax,org</order>
825                  </importOrder>
826                 </java>
827               </configuration>
828             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
829                  use mvn spotless:apply to rewrite source files
830                  use mvn spotless:check to validate source files -->
831             </plugin>
832             <plugin>
833                 <groupId>org.apache.maven.plugins</groupId>
834                 <artifactId>maven-site-plugin</artifactId>
835                 <version>3.6</version>
836                 <configuration>
837                     <reportPlugins>
838                         <plugin>
839                             <groupId>org.apache.maven.plugins</groupId>
840                             <artifactId>maven-project-info-reports-plugin</artifactId>
841                             <version>2.4</version>
842                             <configuration>
843                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
844                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
845                             </configuration>
846                             <reports>
847                                 <report>dependencies</report>
848                             </reports>
849                         </plugin>
850                         <plugin>
851                             <groupId>org.apache.maven.plugins</groupId>
852                             <artifactId>maven-javadoc-plugin</artifactId>
853                             <version>2.8</version>
854                             <configuration>
855                                 <additionalparam>-Xdoclint:none</additionalparam>
856                             </configuration>
857                         </plugin>
858                     </reportPlugins>
859                 </configuration>
860                 <dependencies>
861                     <dependency>
862                         <groupId>org.apache.maven.wagon</groupId>
863                         <artifactId>wagon-webdav-jackrabbit</artifactId>
864                         <version>2.10</version>
865                     </dependency>
866                 </dependencies>
867             </plugin>
868             <plugin>
869                 <groupId>org.codehaus.mojo</groupId>
870                 <artifactId>sonar-maven-plugin</artifactId>
871                 <version>3.3</version>
872             </plugin>
873             <plugin>
874                 <groupId>org.codehaus.groovy.maven</groupId>
875                 <artifactId>gmaven-plugin</artifactId>
876             </plugin>
877             <plugin>
878                 <groupId>com.mycila</groupId>
879                 <artifactId>license-maven-plugin</artifactId>
880             </plugin>
881             <plugin>
882                 <groupId>org.apache.maven.plugins</groupId>
883                 <artifactId>maven-clean-plugin</artifactId>
884                 <version>2.4.1</version>
885                 <configuration>
886                     <filesets>
887                         <fileset>
888                             <directory>${project.basedir}/src/main/resources/etc/oxm</directory>
889                             <includes>
890                                 <include>**/*</include>
891                             </includes>
892                             <followSymlinks>false</followSymlinks>
893                         </fileset>
894                         <fileset>
895                             <directory>${project.basedir}/src/main/resources/etc/dbedgerules</directory>
896                             <includes>
897                                 <include>**/*</include>
898                             </includes>
899                             <followSymlinks>false</followSymlinks>
900                         </fileset>
901                         <fileset>
902                             <directory>${project.basedir}/src/main/resources/schema</directory>
903                             <includes>
904                                 <include>**/*</include>
905                             </includes>
906                             <followSymlinks>false</followSymlinks>
907                         </fileset>
908                     </filesets>
909                 </configuration>
910             </plugin>
911             <plugin>
912                 <artifactId>maven-dependency-plugin</artifactId>
913             </plugin>
914             <plugin>
915                 <groupId>org.jacoco</groupId>
916                 <artifactId>jacoco-maven-plugin</artifactId>
917                 <version>0.7.9</version>
918                 <configuration>
919                     <dumpOnExit>true</dumpOnExit>
920                 </configuration>
921                 <executions>
922                     <execution>
923                         <id>jacoco-initialize-unit-tests</id>
924                         <goals>
925                             <goal>prepare-agent</goal>
926                         </goals>
927                         <configuration>
928                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
929                             <!-- <append>true</append> -->
930                         </configuration>
931                     </execution>
932                     <execution>
933                         <id>post-unit-test</id>
934                         <phase>test</phase>
935                         <goals>
936                             <goal>report</goal>
937                         </goals>
938                         <configuration>
939                             <!-- Sets the path to the file which contains the execution data. -->
940                             <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
941                             <!-- Sets the output directory for the code coverage report. -->
942                             <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory>
943                         </configuration>
944                     </execution>
945                     <execution>
946                         <id>default-check</id>
947                         <goals>
948                             <goal>check</goal>
949                         </goals>
950                         <configuration>
951                             <dataFile>${project.build.directory}/coverage-reports/jacoco.exec</dataFile>
952                             <rules>
953                                 <!--  implementation is needed only for Maven 2  -->
954                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
955                                     <element>BUNDLE</element>
956                                     <limits>
957                                         <limit implementation="org.jacoco.report.check.Limit">
958                                             <counter>LINE</counter>
959                                             <value>COVEREDRATIO</value>
960                                             <minimum>${jacoco.line.coverage.limit}</minimum>
961                                         </limit>
962                                     </limits>
963                                 </rule>
964                             </rules>
965                         </configuration>
966                     </execution>
967                 </executions>
968             </plugin>
969             <!-- Used for unit tests -->
970             <plugin>
971                 <groupId>org.apache.maven.plugins</groupId>
972                 <artifactId>maven-surefire-plugin</artifactId>
973                 <version>2.12.4</version>
974                 <configuration>
975                     <argLine>-noverify ${argLine}</argLine>
976                     <runOrder>alphabetical</runOrder>
977                 </configuration>
978             </plugin>
979             <plugin>
980                 <groupId>org.springframework.boot</groupId>
981                 <artifactId>spring-boot-maven-plugin</artifactId>
982                 <!--
983                   Issue with the spring 1.5.15.RELEASE plugin is causing build errors
984                   due to the fact that the plugin 1.5.15.RELEASE was built using maven 3.5 while
985                   the current build version being used by our jenkins is 3.3.9
986                 -->
987                 <version>1.5.21.RELEASE</version>
988                 <configuration>
989                     <mainClass>${start-class}</mainClass>
990                     <layout>ZIP</layout>
991                 </configuration>
992                 <executions>
993                     <execution>
994                         <goals>
995                             <goal>repackage</goal>
996                         </goals>
997                     </execution>
998                 </executions>
999             </plugin>
1000             <plugin>
1001                 <artifactId>maven-assembly-plugin</artifactId>
1002                 <configuration>
1003                     <descriptors>
1004                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
1005                     </descriptors>
1006                 </configuration>
1007                 <executions>
1008                     <execution>
1009                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
1010                         <phase>package</phase> <!-- bind to the packaging phase -->
1011                         <goals>
1012                             <goal>single</goal>
1013                         </goals>
1014                     </execution>
1015                 </executions>
1016             </plugin>
1017             <plugin>
1018                 <groupId>org.antlr</groupId>
1019                 <artifactId>antlr4-maven-plugin</artifactId>
1020                 <version>4.7</version>
1021                 <executions>
1022                     <execution>
1023                         <goals>
1024                             <goal>antlr4</goal>
1025                         </goals>
1026                         <configuration>
1027                             <sourceDirectory>src/main/resources/antlr4</sourceDirectory>
1028                             <!-- <outputDirectory>src/main/java/antlr4</outputDirectory> -->
1029                         </configuration>
1030                     </execution>
1031                 </executions>
1032             </plugin>
1033         </plugins>
1034         <!-- mention the logback.xml location through system property or environment
1035             variable to edit logback.xml at run time -->
1036         <resources>
1037             <resource>
1038                 <directory>src/main/resources</directory>
1039                 <filtering>true</filtering>
1040                 <includes>
1041                     <include>**/*</include>
1042                 </includes>
1043             </resource>
1044             <resource>
1045                 <directory>${project.basedir}/src/main/swm</directory>
1046                 <targetPath>${project.build.directory}/swm</targetPath>
1047                 <filtering>false</filtering>
1048             </resource>
1049             <resource>
1050                 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
1051                 <includes>
1052                     <include>janusgraph-realtime.properties</include>
1053                     <include>janusgraph-cached.properties</include>
1054                     <include>aaiconfig.properties</include>
1055                     <include>aaiEventDMaaPPublisher.properties</include>
1056                     <include>preferredRoute.txt</include>
1057                     <include>datatoolscrons.properties</include>
1058                 </includes>
1059                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
1060                 </targetPath>
1061                 <filtering>false</filtering>
1062             </resource>
1063             <resource>
1064                 <directory>${project.basedir}/src/main/resources</directory>
1065                 <includes>
1066                     <include>application.properties</include>
1067                     <include>*logback.xml</include>
1068                     <include>hbase-site.xml</include>
1069                 </includes>
1070                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
1071                 </targetPath>
1072                 <filtering>false</filtering>
1073             </resource>
1074             <resource>
1075                 <directory>${project.basedir}/src/main/resources/schema/</directory>
1076                 <includes>
1077                     <include>**/oxm/**/*.xml</include>
1078                     <include>**/dbedgerules/**/*.json</include>
1079                 </includes>
1080                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
1081                 <filtering>false</filtering>
1082             </resource>
1083             <resource>
1084                 <directory>${project.basedir}/src/main/docker</directory>
1085                 <includes>
1086                     <include>**/*</include>
1087                 </includes>
1088                 <targetPath>${aai.build.directory}</targetPath>
1089                 <filtering>true</filtering>
1090             </resource>
1091             <resource>
1092                 <directory>${project.basedir}/src/main/resources/etc/auth</directory>
1093                 <includes>
1094                     <include>**/*</include>
1095                 </includes>
1096                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
1097                 </targetPath>
1098                 <filtering>false</filtering>
1099             </resource>
1100             <!--
1101                Place any files related for migration related into migration-input-files
1102                so they can be packaged into this location here so it can be volumed
1103                into the container as one folder rather than do this for each subfolder
1104            -->
1105             <resource>
1106                 <directory>${project.basedir}/src/main/resources/migration-input-files</directory>
1107                 <includes>
1108                     <include>**/*</include>
1109                 </includes>
1110                 <targetPath>
1111                     ${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/migration-input-files
1112                 </targetPath>
1113                 <filtering>false</filtering>
1114             </resource>
1115         </resources>
1116     </build>
1117
1118     <distributionManagement>
1119         <snapshotRepository>
1120             <id>ecomp-snapshots</id>
1121             <name>ECOMP Snapshot Repository</name>
1122             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
1123         </snapshotRepository>
1124         <site>
1125             <id>ecomp-site</id>
1126             <url>dav:${onap.nexus.url}${sitePath}</url>
1127         </site>
1128     </distributionManagement>
1129     <reporting>
1130         <plugins>
1131             <plugin>
1132                 <groupId>org.apache.maven.plugins</groupId>
1133                 <artifactId>maven-javadoc-plugin</artifactId>
1134                 <version>2.10.4</version>
1135                 <configuration>
1136                     <failOnError>false</failOnError>
1137                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1138                     <docletArtifact>
1139                         <groupId>org.umlgraph</groupId>
1140                         <artifactId>umlgraph</artifactId>
1141                         <version>5.6</version>
1142                     </docletArtifact>
1143                     <additionalparam>-views -Xdoclint:none</additionalparam>
1144                     <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
1145                     <useStandardDocletOptions>true</useStandardDocletOptions>
1146                 </configuration>
1147             </plugin>
1148         </plugins>
1149     </reporting>
1150
1151     <!-- Start of ONAP Specific Repositories -->
1152     <repositories>
1153         <repository>
1154             <id>AJSC</id>
1155             <name>AJSC repository</name>
1156             <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
1157         </repository>
1158         <repository>
1159             <id>restlet</id>
1160             <name>maven reslet</name>
1161             <url>https://maven.restlet.com/</url>
1162         </repository>
1163
1164         <repository>
1165             <id>central</id>
1166             <name>Maven 2 repository 2</name>
1167             <url>http://repo2.maven.org/maven2/</url>
1168         </repository>
1169         <repository>
1170             <id>ecomp-releases</id>
1171             <name>ECOMP Release Repository</name>
1172             <url>${onap.nexus.url}/content/repositories/releases/</url>
1173         </repository>
1174         <repository>
1175             <id>ecomp-staging</id>
1176             <name>ECOMP Staging Repository</name>
1177             <url>${onap.nexus.url}/content/repositories/staging/</url>
1178         </repository>
1179         <repository>
1180             <id>ecomp-snapshots</id>
1181             <name>ECOMP Snapshot Repository</name>
1182             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
1183         </repository>
1184     </repositories>
1185     <!-- End of ONAP Specific Repositories -->
1186 </project>