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