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