upgrade to spring boot 1.5.12
[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.springframework.boot</groupId>
7                 <artifactId>spring-boot-starter-parent</artifactId>
8                 <version>1.5.12.RELEASE</version>
9         </parent>
10
11         <groupId>org.onap.aai.sparky-be</groupId>
12         <artifactId>sparkybe-onap-application</artifactId>
13         <version>1.2.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.2.0</frontEndVersion>
22                 <serverPort>9517</serverPort>
23                 <sslport>8000</sslport>
24                 <nexusproxy>https://nexus.onap.org</nexusproxy>
25                 <camel-spring-boot.version>2.20.0</camel-spring-boot.version>
26                 <config-home>${basedir}/</config-home>
27                 <docker.location>${basedir}/target</docker.location>
28                 <docker.image.name>sparky-be</docker.image.name>
29         </properties>
30
31         <dependencyManagement>
32                 <dependencies>
33
34                         <!-- Camel BOM -->
35                         <dependency>
36                                 <groupId>org.apache.camel</groupId>
37                                 <artifactId>camel-spring-boot-dependencies</artifactId>
38                                 <version>${camel-spring-boot.version}</version>
39                                 <type>pom</type>
40                                 <scope>import</scope>
41                         </dependency>
42
43                         <dependency>
44                                 <groupId>ch.qos.logback</groupId>
45                                 <artifactId>logback-classic</artifactId>
46                                 <version>1.2.1</version>
47                         </dependency>
48
49                 </dependencies>
50
51         </dependencyManagement>
52
53         <dependencies>
54
55                 <!-- Spring dependencies -->
56                 <dependency>
57                         <groupId>org.springframework.boot</groupId>
58                         <artifactId>spring-boot-starter-web</artifactId>
59                 </dependency>
60
61                 <dependency>
62                         <groupId>org.springframework.boot</groupId>
63                         <artifactId>spring-boot-starter-actuator</artifactId>
64                 </dependency>
65
66                 <dependency>
67                         <groupId>org.apache.camel</groupId>
68                         <artifactId>camel-restlet</artifactId>
69                         <exclusions>
70                                 <exclusion>
71                                         <groupId>commons-logging</groupId>
72                                         <artifactId>commons-logging</artifactId>
73                                 </exclusion>
74                         </exclusions>
75                 </dependency>
76
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-logging</artifactId>
80                         <exclusions>
81                                 <exclusion>
82                                         <groupId>ch.qos.logback</groupId>
83                                         <artifactId>logback-classic</artifactId>
84                                 </exclusion>
85                         </exclusions>
86                 </dependency>
87
88                 <dependency>
89                         <groupId>org.apache.camel</groupId>
90                         <artifactId>camel-servlet</artifactId>
91                         <exclusions>
92                                 <exclusion>
93                                         <groupId>commons-logging</groupId>
94                                         <artifactId>commons-logging</artifactId>
95                                 </exclusion>
96                         </exclusions>
97                 </dependency>
98
99                 <!-- Camel BOM -->
100                 <dependency>
101                         <groupId>org.apache.camel</groupId>
102                         <artifactId>camel-spring-boot-dependencies</artifactId>
103                         <version>${camel-spring-boot.version}</version>
104                         <type>pom</type>
105                         <scope>import</scope>
106                 </dependency>
107
108                 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
109                 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
110                         </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
111                         </dependency> -->
112
113                 <!-- Camel -->
114                 <dependency>
115                         <groupId>org.apache.camel</groupId>
116                         <artifactId>camel-spring-boot-starter</artifactId>
117                 </dependency>
118
119                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
120                 <dependency>
121                         <groupId>org.apache.camel</groupId>
122                         <artifactId>camel-restlet</artifactId>
123                 </dependency>
124
125                 <dependency>
126                         <groupId>commons-io</groupId>
127                         <artifactId>commons-io</artifactId>
128                 </dependency>
129
130                 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
131                 <dependency>
132                         <groupId>org.eclipse.jetty</groupId>
133                         <artifactId>jetty-util</artifactId>
134                         <scope>provided</scope>
135                 </dependency>
136
137                 <dependency>
138                         <groupId>org.apache.camel</groupId>
139                         <artifactId>camel-servlet-starter</artifactId>
140                 </dependency>
141
142                 <dependency>
143                         <groupId>org.springframework.boot</groupId>
144                         <artifactId>spring-boot-starter-actuator</artifactId>
145                 </dependency>
146
147                 <dependency>
148                         <groupId>org.onap.aai.sparky-be</groupId>
149                         <artifactId>sparkybe-onap-service</artifactId>
150                         <version>1.2.0-SNAPSHOT</version>
151                 </dependency>
152
153
154
155
156
157
158                 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
159                 <dependency>
160                         <groupId>commons-cli</groupId>
161                         <artifactId>commons-cli</artifactId>
162                         <version>1.2</version>
163                 </dependency>
164
165                 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
166                         </dependency> -->
167
168
169                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
170                 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
171                         <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
172                         <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
173                         <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
174                         </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
175                         <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
176                         </dependency> -->
177
178                 <!-- Utility dependencies -->
179
180                 <dependency>
181                         <groupId>com.google.guava</groupId>
182                         <artifactId>guava</artifactId>
183                         <version>19.0</version>
184                 </dependency>
185
186                 <dependency>
187                         <groupId>org.onap.aai.logging-service</groupId>
188                         <artifactId>common-logging</artifactId>
189                         <version>1.2.2</version>
190                 </dependency>
191
192                 <dependency>
193                         <groupId>dom4j</groupId>
194                         <artifactId>dom4j</artifactId>
195                         <scope>provided</scope>
196                 </dependency>
197
198                 <dependency>
199                         <groupId>org.eclipse.persistence</groupId>
200                         <artifactId>eclipselink</artifactId>
201                         <version>2.6.2</version>
202                 </dependency>
203
204                 <dependency>
205                         <groupId>org.slf4j</groupId>
206                         <artifactId>slf4j-api</artifactId>
207                         <scope>provided</scope>
208                 </dependency>
209
210                 <dependency>
211                         <groupId>com.fasterxml.jackson.core</groupId>
212                         <artifactId>jackson-core</artifactId>
213                         <scope>provided</scope>
214                 </dependency>
215
216                 <dependency>
217                         <groupId>org.onap.aai.aai-common</groupId>
218                         <artifactId>aai-schema</artifactId>
219                         <version>1.2.2-SNAPSHOT</version>
220                 </dependency>
221
222                 <dependency>
223                         <groupId>org.onap.aai</groupId>
224                         <artifactId>rest-client</artifactId>
225                         <version>1.2.1</version>
226                 </dependency>
227
228                 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
229                 <dependency>
230                         <groupId>org.restlet.jee</groupId>
231                         <artifactId>org.restlet.ext.servlet</artifactId>
232                         <version>2.1.1</version>
233                 </dependency>
234
235
236                 <dependency>
237                         <groupId>com.openpojo</groupId>
238                         <artifactId>openpojo</artifactId>
239                         <version>0.8.6</version>
240                 </dependency>
241
242                 <dependency>
243                         <groupId>com.google.code.gson</groupId>
244                         <artifactId>gson</artifactId>
245                         <scope>provided</scope>
246                 </dependency>
247
248
249                 <dependency>
250                         <groupId>org.json</groupId>
251                         <artifactId>json</artifactId>
252                         <scope>provided</scope>
253                 </dependency>
254
255                 <dependency>
256                         <groupId>com.fasterxml.jackson.core</groupId>
257                         <artifactId>jackson-databind</artifactId>
258                         <scope>provided</scope>
259                 </dependency>
260
261                 <dependency>
262                         <groupId>org.onap.portal.sdk</groupId>
263                         <artifactId>epsdk-fw</artifactId>
264                         <version>1.3.0 </version>
265                         <exclusions>
266                                 <exclusion>
267                                         <groupId>commons-logging</groupId>
268                                         <artifactId>commons-logging</artifactId>
269                                 </exclusion>
270                                 <exclusion>
271                                         <groupId>log4j</groupId>
272                                         <artifactId>log4j</artifactId>
273                                 </exclusion>
274                                 <exclusion>
275                                         <groupId>log4j</groupId>
276                                         <artifactId>apache-log4j-extras</artifactId>
277                                 </exclusion>
278                                 <exclusion>
279                                         <groupId>org.slf4j</groupId>
280                                         <artifactId>slf4j-log4j12</artifactId>
281                                 </exclusion>
282                         </exclusions>
283                 </dependency>
284
285                 <!-- Test dependencies -->
286
287                 <dependency>
288                         <groupId>org.mockito</groupId>
289                         <artifactId>mockito-all</artifactId>
290                         <version>1.10.19</version>
291                         <scope>test</scope>
292                 </dependency>
293
294                 <dependency>
295                         <groupId>org.powermock</groupId>
296                         <artifactId>powermock-module-junit4</artifactId>
297                         <version>1.6.2</version>
298                         <scope>test</scope>
299                 </dependency>
300                 <dependency>
301                         <groupId>org.powermock</groupId>
302                         <artifactId>powermock-api-mockito</artifactId>
303                         <version>1.6.2</version>
304                         <scope>test</scope>
305                 </dependency>
306                 <dependency>
307                         <groupId>org.powermock</groupId>
308                         <artifactId>powermock-module-javaagent</artifactId>
309                         <version>1.6.2</version>
310                         <scope>test</scope>
311                 </dependency>
312                 <dependency>
313                         <groupId>org.powermock</groupId>
314                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
315                         <version>1.6.2</version>
316                         <scope>test</scope>
317                 </dependency>
318
319                 <dependency>
320                         <groupId>org.hamcrest</groupId>
321                         <artifactId>hamcrest-library</artifactId>
322                         <scope>test</scope>
323                 </dependency>
324
325         </dependencies>
326
327         <build>
328
329                 <pluginManagement>
330                         <plugins>
331
332
333                                 <plugin>
334                                         <groupId>org.apache.maven.plugins</groupId>
335                                         <artifactId>maven-compiler-plugin</artifactId>
336                                         <configuration>
337                                                 <source>1.8</source>
338                                                 <target>1.8</target>
339                                         </configuration>
340                                 </plugin>
341
342                                 <plugin>
343                                         <groupId>org.apache.maven.plugins</groupId>
344                                         <artifactId>maven-resources-plugin</artifactId>
345                                         <version>2.7</version>
346                                         <executions>
347                                                 <execution>
348                                                         <id>copy-docker-file</id>
349                                                         <phase>package</phase>
350                                                         <goals>
351                                                                 <goal>copy-resources</goal>
352                                                         </goals>
353                                                         <configuration>
354                                                                 <outputDirectory>target</outputDirectory>
355                                                                 <overwrite>true</overwrite>
356                                                                 <resources>
357                                                                         <resource>
358                                                                                 <directory>${basedir}/src/main/docker</directory>
359                                                                                 <filtering>true</filtering>
360                                                                                 <includes>
361                                                                                         <include>**/*</include>
362                                                                                 </includes>
363                                                                         </resource>
364                                                                         <resource>
365                                                                                 <directory>${basedir}/src/main/scripts/</directory>
366                                                                         </resource>
367                                                                 </resources>
368                                                         </configuration>
369                                                 </execution>
370                                         </executions>
371                                 </plugin>
372
373                         </plugins>
374
375                 </pluginManagement>
376
377                 <plugins>
378                         <plugin>
379                                 <groupId>org.springframework.boot</groupId>
380                                 <artifactId>spring-boot-maven-plugin</artifactId>
381                                 <configuration>
382                                         <folders>
383                                                 <folder>
384                                                         ${CONFIG_HOME}/portal/
385                                                 </folder>
386                                         </folders>
387                                 </configuration>
388                         </plugin>
389
390                         <plugin>
391                                 <groupId>org.apache.maven.plugins</groupId>
392                                 <artifactId>maven-resources-plugin</artifactId>
393                                 <version>2.7</version>
394                                 <executions>
395                                         <execution>
396                                                 <id>copy-docker-file-to-target</id>
397                                                 <phase>package</phase>
398                                                 <goals>
399                                                         <goal>copy-resources</goal>
400                                                 </goals>
401                                                 <configuration>
402                                                         <outputDirectory>target</outputDirectory>
403                                                         <overwrite>true</overwrite>
404                                                         <resources>
405                                                                 <resource>
406                                                                         <directory>${basedir}/src/main/docker</directory>
407                                                                         <filtering>true</filtering>
408                                                                         <includes>
409                                                                                 <include>**/*</include>
410                                                                         </includes>
411                                                                 </resource>
412                                                         </resources>
413                                                 </configuration>
414                                         </execution>
415                                 </executions>
416                         </plugin>
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-scripts-to-target</id>
425                                                 <phase>package</phase>
426                                                 <goals>
427                                                         <goal>copy-resources</goal>
428                                                 </goals>
429                                                 <configuration>
430                                                         <outputDirectory>target/scripts</outputDirectory>
431                                                         <overwrite>true</overwrite>
432                                                         <resources>
433                                                                 <resource>
434                                                                         <directory>${basedir}/src/main/scripts</directory>
435                                                                         <filtering>true</filtering>
436                                                                         <includes>
437                                                                                 <include>**/*</include>
438                                                                         </includes>
439                                                                 </resource>
440                                                         </resources>
441                                                 </configuration>
442                                         </execution>
443                                 </executions>
444                         </plugin>
445
446                         <plugin>
447                                 <groupId>org.apache.maven.plugins</groupId>
448                                 <artifactId>maven-dependency-plugin</artifactId>
449                                 <version>3.0.0</version>
450                                 <executions>
451                                         <execution>
452                                                 <id>copy-war-to-target</id>
453                                                 <phase>install</phase>
454                                                 <goals>
455                                                         <goal>unpack</goal>
456                                                 </goals>
457                                                 <configuration>
458                                                         <artifactItems>
459                                                                 <artifactItem>
460                                                                         <groupId>${frontEndGroupdId}</groupId>
461                                                                         <artifactId>${frontEndArtifactId}</artifactId>
462                                                                         <version>${frontEndVersion}</version>
463                                                                         <type>war</type>
464                                                                         <outputDirectory>${basedir}/target/static/services/aai/webapp/</outputDirectory>
465                                                                 </artifactItem>
466                                                         </artifactItems>
467                                                 </configuration>
468                                         </execution>
469                                 </executions>
470                         </plugin>
471
472                         <plugin>
473                                 <groupId>org.jacoco</groupId>
474                                 <artifactId>jacoco-maven-plugin</artifactId>
475                                 <version>${version.jacoco.maven.plugin}</version>
476                                 <executions>
477                                         <execution>
478                                                 <id>prepare-agent</id>
479                                                 <goals>
480                                                         <goal>prepare-agent</goal>
481                                                 </goals>
482                                         </execution>
483                                         <execution>
484                                                 <id>report</id>
485                                                 <phase>package</phase>
486                                                 <goals>
487                                                         <goal>report</goal>
488                                                 </goals>
489                                         </execution>
490                                 </executions>
491                         </plugin>
492
493                         <plugin>
494                                 <groupId>org.codehaus.mojo</groupId>
495                                 <artifactId>cobertura-maven-plugin</artifactId>
496                                 <executions>
497                                         <execution>
498                                                 <phase />
499                                         </execution>
500                                 </executions>
501                         </plugin>
502
503                         <plugin>
504                                 <groupId>org.apache.maven.plugins</groupId>
505                                 <artifactId>maven-site-plugin</artifactId>
506                                 <configuration>
507                                         <reportPlugins>
508                                                 <plugin>
509                                                         <groupId>org.apache.maven.plugins</groupId>
510                                                         <artifactId>maven-checkstyle-plugin</artifactId>
511                                                         <version>2.17</version>
512                                                         <reportSets>
513                                                                 <reportSet>
514                                                                         <reports>
515                                                                                 <report>checkstyle</report>
516                                                                         </reports>
517                                                                 </reportSet>
518                                                         </reportSets>
519                                                 </plugin>
520                                         </reportPlugins>
521                                 </configuration>
522                         </plugin>
523
524                         <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId>
525                                 <version>2.7</version> <executions> <execution> <id>copy-docker-file</id>
526                                 <phase>package</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
527                                 <outputDirectory>target</outputDirectory> <overwrite>true</overwrite> <resources>
528                                 <resource> <directory>${basedir}/src/main/docker</directory> <filtering>true</filtering>
529                                 <includes> <include>**/*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/scripts/</directory>
530                                 </resource> </resources> </configuration> </execution> </executions> </plugin> -->
531                         <plugin>
532                                 <groupId>com.spotify</groupId>
533                                 <artifactId>docker-maven-plugin</artifactId>
534                                 <version>0.4.11</version>
535                                 <configuration>
536                                         <verbose>true</verbose>
537                                         <serverId>docker-hub</serverId>
538                                         <imageName>${docker.push.registry}/onap/${docker.image.name}</imageName>
539                                         <dockerDirectory>${docker.location}</dockerDirectory>
540                                         <imageTags>
541                                                 <imageTag>latest</imageTag>
542                                         </imageTags>
543                                         <forceTags>true</forceTags>
544                                 </configuration>
545                         </plugin>
546                         <!-- license plugin -->
547                         <!-- <plugin> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId>
548                                 <version>3.0</version> <configuration> <header>LICENSE</header> <includes>
549                                 <include>src/main/java/**</include> </includes> </configuration> <executions>
550                                 <execution> <goals> <goal>format</goal> </goals> <phase>process-sources</phase>
551                                 </execution> </executions> </plugin> -->
552                 </plugins>
553         </build>
554         <distributionManagement>
555                 <repository>
556                         <id>ecomp-releases</id>
557                         <name>ECOMP Release Repository</name>
558                         <url>${nexusproxy}/content/repositories/releases/</url>
559                 </repository>
560                 <snapshotRepository>
561                         <id>ecomp-snapshots</id>
562                         <name>ECOMP Snapshot Repository</name>
563                         <url>${nexusproxy}/content/repositories/snapshots/</url>
564                 </snapshotRepository>
565         </distributionManagement>
566
567 </project>