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