Update schema-service dep to 1.6.0
[aai/sparky-be.git] / sparkybe-onap-application / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6           <groupId>org.onap.aai</groupId>
7           <artifactId>sparky-be</artifactId>
8           <version>1.6.0-SNAPSHOT</version>
9         </parent>
10
11         <groupId>org.onap.aai.sparky-be</groupId>
12         <artifactId>sparkybe-onap-application</artifactId>
13         <version>1.6.0-SNAPSHOT</version>
14         <packaging>jar</packaging>
15
16     <properties>
17         <java.version>1.8</java.version>
18         <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
19         <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
20         <frontEndArtifactId>sparky-fe</frontEndArtifactId>
21         <frontEndVersion>1.5.0</frontEndVersion>
22         <serverPort>9517</serverPort>
23         <sslport>8000</sslport>
24         <nexusproxy>https://nexus.onap.org</nexusproxy>
25         <camel-spring-boot.version>2.21.1</camel-spring-boot.version>
26         <config-home>${basedir}/</config-home>
27         <version.aai-schema>1.6.0</version.aai-schema>
28         <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
29         <nexusproxy>https://nexus.onap.org</nexusproxy>
30         <spring.boot.version>1.5.21.RELEASE</spring.boot.version>
31         <shemaUnpackVersion>onap</shemaUnpackVersion>
32         <!-- docker related properties -->
33         <docker.image.name>sparky-be</docker.image.name>
34         <docker.fabric.version>0.28.0</docker.fabric.version>
35         <aai.docker.version>1.0.0</aai.docker.version>
36         <aai.build.directory>${project.build.directory}/${project.artifactId}-build/
37         </aai.build.directory>
38         <aai.docker.namespace>onap</aai.docker.namespace>
39         <aai.base.image>alpine</aai.base.image>
40         <aai.base.image.version>1.6.0</aai.base.image.version>
41         <!-- This will be used for the docker images as the default format of maven build has issues -->
42         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43     </properties>
44
45     <dependencyManagement>
46         <dependencies>
47             <dependency>
48                 <groupId>org.springframework.boot</groupId>
49                 <artifactId>spring-boot-starter-parent</artifactId>
50                 <version>${spring.boot.version}</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54             <!-- Camel BOM -->
55             <dependency>
56                 <groupId>org.apache.camel</groupId>
57                 <artifactId>camel-spring-boot-dependencies</artifactId>
58                 <version>${camel-spring-boot.version}</version>
59                 <type>pom</type>
60                 <scope>import</scope>
61             </dependency>
62
63             <dependency>
64                 <groupId>ch.qos.logback</groupId>
65                 <artifactId>logback-classic</artifactId>
66                 <version>1.2.3</version>
67             </dependency>
68
69         </dependencies>
70
71     </dependencyManagement>
72
73     <dependencies>
74
75         <!-- Spring dependencies -->
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-starter-web</artifactId>
79             <exclusions>
80                 <exclusion>
81                     <groupId>org.springframework.boot</groupId>
82                     <artifactId>spring-boot-starter-tomcat</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-jetty</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-actuator</artifactId>
95         </dependency>
96
97         <dependency>
98             <groupId>org.apache.camel</groupId>
99             <artifactId>camel-restlet</artifactId>
100             <exclusions>
101                 <exclusion>
102                     <groupId>commons-logging</groupId>
103                     <artifactId>commons-logging</artifactId>
104                 </exclusion>
105             </exclusions>
106         </dependency>
107
108         <dependency>
109             <groupId>org.springframework.boot</groupId>
110             <artifactId>spring-boot-starter-logging</artifactId>
111             <exclusions>
112                 <exclusion>
113                     <groupId>ch.qos.logback</groupId>
114                     <artifactId>logback-classic</artifactId>
115                 </exclusion>
116                 <exclusion>
117                     <groupId>org.slf4j</groupId>
118                     <artifactId>log4j-over-slf4j</artifactId>
119                 </exclusion>
120             </exclusions>
121         </dependency>
122
123         <dependency>
124             <groupId>org.apache.camel</groupId>
125             <artifactId>camel-servlet</artifactId>
126             <exclusions>
127                 <exclusion>
128                     <groupId>commons-logging</groupId>
129                     <artifactId>commons-logging</artifactId>
130                 </exclusion>
131             </exclusions>
132         </dependency>
133
134         <!-- Camel BOM -->
135         <dependency>
136             <groupId>org.apache.camel</groupId>
137             <artifactId>camel-spring-boot-dependencies</artifactId>
138             <version>${camel-spring-boot.version}</version>
139             <type>pom</type>
140             <scope>import</scope>
141         </dependency>
142
143         <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
144         <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
145             </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
146             </dependency> -->
147
148         <!-- Camel -->
149         <dependency>
150             <groupId>org.apache.camel</groupId>
151             <artifactId>camel-spring-boot-starter</artifactId>
152         </dependency>
153
154         <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
155         <dependency>
156             <groupId>org.apache.camel</groupId>
157             <artifactId>camel-restlet</artifactId>
158         </dependency>
159
160         <dependency>
161             <groupId>commons-io</groupId>
162             <artifactId>commons-io</artifactId>
163         </dependency>
164
165         <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
166         <dependency>
167             <groupId>org.eclipse.jetty</groupId>
168             <artifactId>jetty-util</artifactId>
169             <scope>provided</scope>
170         </dependency>
171
172         <dependency>
173             <groupId>org.apache.camel</groupId>
174             <artifactId>camel-servlet-starter</artifactId>
175         </dependency>
176
177         <dependency>
178             <groupId>org.springframework.boot</groupId>
179             <artifactId>spring-boot-starter-actuator</artifactId>
180         </dependency>
181
182                 <dependency>
183                         <groupId>org.onap.aai.sparky-be</groupId>
184                         <artifactId>sparkybe-onap-service</artifactId>
185                         <version>1.6.0-SNAPSHOT</version>
186                 </dependency>
187
188
189         <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
190         <dependency>
191             <groupId>commons-cli</groupId>
192             <artifactId>commons-cli</artifactId>
193             <version>1.2</version>
194         </dependency>
195
196         <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
197             </dependency> -->
198
199
200         <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
201         <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
202             <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
203             <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
204             <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
205             </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
206             <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
207             </dependency> -->
208
209         <!-- Utility dependencies -->
210
211         <dependency>
212             <groupId>com.google.guava</groupId>
213             <artifactId>guava</artifactId>
214             <version>26.0-jre</version>
215         </dependency>
216
217         <dependency>
218             <groupId>org.onap.aai.logging-service</groupId>
219             <artifactId>common-logging</artifactId>
220             <version>1.5.0</version>
221         </dependency>
222
223         <dependency>
224             <groupId>org.dom4j</groupId>
225             <artifactId>dom4j</artifactId>
226             <scope>provided</scope>
227             <version>2.1.1</version>
228         </dependency>
229
230         <dependency>
231             <groupId>org.eclipse.persistence</groupId>
232             <artifactId>eclipselink</artifactId>
233             <version>2.6.2</version>
234         </dependency>
235
236         <dependency>
237             <groupId>org.slf4j</groupId>
238             <artifactId>slf4j-api</artifactId>
239             <scope>provided</scope>
240         </dependency>
241
242         <dependency>
243             <groupId>com.fasterxml.jackson.core</groupId>
244             <artifactId>jackson-core</artifactId>
245             <scope>provided</scope>
246         </dependency>
247
248         <dependency>
249             <groupId>org.onap.aai.schema-service</groupId>
250             <artifactId>aai-schema</artifactId>
251             <version>${version.aai-schema}</version>
252         </dependency>
253
254         <dependency>
255             <groupId>org.onap.aai</groupId>
256             <artifactId>rest-client</artifactId>
257             <version>1.5.0</version>
258         </dependency>
259
260         <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
261         <dependency>
262             <groupId>org.restlet.jee</groupId>
263             <artifactId>org.restlet.ext.servlet</artifactId>
264             <version>2.1.1</version>
265         </dependency>
266
267
268         <dependency>
269             <groupId>com.openpojo</groupId>
270             <artifactId>openpojo</artifactId>
271             <version>0.8.6</version>
272         </dependency>
273
274         <dependency>
275             <groupId>com.google.code.gson</groupId>
276             <artifactId>gson</artifactId>
277             <scope>provided</scope>
278         </dependency>
279
280
281         <dependency>
282             <groupId>org.json</groupId>
283             <artifactId>json</artifactId>
284             <scope>provided</scope>
285         </dependency>
286
287         <dependency>
288             <groupId>com.fasterxml.jackson.core</groupId>
289             <artifactId>jackson-databind</artifactId>
290             <scope>provided</scope>
291         </dependency>
292
293         <dependency>
294             <groupId>org.onap.portal.sdk</groupId>
295             <artifactId>epsdk-fw</artifactId>
296             <version>2.5.0</version>
297             <exclusions>
298                 <exclusion>
299                     <groupId>commons-logging</groupId>
300                     <artifactId>commons-logging</artifactId>
301                 </exclusion>
302                 <exclusion>
303                     <groupId>log4j</groupId>
304                     <artifactId>log4j</artifactId>
305                 </exclusion>
306                 <exclusion>
307                     <groupId>log4j</groupId>
308                     <artifactId>apache-log4j-extras</artifactId>
309                 </exclusion>
310                 <exclusion>
311                     <groupId>org.slf4j</groupId>
312                     <artifactId>slf4j-log4j12</artifactId>
313                 </exclusion>
314             </exclusions>
315         </dependency>
316
317         <!-- Test dependencies -->
318
319         <dependency>
320             <groupId>org.mockito</groupId>
321             <artifactId>mockito-all</artifactId>
322             <version>1.10.19</version>
323             <scope>test</scope>
324         </dependency>
325
326         <dependency>
327             <groupId>org.powermock</groupId>
328             <artifactId>powermock-module-junit4</artifactId>
329             <version>1.6.2</version>
330             <scope>test</scope>
331         </dependency>
332         <dependency>
333             <groupId>org.powermock</groupId>
334             <artifactId>powermock-api-mockito</artifactId>
335             <version>1.6.2</version>
336             <scope>test</scope>
337         </dependency>
338         <dependency>
339             <groupId>org.powermock</groupId>
340             <artifactId>powermock-module-javaagent</artifactId>
341             <version>1.6.2</version>
342             <scope>test</scope>
343         </dependency>
344         <dependency>
345             <groupId>org.powermock</groupId>
346             <artifactId>powermock-module-junit4-rule-agent</artifactId>
347             <version>1.6.2</version>
348             <scope>test</scope>
349         </dependency>
350
351         <dependency>
352             <groupId>org.hamcrest</groupId>
353             <artifactId>hamcrest-library</artifactId>
354             <scope>test</scope>
355         </dependency>
356
357     </dependencies>
358
359     <profiles>
360         <profile>
361             <id>docker</id>
362             <build>
363                 <plugins>
364                     <plugin>
365                         <groupId>org.codehaus.mojo</groupId>
366                         <artifactId>build-helper-maven-plugin</artifactId>
367                         <version>3.0.0</version>
368                         <executions>
369                             <execution>
370                                 <phase>pre-clean</phase>
371                                 <id>parse-version</id>
372                                 <goals>
373                                     <goal>parse-version</goal>
374                                 </goals>
375                             </execution>
376                         </executions>
377                     </plugin>
378                     <plugin>
379                         <groupId>org.codehaus.groovy.maven</groupId>
380                         <artifactId>gmaven-plugin</artifactId>
381                         <version>1.0</version>
382                         <executions>
383                             <execution>
384                                 <phase>pre-clean</phase>
385                                 <goals>
386                                     <goal>execute</goal>
387                                 </goals>
388                                 <configuration>
389                                     <source>
390                                         def userAaiBaseImage = session.userProperties['aai.base.image']
391                                         def userAaiCommonVersion = session.userProperties['aai.base.image.version']
392                                         if (userAaiCommonVersion != null) {
393                                             project.properties['aai.base.image.version'] = userAaiCommonVersion
394                                         }
395                                         if (userAaiBaseImage != null) {
396                                             project.properties['aai.base.image'] = userAaiBaseImage
397                                         }
398                                         log.info 'Base image flavour: ' + project.properties['aai.base.image']
399                                         log.info 'Base image version: ' + project.properties['aai.base.image.version']
400                                     </source>
401                                 </configuration>
402                             </execution>
403                         </executions>
404                     </plugin>
405                     <plugin>
406                         <groupId>io.fabric8</groupId>
407                         <artifactId>docker-maven-plugin</artifactId>
408                         <version>${docker.fabric.version}</version>
409                         <configuration>
410                             <verbose>true</verbose>
411                             <apiVersion>1.23</apiVersion>
412                             <images>
413                                 <image>
414                                     <name>${docker.push.registry}/${aai.docker.namespace}/${docker.image.name}:%l
415                                     </name>
416                                     <build>
417                                         <filter>@</filter>
418                                         <tags>
419                                             <tag>latest</tag>
420                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
421                                             <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
422                                         </tags>
423                                         <cleanup>try</cleanup>
424                                         <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
425                                         <assembly>
426                                             <inline>
427                                                 <fileSets>
428                                                     <fileSet>
429                                                         <directory>${aai.build.directory}</directory>
430                                                         <outputDirectory>/${project.artifactId}</outputDirectory>
431                                                     </fileSet>
432                                                 </fileSets>
433                                             </inline>
434                                         </assembly>
435                                     </build>
436                                 </image>
437                             </images>
438                         </configuration>
439                         <executions>
440                             <execution>
441                                 <id>clean-images</id>
442                                 <phase>pre-clean</phase>
443                                 <goals>
444                                     <goal>remove</goal>
445                                 </goals>
446                                 <configuration>
447                                     <removeAll>true</removeAll>
448                                 </configuration>
449                             </execution>
450                             <execution>
451                                 <id>generate-images</id>
452                                 <phase>package</phase>
453                                 <goals>
454                                     <goal>build</goal>
455                                 </goals>
456                             </execution>
457                             <execution>
458                                 <id>push-images</id>
459                                 <phase>deploy</phase>
460                                 <goals>
461                                     <goal>push</goal>
462                                 </goals>
463                             </execution>
464                         </executions>
465                     </plugin>
466                 </plugins>
467             </build>
468         </profile>
469     </profiles>
470
471     <build>
472         <finalName>${project.artifactId}</finalName>
473         <resources>
474             <resource>
475                 <directory>${project.basedir}/src/main/resources</directory>
476             </resource>
477             <resource>
478                 <directory>${project.basedir}/config/portal/BOOT-INF/classes</directory>
479                 <filtering>true</filtering>
480                 <includes>
481                     <include>*.properties</include>
482                 </includes>
483             </resource>
484         </resources>
485         <pluginManagement>
486             <plugins>
487                 <plugin>
488                     <groupId>org.apache.maven.plugins</groupId>
489                     <artifactId>maven-compiler-plugin</artifactId>
490                     <configuration>
491                         <source>1.8</source>
492                         <target>1.8</target>
493                     </configuration>
494                 </plugin>
495             </plugins>
496         </pluginManagement>
497
498         <plugins>
499             <plugin>
500                 <groupId>org.springframework.boot</groupId>
501                 <artifactId>spring-boot-maven-plugin</artifactId>
502                 <configuration>
503                     <folders>
504                         <folder>
505                             ${CONFIG_HOME}/portal/BOOT-INF/classes/
506                         </folder>
507                     </folders>
508                 </configuration>
509                 <executions>
510                     <execution>
511                         <phase>package</phase>
512                         <goals>
513                             <goal>repackage</goal>
514                         </goals>
515                     </execution>
516                 </executions>
517             </plugin>
518
519             <plugin>
520                 <artifactId>maven-assembly-plugin</artifactId>
521                 <configuration>
522                     <descriptors>
523                         <descriptor>src/main/assembly/descriptor.xml</descriptor>
524                     </descriptors>
525                 </configuration>
526                 <executions>
527                     <execution>
528                         <id>make-assembly</id>
529                         <phase>package</phase>
530                         <goals>
531                             <goal>single</goal>
532                         </goals>
533                     </execution>
534                 </executions>
535             </plugin>
536
537             <plugin>
538                 <groupId>org.apache.maven.plugins</groupId>
539                 <artifactId>maven-dependency-plugin</artifactId>
540                 <version>3.0.0</version>
541                 <executions>
542                     <execution>
543                         <id>copy-war-to-target</id>
544                         <phase>prepare-package</phase>
545                         <goals>
546                             <goal>unpack</goal>
547                         </goals>
548                         <configuration>
549                             <artifactItems>
550                                 <artifactItem>
551                                     <groupId>${frontEndGroupdId}</groupId>
552                                     <artifactId>${frontEndArtifactId}</artifactId>
553                                     <version>${frontEndVersion}</version>
554                                     <type>war</type>
555                                     <outputDirectory>${aai.build.directory}/static/services/aai/webapp/
556                                     </outputDirectory>
557                                 </artifactItem>
558                             </artifactItems>
559                         </configuration>
560                     </execution>
561                     <execution>
562                         <id>unpack</id>
563                         <phase>prepare-package</phase>
564                         <goals>
565                             <goal>unpack</goal>
566                         </goals>
567                         <configuration>
568                             <artifactItems>
569                                 <artifactItem>
570                                     <groupId>org.onap.aai.schema-service</groupId>
571                                     <artifactId>aai-schema</artifactId>
572                                     <version>${version.aai-schema}</version>
573                                     <type>jar</type>
574                                     <includes>/${shemaUnpackVersion}/oxm/</includes>
575                                     <outputDirectory>${aai.build.directory}</outputDirectory>
576                                 </artifactItem>
577                             </artifactItems>
578                         </configuration>
579                     </execution>
580                 </executions>
581             </plugin>
582
583             <plugin>
584                 <groupId>org.jacoco</groupId>
585                 <artifactId>jacoco-maven-plugin</artifactId>
586                 <version>${version.jacoco.maven.plugin}</version>
587                 <executions>
588                     <execution>
589                         <id>prepare-agent</id>
590                         <goals>
591                             <goal>prepare-agent</goal>
592                         </goals>
593                     </execution>
594                     <execution>
595                         <id>report</id>
596                         <phase>package</phase>
597                         <goals>
598                             <goal>report</goal>
599                         </goals>
600                     </execution>
601                 </executions>
602             </plugin>
603
604             <plugin>
605                 <groupId>org.codehaus.mojo</groupId>
606                 <artifactId>cobertura-maven-plugin</artifactId>
607                 <executions>
608                     <execution>
609                         <phase/>
610                     </execution>
611                 </executions>
612             </plugin>
613
614             <plugin>
615                 <groupId>org.apache.maven.plugins</groupId>
616                 <artifactId>maven-site-plugin</artifactId>
617                 <configuration>
618                     <reportPlugins>
619                         <plugin>
620                             <groupId>org.apache.maven.plugins</groupId>
621                             <artifactId>maven-checkstyle-plugin</artifactId>
622                             <version>2.17</version>
623                             <reportSets>
624                                 <reportSet>
625                                     <reports>
626                                         <report>checkstyle</report>
627                                     </reports>
628                                 </reportSet>
629                             </reportSets>
630                         </plugin>
631                     </reportPlugins>
632                 </configuration>
633             </plugin>
634
635             <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
636                 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
637                 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
638                 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
639                 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
640                 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
641                 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
642             <plugin>
643                 <groupId>org.apache.maven.plugins</groupId>
644                 <artifactId>maven-deploy-plugin</artifactId>
645             </plugin>
646             <!-- license plugin -->
647             <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
648                 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
649                 <include>src/main/java/**</include> </includes> </configuration> <executions>
650                 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
651                 </execution> </executions> </plugin> -->
652         </plugins>
653     </build>
654
655     <distributionManagement>
656         <repository>
657             <id>ecomp-releases</id>
658             <name>ECOMP Release Repository</name>
659             <url>${nexusproxy}/content/repositories/releases/</url>
660         </repository>
661         <snapshotRepository>
662             <id>ecomp-snapshots</id>
663             <name>ECOMP Snapshot Repository</name>
664             <url>${nexusproxy}/content/repositories/snapshots/</url>
665         </snapshotRepository>
666     </distributionManagement>
667
668     <repositories>
669         <repository>
670             <id>central</id>
671             <name>Maven 2 repository 2</name>
672             <url>http://repo2.maven.org/maven2/</url>
673         </repository>
674         <repository>
675             <id>ecomp-releases</id>
676             <name>ECOMP Release Repository</name>
677             <url>${nexusproxy}/content/repositories/releases/</url>
678         </repository>
679         <repository>
680             <id>ecomp-staging</id>
681             <name>ECOMP Staging Repository</name>
682             <url>${nexusproxy}/content/repositories/staging/</url>
683         </repository>
684         <repository>
685             <id>ecomp-snapshots</id>
686             <name>ECOMP Snapshot Repository</name>
687             <url>${nexusproxy}/content/repositories/snapshots/</url>
688         </repository>
689     </repositories>
690 </project>