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