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