Merge "Updated springboot to version 1.5.15"
[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.15.RELEASE</version>
8         </parent>
9
10         <groupId>org.onap.aai.sparky-be</groupId>
11         <artifactId>sparkybe-onap-service</artifactId>
12         <version>1.3.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.3.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                 <version.aai.aai-schema-ingest>1.2.4</version.aai.aai-schema-ingest>
27                 <version.aai-schema>1.2.4</version.aai-schema>
28                 <sitePath>/content/sites/site/org/onap/aai/sparky-be/${project.artifactId}/${project.version}</sitePath>
29                 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
30         </properties>
31
32
33
34
35         <dependencyManagement>
36                 <dependencies>
37
38                         <!-- Camel BOM -->
39                         <dependency>
40                                 <groupId>org.apache.camel</groupId>
41                                 <artifactId>camel-spring-boot-dependencies</artifactId>
42                                 <version>${camel-spring-boot.version}</version>
43                                 <type>pom</type>
44                                 <scope>import</scope>
45                         </dependency>
46
47
48                 </dependencies>
49         </dependencyManagement>
50
51 <!--
52
53 some of the depedencies should probably have a scope of provided so they don't automatically become part of the final jar
54
55  -->
56
57         <dependencies>
58
59                 <!-- Spring dependencies -->
60                 <dependency>
61                         <groupId>org.springframework.boot</groupId>
62                         <artifactId>spring-boot-starter-web</artifactId>
63                 </dependency>
64
65                 <dependency>
66                         <groupId>org.springframework.boot</groupId>
67                         <artifactId>spring-boot-starter-actuator</artifactId>
68                 </dependency>
69
70                 <dependency>
71                         <groupId>org.apache.camel</groupId>
72                         <artifactId>camel-restlet</artifactId>
73                         <exclusions>
74                                 <exclusion>
75                                         <groupId>commons-logging</groupId>
76                                         <artifactId>commons-logging</artifactId>
77                                 </exclusion>
78                         </exclusions>
79                 </dependency>
80
81                 <dependency>
82                         <groupId>org.apache.camel</groupId>
83                         <artifactId>camel-servlet</artifactId>
84                         <exclusions>
85                                 <exclusion>
86                                         <groupId>commons-logging</groupId>
87                                         <artifactId>commons-logging</artifactId>
88                                 </exclusion>
89                         </exclusions>
90                 </dependency>
91
92                 <dependency>
93                         <groupId>org.springframework.boot</groupId>
94                         <artifactId>spring-boot-starter-logging</artifactId>
95                         <exclusions>
96                                 <exclusion>
97                                 <groupId>ch.qos.logback</groupId>
98                                 <artifactId>logback-classic</artifactId>
99                                 </exclusion>
100                                 <exclusion>
101                                 <groupId>org.slf4j</groupId>
102                                 <artifactId>log4j-over-slf4j</artifactId>
103                                 </exclusion>
104                         </exclusions>
105                 </dependency>
106
107
108                 <!-- Camel BOM -->
109                 <dependency>
110                         <groupId>org.apache.camel</groupId>
111                         <artifactId>camel-spring-boot-dependencies</artifactId>
112                         <version>${camel-spring-boot.version}</version>
113                         <type>pom</type>
114                         <scope>import</scope>
115                 </dependency>
116
117                 <!-- https://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-impl -->
118                 <!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId>
119                         </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId>
120                         </dependency> -->
121
122                 <!-- Camel -->
123                 <dependency>
124                         <groupId>org.apache.camel</groupId>
125                         <artifactId>camel-spring-boot-starter</artifactId>
126                 </dependency>
127
128                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-restlet -->
129                 <dependency>
130                         <groupId>org.apache.camel</groupId>
131                         <artifactId>camel-restlet</artifactId>
132                 </dependency>
133
134                 <dependency>
135                         <groupId>commons-io</groupId>
136                         <artifactId>commons-io</artifactId>
137                         </dependency>
138
139                 <!-- https://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util -->
140                 <dependency>
141                         <groupId>org.eclipse.jetty</groupId>
142                         <artifactId>jetty-util</artifactId>
143                         <scope>provided</scope>
144                 </dependency>
145
146                 <dependency>
147                         <groupId>org.apache.camel</groupId>
148                         <artifactId>camel-servlet-starter</artifactId>
149                 </dependency>
150
151                 <dependency>
152                         <groupId>org.springframework.boot</groupId>
153                         <artifactId>spring-boot-starter-actuator</artifactId>
154                 </dependency>
155
156                 <!-- https://mvnrepository.com/artifact/commons-cli/commons-cli -->
157                 <dependency>
158                         <groupId>commons-cli</groupId>
159                         <artifactId>commons-cli</artifactId>
160                         <version>1.2</version>
161                 </dependency>
162
163                 <!-- <dependency> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-jasper</artifactId>
164                         </dependency> -->
165
166
167                 <!-- https://mvnrepository.com/artifact/org.apache.camel/camel-http-common -->
168                 <!-- <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-http</artifactId>
169                         <version>2.15.5</version> </dependency> <dependency> <groupId>abc.def</groupId>
170                         <artifactId>att-camel-dme2-servlet</artifactId> <version>2.15.5</version>
171                         <scope>system</scope> <systemPath>x:/222/att-camel-dme2-servlet-2.15.5.jar</systemPath>
172                         </dependency> <dependency> <groupId>abc.def</groupId> <artifactId>att-camel-static-content</artifactId>
173                         <version>2.11.2.1</version> <scope>system</scope> <systemPath>x:/222/att-camel-static-content-2.11.2.1.jar</systemPath>
174                         </dependency> -->
175
176                 <!-- Utility dependencies -->
177
178                 <dependency>
179                         <groupId>com.google.guava</groupId>
180                         <artifactId>guava</artifactId>
181                         <version>19.0</version>
182                 </dependency>
183
184
185                 <dependency>
186                         <groupId>org.onap.aai.logging-service</groupId>
187                         <artifactId>common-logging</artifactId>
188                         <version>1.2.2</version>
189                 </dependency>
190
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>${version.aai-schema}</version>
220                 </dependency>
221
222         <dependency>
223                     <groupId>org.onap.aai.aai-common</groupId>
224                     <artifactId>aai-schema-ingest</artifactId>
225                     <version>${version.aai.aai-schema-ingest}</version>
226                     <exclusions>
227                                 <exclusion>
228                                 <groupId>org.slf4j</groupId>
229                                 <artifactId>slf4j-log4j12</artifactId>
230                                 </exclusion>
231                     </exclusions>
232             </dependency>
233                                 
234                 <dependency>
235                         <groupId>org.onap.aai</groupId>
236                         <artifactId>rest-client</artifactId>
237                         <version>1.3.0-SNAPSHOT</version>
238                 </dependency>
239
240                 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
241                 <dependency>
242                         <groupId>org.restlet.jee</groupId>
243                         <artifactId>org.restlet.ext.servlet</artifactId>
244                         <version>2.1.1</version>
245                 </dependency>
246
247
248                 <dependency>
249                         <groupId>com.openpojo</groupId>
250                         <artifactId>openpojo</artifactId>
251                         <version>0.8.6</version>
252                 </dependency>
253
254                 <dependency>
255                         <groupId>com.google.code.gson</groupId>
256                         <artifactId>gson</artifactId>
257                         <scope>provided</scope>
258                 </dependency>
259
260
261                 <dependency>
262                         <groupId>org.json</groupId>
263                         <artifactId>json</artifactId>
264                         <scope>provided</scope>
265                 </dependency>
266
267                 <dependency>
268                         <groupId>com.fasterxml.jackson.core</groupId>
269                         <artifactId>jackson-databind</artifactId>
270                         <scope>provided</scope>
271                 </dependency>
272
273                 <dependency>
274                         <groupId>org.onap.portal.sdk</groupId>
275                         <artifactId>epsdk-fw</artifactId>
276                         <version>1.3.0</version>
277                         <exclusions>
278                                 <exclusion>
279                                         <groupId>commons-logging</groupId>
280                                         <artifactId>commons-logging</artifactId>
281                                 </exclusion>
282                                 <exclusion>
283                                         <groupId>log4j</groupId>
284                                         <artifactId>log4j</artifactId>
285                                 </exclusion>
286                                 <exclusion>
287                                         <groupId>log4j</groupId>
288                                         <artifactId>apache-log4j-extras</artifactId>
289                                 </exclusion>
290                                 <exclusion>
291                                         <groupId>org.slf4j</groupId>
292                                         <artifactId>slf4j-log4j12</artifactId>
293                                 </exclusion>
294                         </exclusions>
295                 </dependency>
296
297                 <!-- Test dependencies -->
298
299                 <dependency>
300                         <groupId>org.mockito</groupId>
301                         <artifactId>mockito-all</artifactId>
302                         <version>1.10.19</version>
303                         <scope>test</scope>
304                 </dependency>
305
306                 <dependency>
307                         <groupId>org.powermock</groupId>
308                         <artifactId>powermock-module-junit4</artifactId>
309                         <version>1.6.2</version>
310                         <scope>test</scope>
311                 </dependency>
312                 <dependency>
313                         <groupId>org.powermock</groupId>
314                         <artifactId>powermock-api-mockito</artifactId>
315                         <version>1.6.2</version>
316                         <scope>test</scope>
317                 </dependency>
318                 <dependency>
319                         <groupId>org.powermock</groupId>
320                         <artifactId>powermock-module-javaagent</artifactId>
321                         <version>1.6.2</version>
322                         <scope>test</scope>
323                 </dependency>
324                 <dependency>
325                         <groupId>org.powermock</groupId>
326                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
327                         <version>1.6.2</version>
328                         <scope>test</scope>
329                 </dependency>
330         <dependency>
331                     <groupId>javax.inject</groupId>
332                     <artifactId>javax.inject</artifactId>
333                     <version>1</version>
334                         <scope>test</scope>
335                 </dependency>           
336
337                 <dependency>
338                         <groupId>org.hamcrest</groupId>
339                         <artifactId>hamcrest-library</artifactId>
340                         <scope>test</scope>
341                 </dependency>
342
343         </dependencies>
344
345         <build>
346
347                 <pluginManagement>
348                         <plugins>
349
350
351                                 <plugin>
352                                         <groupId>org.apache.maven.plugins</groupId>
353                                         <artifactId>maven-compiler-plugin</artifactId>
354                                         <configuration>
355                                                 <source>1.8</source>
356                                                 <target>1.8</target>
357                                         </configuration>
358                                 </plugin>
359
360 <!--                            <plugin>
361                                         <groupId>org.apache.maven.plugins</groupId>
362                                         <artifactId>maven-resources-plugin</artifactId>
363                                         <version>2.7</version>
364                                         <executions>
365                                                 <execution>
366                                                         <id>copy-docker-file</id>
367                                                         <phase>package</phase>
368                                                         <goals>
369                                                                 <goal>copy-resources</goal>
370                                                         </goals>
371                                                         <configuration>
372                                                                 <outputDirectory>target</outputDirectory>
373                                                                 <overwrite>true</overwrite>
374                                                                 <resources>
375                                                                         <resource>
376                                                                                 <directory>${basedir}/src/main/docker</directory>
377                                                                                 <filtering>true</filtering>
378                                                                                 <includes>
379                                                                                         <include>**/*</include>
380                                                                                 </includes>
381                                                                         </resource>
382                                                                         <resource>
383                                                                                 <directory>${basedir}/src/main/scripts/</directory>
384                                                                         </resource>
385                                                                 </resources>
386                                                         </configuration>
387                                                 </execution>
388                                         </executions>
389                                 </plugin> -->
390
391                         </plugins>
392
393                 </pluginManagement>
394
395                 <plugins>
396 <!--                    <plugin>
397                                 <groupId>org.springframework.boot</groupId>
398                                 <artifactId>spring-boot-maven-plugin</artifactId>
399                         </plugin>
400  -->
401
402         <!--            <plugin>
403                                 <groupId>org.apache.maven.plugins</groupId>
404                                 <artifactId>maven-resources-plugin</artifactId>
405                                 <version>2.7</version>
406                                 <executions>
407                                         <execution>
408                                                 <id>copy-docker-file</id>
409                                                 <phase>package</phase>
410                                                 <goals>
411                                                         <goal>copy-resources</goal>
412                                                 </goals>
413                                                 <configuration>
414                                                         <outputDirectory>target</outputDirectory>
415                                                         <overwrite>true</overwrite>
416                                                         <resources>
417                                                                 <resource>
418                                                                         <directory>${basedir}/src/main/docker</directory>
419                                                                         <filtering>true</filtering>
420                                                                         <includes>
421                                                                                 <include>**/*</include>
422                                                                         </includes>
423                                                                 </resource>
424                                                                 <resource>
425                                                                         <directory>${basedir}/src/main/bin/</directory>
426                                                                 </resource>
427                                                         </resources>
428                                                 </configuration>
429                                         </execution>
430                                 </executions>
431                         </plugin> -->
432
433 <!--                    <plugin>
434                                 <groupId>org.apache.maven.plugins</groupId>
435                                 <artifactId>maven-dependency-plugin</artifactId>
436                                 <version>3.0.0</version>
437                                 <executions>
438                                         <execution>
439                                                 <id>copy-installed</id>
440                                                 <phase>install</phase>
441                                                 <goals>
442                                                         <goal>copy</goal>
443                                                 </goals>
444                                                 <configuration>
445                                                         <artifactItems>
446                                                                 <artifactItem>
447                                                                         <groupId>${frontEndGroupdId}</groupId>
448                                                                         <artifactId>${frontEndArtifactId}</artifactId>
449                                                                         <version>${frontEndVersion}</version>
450                                                                         <type>war</type>
451                                                                         <outputDirectory>${basedir}/target/</outputDirectory>
452                                                                         <destFileName>aai.war</destFileName>
453                                                                 </artifactItem>
454                                                         </artifactItems>
455                                                 </configuration>
456                                         </execution>
457                                 </executions>
458                         </plugin>
459  -->
460                         <plugin>
461                                 <groupId>org.jacoco</groupId>
462                                 <artifactId>jacoco-maven-plugin</artifactId>
463                                 <version>${version.jacoco.maven.plugin}</version>
464                                 <executions>
465                                         <execution>
466                                                 <id>prepare-agent</id>
467                                                 <goals>
468                                                         <goal>prepare-agent</goal>
469                                                 </goals>
470                                         </execution>
471                                         <execution>
472                                                 <id>report</id>
473                                                 <phase>package</phase>
474                                                 <goals>
475                                                         <goal>report</goal>
476                                                 </goals>
477                                         </execution>
478                                 </executions>
479                         </plugin>
480
481 <!--                    <plugin>
482                                 <groupId>org.codehaus.mojo</groupId>
483                                 <artifactId>cobertura-maven-plugin</artifactId>
484                                 <executions>
485                                         <execution>
486                                                 <phase />
487                                         </execution>
488                                 </executions>
489                         </plugin>
490  -->
491                         <plugin>
492                                 <groupId>org.apache.maven.plugins</groupId>
493                                 <artifactId>maven-site-plugin</artifactId>
494                                 <configuration>
495                                         <reportPlugins>
496                                                 <plugin>
497                                                         <groupId>org.apache.maven.plugins</groupId>
498                                                         <artifactId>maven-checkstyle-plugin</artifactId>
499                                                         <version>2.17</version>
500                                                         <reportSets>
501                                                                 <reportSet>
502                                                                         <reports>
503                                                                                 <report>checkstyle</report>
504                                                                         </reports>
505                                                                 </reportSet>
506                                                         </reportSets>
507                                                 </plugin>
508                                         </reportPlugins>
509                                 </configuration>
510                         </plugin>
511
512                 <!--    <plugin>
513                                 <groupId>org.apache.maven.plugins</groupId>
514                                 <artifactId>maven-resources-plugin</artifactId>
515                                 <version>2.7</version>
516                                 <executions>
517                                         <execution>
518                                                 <id>copy-docker-file</id>
519                                                 <phase>package</phase>
520                                                 <goals>
521                                                         <goal>copy-resources</goal>
522                                                 </goals>
523                                                 <configuration>
524                                                         <outputDirectory>target</outputDirectory>
525                                                         <overwrite>true</overwrite>
526                                                         <resources>
527                                                                 <resource>
528                                                                         <directory>${basedir}/src/main/docker</directory>
529                                                                         <filtering>true</filtering>
530                                                                         <includes>
531                                                                                 <include>**/*</include>
532                                                                         </includes>
533                                                                 </resource>
534                                                                 <resource>
535                                                                         <directory>${basedir}/src/main/scripts/</directory>
536                                                                 </resource>
537                                                         </resources>
538                                                 </configuration>
539                                         </execution>
540                                 </executions>
541                         </plugin> -->
542
543 <!--                    <plugin>
544                                 <groupId>com.spotify</groupId>
545                                 <artifactId>docker-maven-plugin</artifactId>
546                                 <version>0.4.11</version>
547                                 <configuration>
548                                         <verbose>true</verbose>
549                                         <serverId>docker-hub</serverId>
550                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
551                                         <dockerDirectory>${docker.location}</dockerDirectory>
552                                         <imageTags>
553                                                 <imageTag>latest</imageTag>
554                                         </imageTags>
555                                         <forceTags>true</forceTags>
556                                 </configuration>
557                         </plugin> -->
558                         <!-- license plugin -->
559 <!--                    <plugin>
560                                 <groupId>com.mycila</groupId>
561                                 <artifactId>license-maven-plugin</artifactId>
562                                 <version>3.0</version>
563                                 <configuration>
564                                         <header>LICENSE</header>
565                                         <includes>
566                                                 <include>src/main/java/**</include>
567                                         </includes>
568                                 </configuration>
569                                 <executions>
570                                         <execution>
571                                                 <goals>
572                                                         <goal>format</goal>
573                                                 </goals>
574                                                 <phase>process-sources</phase>
575                                         </execution>
576                                 </executions>
577                         </plugin>
578  -->
579 <plugin>
580             <groupId>org.apache.maven.plugins</groupId>
581                     <artifactId>maven-deploy-plugin</artifactId>
582                     <version>2.8.2</version>
583                     <executions>
584                         <execution>
585                             <id>default-deploy</id>
586                             <phase>none</phase>
587                         </execution>
588                     </executions>
589                 </plugin>
590                 <plugin>
591                     <groupId>org.sonatype.plugins</groupId>
592                     <artifactId>nexus-staging-maven-plugin</artifactId>
593                     <version>1.6.7</version>
594                     <extensions>true</extensions>
595                     <configuration>
596                         <nexusUrl>${onap.nexus.url}</nexusUrl>
597                         <stagingProfileId>176c31dfe190a</stagingProfileId>
598                         <serverId>ecomp-staging</serverId>
599                     </configuration>
600                 </plugin>
601               </plugins>
602 </build>
603
604         
605     <distributionManagement>
606        <repository>
607           <id>ecomp-releases</id>
608           <name>ECOMP Release Repository</name>
609           <url>${onap.nexus.url}/content/repositories/releases/</url>
610        </repository>
611        <snapshotRepository>
612           <id>ecomp-snapshots</id>
613           <name>ECOMP Snapshot Repository</name>
614           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
615       </snapshotRepository>
616       <site>
617         <id>ecomp-site</id>
618         <url>dav:${onap.nexus.url}${sitePath}</url>
619       </site>
620    </distributionManagement>
621
622     <repositories>
623         <repository>
624             <id>central</id>
625             <name>Maven 2 repository 2</name>
626             <url>http://repo2.maven.org/maven2/</url>
627         </repository>
628         <repository>
629             <id>ecomp-releases</id>
630             <name>ECOMP Release Repository</name>
631             <url>${onap.nexus.url}/content/repositories/releases/</url>
632         </repository>
633         <repository>
634             <id>ecomp-staging</id>
635             <name>ECOMP Staging Repository</name>
636             <url>${onap.nexus.url}/content/repositories/staging/</url>
637         </repository>
638         <repository>
639             <id>ecomp-snapshots</id>
640             <name>ECOMP Snapshot Repository</name>
641             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
642         </repository>
643     </repositories>
644
645
646
647 </project>