442716f9d76b56cca800472520de59a04e47c2a4
[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.3</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             <version>${netty.version}</version>
584         </dependency>
585         <dependency>
586             <groupId>io.netty</groupId>
587             <artifactId>netty-handler</artifactId>
588             <version>${netty.handler.version}</version>
589         </dependency>
590         <!-- End of Netty Dependencies -->
591         <!-- Start of Antlr dependencies for DSL -->
592         <dependency>
593             <groupId>org.antlr</groupId>
594             <artifactId>antlr4-runtime</artifactId>
595         </dependency>
596         <dependency>
597             <groupId>org.antlr</groupId>
598             <artifactId>antlr4-maven-plugin</artifactId>
599             <exclusions>
600                 <exclusion>
601                     <groupId>org.sonatype.sisu</groupId>
602                     <artifactId>sisu-guava</artifactId>
603                 </exclusion>
604             </exclusions>
605         </dependency>
606         <!-- End of Antlr dependencies for DSL -->
607         <!-- Start of Plexus dependencies for DSL -->
608         <dependency>
609             <groupId>org.codehaus.plexus</groupId>
610             <artifactId>plexus-utils</artifactId>
611         </dependency>
612         <!-- End of Plexus dependencies for DSL -->
613         <!-- Start of Junit Test Dependencies -->
614         <dependency>
615             <groupId>org.hamcrest</groupId>
616             <artifactId>hamcrest-junit</artifactId>
617             <scope>test</scope>
618         </dependency>
619         <dependency>
620             <groupId>junit</groupId>
621             <artifactId>junit</artifactId>
622             <scope>test</scope>
623         </dependency>
624         <dependency>
625             <groupId>org.mockito</groupId>
626             <artifactId>mockito-all</artifactId>
627             <scope>test</scope>
628         </dependency>
629         <dependency>
630             <groupId>org.skyscreamer</groupId>
631             <artifactId>jsonassert</artifactId>
632             <scope>test</scope>
633         </dependency>
634         <!-- End of Junit Test Dependencies -->
635     </dependencies>
636
637     <build>
638         <pluginManagement>
639             <plugins>
640                 <!--This plugin's configuration is used to store Eclipse m2e settings
641                     only. It has no influence on the Maven build itself. -->
642                 <plugin>
643                     <groupId>org.eclipse.m2e</groupId>
644                     <artifactId>lifecycle-mapping</artifactId>
645                     <version>1.0.0</version>
646                     <configuration>
647                         <lifecycleMappingMetadata>
648                             <pluginExecutions>
649                                 <pluginExecution>
650                                     <pluginExecutionFilter>
651                                         <groupId>com.github.kongchen</groupId>
652                                         <artifactId>swagger-maven-plugin</artifactId>
653                                         <versionRange>3.1.3</versionRange>
654                                         <goals>
655                                             <goal>generate</goal>
656                                         </goals>
657                                     </pluginExecutionFilter>
658                                     <action>
659                                         <ignore/>
660                                     </action>
661                                 </pluginExecution>
662                             </pluginExecutions>
663                         </lifecycleMappingMetadata>
664                     </configuration>
665                 </plugin>
666                 <plugin>
667                     <groupId>org.apache.maven.plugins</groupId>
668                     <artifactId>maven-dependency-plugin</artifactId>
669                     <version>2.8</version>
670                     <executions>
671                         <execution>
672                             <id>unpack-schema-dependency</id>
673                             <phase>initialize</phase>
674                             <goals>
675                                 <goal>unpack</goal>
676                             </goals>
677                             <configuration>
678                                 <artifactItems>
679                                     <artifactItem>
680                                         <groupId>org.onap.aai.schema-service</groupId>
681                                         <artifactId>aai-schema</artifactId>
682                                         <version>${aai.schema.service.version}</version>
683                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
684                                         <includes>**/oxm/**/*.xml</includes>
685                                     </artifactItem>
686                                 </artifactItems>
687                                 <!-- other configurations here -->
688                             </configuration>
689                         </execution>
690                         <execution>
691                             <id>unpack-edgerules-dependency</id>
692                             <phase>initialize</phase>
693                             <goals>
694                                 <goal>unpack</goal>
695                             </goals>
696                             <configuration>
697                                 <artifactItems>
698                                     <artifactItem>
699                                         <groupId>org.onap.aai.schema-service</groupId>
700                                         <artifactId>aai-schema</artifactId>
701                                         <version>${aai.schema.service.version}</version>
702                                         <outputDirectory>${project.basedir}/src/main/resources/schema/</outputDirectory>
703                                         <includes>**/dbedgerules/**/*.json</includes>
704                                     </artifactItem>
705                                 </artifactItems>
706                                 <!-- other configurations here -->
707                             </configuration>
708                         </execution>
709                     </executions>
710                 </plugin>
711                 <plugin>
712                     <groupId>org.codehaus.groovy.maven</groupId>
713                     <artifactId>gmaven-plugin</artifactId>
714                     <version>1.0</version>
715                     <executions>
716                         <execution>
717                             <phase>validate</phase>
718                             <goals>
719                                 <goal>execute</goal>
720                             </goals>
721                             <configuration>
722                                 <source>
723                                     println project.properties['aai.project.version'];
724                                     def versionArray;
725                                     if (project.properties['aai.project.version'] != null) {
726                                         versionArray = project.properties['aai.project.version'].split('\\.');
727                                     }
728
729                                     project.properties["project.major.version"] = versionArray[0];
730                                     project.properties["project.minor.version"] = versionArray[1];
731                                     project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + '-STAGING-latest';
732                                     println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
733                                 </source>
734                             </configuration>
735                         </execution>
736                     </executions>
737                 </plugin>
738                 <plugin>
739                     <groupId>org.apache.maven.plugins</groupId>
740                     <artifactId>maven-deploy-plugin</artifactId>
741                 </plugin>
742                 <plugin>
743                     <groupId>com.mycila</groupId>
744                     <artifactId>license-maven-plugin</artifactId>
745                     <version>3.0</version>
746                     <configuration>
747                         <header>LICENSE.TXT</header>
748                         <includes>
749                             <include>src/main/java/**</include>
750                             <include>src/test/java/**</include>
751                             <include>pom.xml</include>
752                         </includes>
753                         <skipExistingHeaders>true</skipExistingHeaders>
754                         <skip>false</skip>
755                     </configuration>
756                     <executions>
757                         <execution>
758                             <goals>
759                                 <!-- Set goal to "format" to auto update license headers -->
760                                 <goal>${license.goal.type}</goal>
761                             </goals>
762                             <phase>process-sources</phase>
763                         </execution>
764                     </executions>
765                 </plugin>
766             </plugins>
767         </pluginManagement>
768         <plugins>
769             <!--
770             Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
771             Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
772             Use in combination to rewrite code and imports, then checkstyle
773
774             mvn formatter:format spotless:apply process-sources
775             -->
776             <plugin>
777                  <groupId>net.revelc.code.formatter</groupId>
778                  <artifactId>formatter-maven-plugin</artifactId>
779                  <version>2.8.1</version>
780                  <configuration>
781                     <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
782                  </configuration>
783                  <!-- https://code.revelc.net/formatter-maven-plugin/
784                       use mvn formatter:format to rewrite source files
785                       use mvn formatter:validate to validate source files -->
786              </plugin>
787             <plugin>
788               <groupId>com.diffplug.spotless</groupId>
789               <artifactId>spotless-maven-plugin</artifactId>
790               <version>1.18.0</version>
791               <configuration>
792                 <java>
793                  <importOrder>
794                    <order>com,java,javax,org</order>
795                  </importOrder>
796                 </java>
797               </configuration>
798             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
799                  use mvn spotless:apply to rewrite source files
800                  use mvn spotless:check to validate source files -->
801             </plugin>
802             <plugin>
803                 <groupId>org.apache.maven.plugins</groupId>
804                 <artifactId>maven-site-plugin</artifactId>
805                 <version>3.6</version>
806                 <configuration>
807                     <reportPlugins>
808                         <plugin>
809                             <groupId>org.apache.maven.plugins</groupId>
810                             <artifactId>maven-project-info-reports-plugin</artifactId>
811                             <version>2.4</version>
812                             <configuration>
813                                 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
814                                 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
815                             </configuration>
816                             <reports>
817                                 <report>dependencies</report>
818                             </reports>
819                         </plugin>
820                         <plugin>
821                             <groupId>org.apache.maven.plugins</groupId>
822                             <artifactId>maven-javadoc-plugin</artifactId>
823                             <version>2.8</version>
824                             <configuration>
825                                 <additionalparam>-Xdoclint:none</additionalparam>
826                             </configuration>
827                         </plugin>
828                     </reportPlugins>
829                 </configuration>
830                 <dependencies>
831                     <dependency>
832                         <groupId>org.apache.maven.wagon</groupId>
833                         <artifactId>wagon-webdav-jackrabbit</artifactId>
834                         <version>2.10</version>
835                     </dependency>
836                 </dependencies>
837             </plugin>
838             <plugin>
839                 <groupId>org.codehaus.groovy.maven</groupId>
840                 <artifactId>gmaven-plugin</artifactId>
841             </plugin>
842             <plugin>
843                 <groupId>com.mycila</groupId>
844                 <artifactId>license-maven-plugin</artifactId>
845             </plugin>
846             <plugin>
847                 <groupId>org.apache.maven.plugins</groupId>
848                 <artifactId>maven-clean-plugin</artifactId>
849                 <version>2.4.1</version>
850                 <configuration>
851                     <filesets>
852                         <fileset>
853                             <directory>${project.basedir}/src/main/resources/etc/oxm</directory>
854                             <includes>
855                                 <include>**/*</include>
856                             </includes>
857                             <followSymlinks>false</followSymlinks>
858                         </fileset>
859                         <fileset>
860                             <directory>${project.basedir}/src/main/resources/etc/dbedgerules</directory>
861                             <includes>
862                                 <include>**/*</include>
863                             </includes>
864                             <followSymlinks>false</followSymlinks>
865                         </fileset>
866                         <fileset>
867                             <directory>${project.basedir}/src/main/resources/schema</directory>
868                             <includes>
869                                 <include>**/*</include>
870                             </includes>
871                             <followSymlinks>false</followSymlinks>
872                         </fileset>
873                     </filesets>
874                 </configuration>
875             </plugin>
876             <plugin>
877                 <artifactId>maven-dependency-plugin</artifactId>
878             </plugin>
879             <!-- Used for unit tests -->
880             <plugin>
881               <groupId>org.apache.maven.plugins</groupId>
882               <artifactId>maven-surefire-plugin</artifactId>
883               <configuration>
884                 <!-- <argLine>-noverify ${argLine}</argLine> -->
885                 <runOrder>alphabetical</runOrder>
886               </configuration>
887             </plugin>
888             <plugin>
889                 <groupId>org.springframework.boot</groupId>
890                 <artifactId>spring-boot-maven-plugin</artifactId>
891                 <!--
892                   Issue with the spring 1.5.15.RELEASE plugin is causing build errors
893                   due to the fact that the plugin 1.5.15.RELEASE was built using maven 3.5 while
894                   the current build version being used by our jenkins is 3.3.9
895                 -->
896                 <version>1.5.21.RELEASE</version>
897                 <configuration>
898                     <mainClass>${start-class}</mainClass>
899                     <layout>ZIP</layout>
900                 </configuration>
901                 <executions>
902                     <execution>
903                         <goals>
904                             <goal>repackage</goal>
905                         </goals>
906                     </execution>
907                 </executions>
908             </plugin>
909             <plugin>
910                 <artifactId>maven-assembly-plugin</artifactId>
911                 <configuration>
912                     <descriptors>
913                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
914                     </descriptors>
915                 </configuration>
916                 <executions>
917                     <execution>
918                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
919                         <phase>package</phase> <!-- bind to the packaging phase -->
920                         <goals>
921                             <goal>single</goal>
922                         </goals>
923                     </execution>
924                 </executions>
925             </plugin>
926             <plugin>
927                 <groupId>org.antlr</groupId>
928                 <artifactId>antlr4-maven-plugin</artifactId>
929                 <version>4.7</version>
930                 <executions>
931                     <execution>
932                         <goals>
933                             <goal>antlr4</goal>
934                         </goals>
935                         <configuration>
936                             <sourceDirectory>src/main/resources/antlr4</sourceDirectory>
937                             <!-- <outputDirectory>src/main/java/antlr4</outputDirectory> -->
938                         </configuration>
939                     </execution>
940                 </executions>
941             </plugin>
942         </plugins>
943         <!-- mention the logback.xml location through system property or environment
944             variable to edit logback.xml at run time -->
945         <resources>
946             <resource>
947                 <directory>src/main/resources</directory>
948                 <filtering>true</filtering>
949                 <includes>
950                     <include>**/*</include>
951                 </includes>
952             </resource>
953             <resource>
954                 <directory>${project.basedir}/src/main/swm</directory>
955                 <targetPath>${project.build.directory}/swm</targetPath>
956                 <filtering>false</filtering>
957             </resource>
958             <resource>
959                 <directory>${project.basedir}/src/main/resources/etc/appprops/</directory>
960                 <includes>
961                     <include>janusgraph-realtime.properties</include>
962                     <include>janusgraph-cached.properties</include>
963                     <include>aaiconfig.properties</include>
964                     <include>aaiEventDMaaPPublisher.properties</include>
965                     <include>preferredRoute.txt</include>
966                     <include>datatoolscrons.properties</include>
967                 </includes>
968                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
969                 </targetPath>
970                 <filtering>false</filtering>
971             </resource>
972             <resource>
973                 <directory>${project.basedir}/src/main/resources</directory>
974                 <includes>
975                     <include>application.properties</include>
976                     <include>*logback.xml</include>
977                     <include>hbase-site.xml</include>
978                 </includes>
979                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
980                 </targetPath>
981                 <filtering>false</filtering>
982             </resource>
983             <resource>
984                 <directory>${project.basedir}/src/main/resources/schema/</directory>
985                 <includes>
986                     <include>**/oxm/**/*.xml</include>
987                     <include>**/dbedgerules/**/*.json</include>
988                 </includes>
989                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/schema</targetPath>
990                 <filtering>false</filtering>
991             </resource>
992             <resource>
993                 <directory>${project.basedir}/src/main/docker</directory>
994                 <includes>
995                     <include>**/*</include>
996                 </includes>
997                 <targetPath>${aai.build.directory}</targetPath>
998                 <filtering>true</filtering>
999             </resource>
1000             <resource>
1001                 <directory>${project.basedir}/src/main/resources/etc/auth</directory>
1002                 <includes>
1003                     <include>**/*</include>
1004                 </includes>
1005                 <targetPath>${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig
1006                 </targetPath>
1007                 <filtering>false</filtering>
1008             </resource>
1009             <!--
1010                Place any files related for migration related into migration-input-files
1011                so they can be packaged into this location here so it can be volumed
1012                into the container as one folder rather than do this for each subfolder
1013            -->
1014             <resource>
1015                 <directory>${project.basedir}/src/main/resources/migration-input-files</directory>
1016                 <includes>
1017                     <include>**/*</include>
1018                 </includes>
1019                 <targetPath>
1020                     ${project.build.directory}/swm/package/nix/dist_files/opt/app/${project.artifactId}/appconfig/migration-input-files
1021                 </targetPath>
1022                 <filtering>false</filtering>
1023             </resource>
1024         </resources>
1025     </build>
1026
1027     <distributionManagement>
1028         <snapshotRepository>
1029             <id>ecomp-snapshots</id>
1030             <name>ECOMP Snapshot Repository</name>
1031             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
1032         </snapshotRepository>
1033         <site>
1034             <id>ecomp-site</id>
1035             <url>dav:${onap.nexus.url}${sitePath}</url>
1036         </site>
1037     </distributionManagement>
1038     <reporting>
1039         <plugins>
1040             <plugin>
1041                 <groupId>org.apache.maven.plugins</groupId>
1042                 <artifactId>maven-javadoc-plugin</artifactId>
1043                 <version>2.10.4</version>
1044                 <configuration>
1045                     <failOnError>false</failOnError>
1046                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
1047                     <docletArtifact>
1048                         <groupId>org.umlgraph</groupId>
1049                         <artifactId>umlgraph</artifactId>
1050                         <version>5.6</version>
1051                     </docletArtifact>
1052                     <additionalparam>-views -Xdoclint:none</additionalparam>
1053                     <excludePackageNames>org.onap.aai.domain.yang.*:org.onap.aai.util.*</excludePackageNames>
1054                     <useStandardDocletOptions>true</useStandardDocletOptions>
1055                 </configuration>
1056             </plugin>
1057         </plugins>
1058     </reporting>
1059
1060     <!-- Start of ONAP Specific Repositories -->
1061     <repositories>
1062         <repository>
1063             <id>AJSC</id>
1064             <name>AJSC repository</name>
1065             <url>https://mvnrepository.com/artifact/com.att.ajsc</url>
1066         </repository>
1067         <repository>
1068             <id>restlet</id>
1069             <name>maven reslet</name>
1070             <url>https://maven.restlet.com/</url>
1071         </repository>
1072
1073         <repository>
1074             <id>central</id>
1075             <name>Maven 2 repository 2</name>
1076             <url>http://repo2.maven.org/maven2/</url>
1077         </repository>
1078         <repository>
1079             <id>ecomp-releases</id>
1080             <name>ECOMP Release Repository</name>
1081             <url>${onap.nexus.url}/content/repositories/releases/</url>
1082         </repository>
1083         <repository>
1084             <id>ecomp-staging</id>
1085             <name>ECOMP Staging Repository</name>
1086             <url>${onap.nexus.url}/content/repositories/staging/</url>
1087         </repository>
1088         <repository>
1089             <id>ecomp-snapshots</id>
1090             <name>ECOMP Snapshot Repository</name>
1091             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
1092         </repository>
1093     </repositories>
1094     <!-- End of ONAP Specific Repositories -->
1095 </project>