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