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