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