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