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