92c312603601d1f48414fb266a09916aaab40a62
[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                 
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                         </plugin>
382                         <plugin>
383                                 <groupId>org.apache.maven.plugins</groupId>
384                                 <artifactId>maven-resources-plugin</artifactId>
385                                 <executions>
386                                         <execution>
387                                                 <id>copy-docker-file</id>
388                                                 <phase>package</phase>
389                                                 <goals>
390                                                         <goal>copy-resources</goal>
391                                                 </goals>
392                                                 <configuration>
393                                                         <outputDirectory>target</outputDirectory>
394                                                         <overwrite>true</overwrite>
395                                                         <resources>
396                                                                 <resource>
397                                                                         <directory>${basedir}/src/main/docker</directory>
398                                                                         <filtering>true</filtering>
399                                                                         <includes>
400                                                                                 <include>**/*</include>
401                                                                         </includes>
402                                                                 </resource>
403                                                                 <resource>
404                                                                         <directory>${basedir}/src/main/bin/</directory>
405                                                                 </resource>
406                                                         </resources>
407                                                 </configuration>
408                                         </execution>
409                                 </executions>
410                         </plugin>
411
412                         <plugin>
413                                 <groupId>org.apache.maven.plugins</groupId>
414                                 <artifactId>maven-dependency-plugin</artifactId>
415                                 <executions>
416                                         <execution>
417                                                 <id>copy-installed</id>
418                                                 <phase>install</phase>
419                                                 <goals>
420                                                         <goal>copy</goal>
421                                                 </goals>
422                                                 <configuration>
423                                                         <artifactItems>
424                                                                 <artifactItem>
425                                                                         <groupId>${frontEndGroupdId}</groupId>
426                                                                         <artifactId>${frontEndArtifactId}</artifactId>
427                                                                         <version>${frontEndVersion}</version>
428                                                                         <type>war</type>
429                                                                         <outputDirectory>${basedir}/target/</outputDirectory>
430                                                                         <destFileName>aai.war</destFileName>
431                                                                 </artifactItem>
432                                                         </artifactItems>
433                                                 </configuration>
434                                         </execution>
435                                 </executions>
436                         </plugin>
437
438                         <plugin>
439                                 <groupId>org.jacoco</groupId>
440                                 <artifactId>jacoco-maven-plugin</artifactId>
441                                 <version>${version.jacoco.maven.plugin}</version>
442                                 <executions>
443                                         <execution>
444                                                 <id>prepare-agent</id>
445                                                 <goals>
446                                                         <goal>prepare-agent</goal>
447                                                 </goals>
448                                         </execution>
449                                         <execution>
450                                                 <id>report</id>
451                                                 <phase>package</phase>
452                                                 <goals>
453                                                         <goal>report</goal>
454                                                 </goals>
455                                         </execution>
456                                 </executions>
457                         </plugin>
458
459                         <plugin>
460                                 <groupId>org.codehaus.mojo</groupId>
461                                 <artifactId>cobertura-maven-plugin</artifactId>
462                                 <executions>
463                                         <execution>
464                                                 <phase />
465                                         </execution>
466                                 </executions>
467                         </plugin>
468
469                         <plugin>
470                                 <groupId>org.apache.maven.plugins</groupId>
471                                 <artifactId>maven-site-plugin</artifactId>
472                                 <configuration>
473                                         <reportPlugins>
474                                                 <plugin>
475                                                         <groupId>org.apache.maven.plugins</groupId>
476                                                         <artifactId>maven-checkstyle-plugin</artifactId>
477                                                         <version>2.17</version>
478                                                         <reportSets>
479                                                                 <reportSet>
480                                                                         <reports>
481                                                                                 <report>checkstyle</report>
482                                                                         </reports>
483                                                                 </reportSet>
484                                                         </reportSets>
485                                                 </plugin>
486                                         </reportPlugins>
487                                 </configuration>
488                         </plugin>
489                         
490         <!--            <plugin>
491                                 <groupId>org.apache.maven.plugins</groupId>
492                                 <artifactId>maven-resources-plugin</artifactId>
493                                 <version>2.7</version>
494                                 <executions>
495                                         <execution>
496                                                 <id>copy-docker-file</id>
497                                                 <phase>package</phase>
498                                                 <goals>
499                                                         <goal>copy-resources</goal>
500                                                 </goals>
501                                                 <configuration>
502                                                         <outputDirectory>target</outputDirectory>
503                                                         <overwrite>true</overwrite>
504                                                         <resources>
505                                                                 <resource>
506                                                                         <directory>${basedir}/src/main/docker</directory>
507                                                                         <filtering>true</filtering>
508                                                                         <includes>
509                                                                                 <include>**/*</include>
510                                                                         </includes>
511                                                                 </resource>
512                                                                 <resource>
513                                                                         <directory>${basedir}/src/main/scripts/</directory>
514                                                                 </resource>
515                                                         </resources>
516                                                 </configuration>
517                                         </execution>
518                                 </executions>
519                         </plugin>
520                          -->
521                         <plugin>
522                                 <groupId>com.spotify</groupId>
523                                 <artifactId>docker-maven-plugin</artifactId>
524                                 <version>0.4.11</version>
525                                 <configuration>
526                                         <verbose>true</verbose>
527                                         <serverId>docker-hub</serverId>
528                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
529                                         <dockerDirectory>${docker.location}</dockerDirectory>
530                                         <imageTags>
531                                                 <imageTag>latest</imageTag>
532                                         </imageTags>
533                                         <forceTags>true</forceTags>
534                                 </configuration>
535                         </plugin>
536                         <!-- license plugin -->
537 <!--                    <plugin>
538                                 <groupId>com.mycila</groupId>
539                                 <artifactId>license-maven-plugin</artifactId>
540                                 <version>3.0</version>
541                                 <configuration>
542                                         <header>LICENSE</header>
543                                         <includes>
544                                                 <include>src/main/java/**</include>
545                                         </includes>
546                                 </configuration>
547                                 <executions>
548                                         <execution>
549                                                 <goals>
550                                                         <goal>format</goal>
551                                                 </goals>
552                                                 <phase>process-sources</phase>
553                                         </execution>
554                                 </executions>
555                         </plugin>
556  -->
557                 </plugins>
558         </build>
559                 <distributionManagement>
560         <repository>
561             <id>ecomp-releases</id>
562             <name>ECOMP Release Repository</name>
563             <url>${nexusproxy}/content/repositories/releases/</url>
564         </repository>
565         <snapshotRepository>
566             <id>ecomp-snapshots</id>
567             <name>ECOMP Snapshot Repository</name>
568             <url>${nexusproxy}/content/repositories/snapshots/</url>
569         </snapshotRepository>
570     </distributionManagement>
571         
572 </project>
573
574
575