Fixing issues found by nexus scan
[aai/sparky-be.git] / sparkybe-onap-service / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2   <modelVersion>4.0.0</modelVersion>
3
4         <parent>
5                 <groupId>org.springframework.boot</groupId>
6                 <artifactId>spring-boot-starter-parent</artifactId>
7                 <version>1.5.15.RELEASE</version>
8         </parent>
9
10         <groupId>org.onap.aai.sparky-be</groupId>
11         <artifactId>sparkybe-onap-service</artifactId>
12         <version>1.3.0-SNAPSHOT</version>
13         <packaging>jar</packaging>
14
15         <properties>
16                 <java.version>1.8</java.version>
17                 <version.jacoco.maven.plugin>0.7.9</version.jacoco.maven.plugin>
18                 <frontEndGroupdId>org.onap.aai</frontEndGroupdId>
19                 <frontEndArtifactId>sparky-fe</frontEndArtifactId>
20                 <frontEndVersion>1.3.0-SNAPSHOT</frontEndVersion>
21                 <serverPort>9517</serverPort>
22                 <sslport>8000</sslport>
23                 <nexusproxy>https://nexus.onap.org</nexusproxy>
24                 <camel-spring-boot.version>2.22.0</camel-spring-boot.version>
25                 <config-home>${basedir}/</config-home>
26                 <version.aai.aai-schema-ingest>1.3.0-SNAPSHOT</version.aai.aai-schema-ingest>
27                 <version.aai-schema>1.3.0-SNAPSHOT</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>19.0</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>dom4j</groupId>
198                         <artifactId>dom4j</artifactId>
199                         <scope>provided</scope>
200                 </dependency>
201
202                 <dependency>
203                         <groupId>org.eclipse.persistence</groupId>
204                         <artifactId>eclipselink</artifactId>
205                         <version>2.6.2</version>
206                 </dependency>
207
208                 <dependency>
209                         <groupId>org.slf4j</groupId>
210                         <artifactId>slf4j-api</artifactId>
211                         <scope>provided</scope>
212                 </dependency>
213
214                 <dependency>
215                         <groupId>com.fasterxml.jackson.core</groupId>
216                         <artifactId>jackson-core</artifactId>
217                         <scope>provided</scope>
218                 </dependency>
219
220                 <dependency>
221                         <groupId>org.onap.aai.aai-common</groupId>
222                         <artifactId>aai-schema</artifactId>
223                         <version>${version.aai-schema}</version>
224                 </dependency>
225
226         <dependency>
227                     <groupId>org.onap.aai.aai-common</groupId>
228                     <artifactId>aai-schema-ingest</artifactId>
229                     <version>${version.aai.aai-schema-ingest}</version>
230                     <exclusions>
231                                 <exclusion>
232                                 <groupId>org.slf4j</groupId>
233                                 <artifactId>slf4j-log4j12</artifactId>
234                                 </exclusion>
235                     </exclusions>
236             </dependency>
237                                 
238                 <dependency>
239                         <groupId>org.onap.aai</groupId>
240                         <artifactId>rest-client</artifactId>
241                         <version>1.3.0-SNAPSHOT</version>
242                 </dependency>
243
244                 <!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet.ext.servlet -->
245                 <dependency>
246                         <groupId>org.restlet.jee</groupId>
247                         <artifactId>org.restlet.ext.servlet</artifactId>
248                         <version>2.1.1</version>
249                 </dependency>
250
251
252                 <dependency>
253                         <groupId>com.openpojo</groupId>
254                         <artifactId>openpojo</artifactId>
255                         <version>0.8.6</version>
256                 </dependency>
257
258                 <dependency>
259                         <groupId>com.google.code.gson</groupId>
260                         <artifactId>gson</artifactId>
261                         <scope>provided</scope>
262                 </dependency>
263
264
265                 <dependency>
266                         <groupId>org.json</groupId>
267                         <artifactId>json</artifactId>
268                         <scope>provided</scope>
269                 </dependency>
270
271                 <dependency>
272                         <groupId>com.fasterxml.jackson.core</groupId>
273                         <artifactId>jackson-databind</artifactId>
274                         <scope>provided</scope>
275                 </dependency>
276
277                 <dependency>
278                         <groupId>org.onap.portal.sdk</groupId>
279                         <artifactId>epsdk-fw</artifactId>
280                         <version>1.3.0</version>
281                         <exclusions>
282                                 <exclusion>
283                                         <groupId>commons-logging</groupId>
284                                         <artifactId>commons-logging</artifactId>
285                                 </exclusion>
286                                 <exclusion>
287                                         <groupId>log4j</groupId>
288                                         <artifactId>log4j</artifactId>
289                                 </exclusion>
290                                 <exclusion>
291                                         <groupId>log4j</groupId>
292                                         <artifactId>apache-log4j-extras</artifactId>
293                                 </exclusion>
294                                 <exclusion>
295                                         <groupId>org.slf4j</groupId>
296                                         <artifactId>slf4j-log4j12</artifactId>
297                                 </exclusion>
298                         </exclusions>
299                 </dependency>
300
301                 <!-- Test dependencies -->
302
303                 <dependency>
304                         <groupId>org.mockito</groupId>
305                         <artifactId>mockito-all</artifactId>
306                         <version>1.10.19</version>
307                         <scope>test</scope>
308                 </dependency>
309
310                 <dependency>
311                         <groupId>org.powermock</groupId>
312                         <artifactId>powermock-module-junit4</artifactId>
313                         <version>1.6.2</version>
314                         <scope>test</scope>
315                 </dependency>
316                 <dependency>
317                         <groupId>org.powermock</groupId>
318                         <artifactId>powermock-api-mockito</artifactId>
319                         <version>1.6.2</version>
320                         <scope>test</scope>
321                 </dependency>
322                 <dependency>
323                         <groupId>org.powermock</groupId>
324                         <artifactId>powermock-module-javaagent</artifactId>
325                         <version>1.6.2</version>
326                         <scope>test</scope>
327                 </dependency>
328                 <dependency>
329                         <groupId>org.powermock</groupId>
330                         <artifactId>powermock-module-junit4-rule-agent</artifactId>
331                         <version>1.6.2</version>
332                         <scope>test</scope>
333                 </dependency>
334         <dependency>
335                     <groupId>javax.inject</groupId>
336                     <artifactId>javax.inject</artifactId>
337                     <version>1</version>
338                         <scope>test</scope>
339                 </dependency>           
340
341                 <dependency>
342                         <groupId>org.hamcrest</groupId>
343                         <artifactId>hamcrest-library</artifactId>
344                         <scope>test</scope>
345                 </dependency>
346
347         </dependencies>
348
349         <build>
350
351                 <pluginManagement>
352                         <plugins>
353
354
355                                 <plugin>
356                                         <groupId>org.apache.maven.plugins</groupId>
357                                         <artifactId>maven-compiler-plugin</artifactId>
358                                         <configuration>
359                                                 <source>1.8</source>
360                                                 <target>1.8</target>
361                                         </configuration>
362                                 </plugin>
363
364 <!--                            <plugin>
365                                         <groupId>org.apache.maven.plugins</groupId>
366                                         <artifactId>maven-resources-plugin</artifactId>
367                                         <version>2.7</version>
368                                         <executions>
369                                                 <execution>
370                                                         <id>copy-docker-file</id>
371                                                         <phase>package</phase>
372                                                         <goals>
373                                                                 <goal>copy-resources</goal>
374                                                         </goals>
375                                                         <configuration>
376                                                                 <outputDirectory>target</outputDirectory>
377                                                                 <overwrite>true</overwrite>
378                                                                 <resources>
379                                                                         <resource>
380                                                                                 <directory>${basedir}/src/main/docker</directory>
381                                                                                 <filtering>true</filtering>
382                                                                                 <includes>
383                                                                                         <include>**/*</include>
384                                                                                 </includes>
385                                                                         </resource>
386                                                                         <resource>
387                                                                                 <directory>${basedir}/src/main/scripts/</directory>
388                                                                         </resource>
389                                                                 </resources>
390                                                         </configuration>
391                                                 </execution>
392                                         </executions>
393                                 </plugin> -->
394
395                         </plugins>
396
397                 </pluginManagement>
398
399                 <plugins>
400 <!--                    <plugin>
401                                 <groupId>org.springframework.boot</groupId>
402                                 <artifactId>spring-boot-maven-plugin</artifactId>
403                         </plugin>
404  -->
405
406         <!--            <plugin>
407                                 <groupId>org.apache.maven.plugins</groupId>
408                                 <artifactId>maven-resources-plugin</artifactId>
409                                 <version>2.7</version>
410                                 <executions>
411                                         <execution>
412                                                 <id>copy-docker-file</id>
413                                                 <phase>package</phase>
414                                                 <goals>
415                                                         <goal>copy-resources</goal>
416                                                 </goals>
417                                                 <configuration>
418                                                         <outputDirectory>target</outputDirectory>
419                                                         <overwrite>true</overwrite>
420                                                         <resources>
421                                                                 <resource>
422                                                                         <directory>${basedir}/src/main/docker</directory>
423                                                                         <filtering>true</filtering>
424                                                                         <includes>
425                                                                                 <include>**/*</include>
426                                                                         </includes>
427                                                                 </resource>
428                                                                 <resource>
429                                                                         <directory>${basedir}/src/main/bin/</directory>
430                                                                 </resource>
431                                                         </resources>
432                                                 </configuration>
433                                         </execution>
434                                 </executions>
435                         </plugin> -->
436
437 <!--                    <plugin>
438                                 <groupId>org.apache.maven.plugins</groupId>
439                                 <artifactId>maven-dependency-plugin</artifactId>
440                                 <version>3.0.0</version>
441                                 <executions>
442                                         <execution>
443                                                 <id>copy-installed</id>
444                                                 <phase>install</phase>
445                                                 <goals>
446                                                         <goal>copy</goal>
447                                                 </goals>
448                                                 <configuration>
449                                                         <artifactItems>
450                                                                 <artifactItem>
451                                                                         <groupId>${frontEndGroupdId}</groupId>
452                                                                         <artifactId>${frontEndArtifactId}</artifactId>
453                                                                         <version>${frontEndVersion}</version>
454                                                                         <type>war</type>
455                                                                         <outputDirectory>${basedir}/target/</outputDirectory>
456                                                                         <destFileName>aai.war</destFileName>
457                                                                 </artifactItem>
458                                                         </artifactItems>
459                                                 </configuration>
460                                         </execution>
461                                 </executions>
462                         </plugin>
463  -->
464                         <plugin>
465                                 <groupId>org.jacoco</groupId>
466                                 <artifactId>jacoco-maven-plugin</artifactId>
467                                 <version>${version.jacoco.maven.plugin}</version>
468                                 <executions>
469                                         <execution>
470                                                 <id>prepare-agent</id>
471                                                 <goals>
472                                                         <goal>prepare-agent</goal>
473                                                 </goals>
474                                         </execution>
475                                         <execution>
476                                                 <id>report</id>
477                                                 <phase>package</phase>
478                                                 <goals>
479                                                         <goal>report</goal>
480                                                 </goals>
481                                         </execution>
482                                 </executions>
483                         </plugin>
484
485 <!--                    <plugin>
486                                 <groupId>org.codehaus.mojo</groupId>
487                                 <artifactId>cobertura-maven-plugin</artifactId>
488                                 <executions>
489                                         <execution>
490                                                 <phase />
491                                         </execution>
492                                 </executions>
493                         </plugin>
494  -->
495                         <plugin>
496                                 <groupId>org.apache.maven.plugins</groupId>
497                                 <artifactId>maven-site-plugin</artifactId>
498                                 <configuration>
499                                         <reportPlugins>
500                                                 <plugin>
501                                                         <groupId>org.apache.maven.plugins</groupId>
502                                                         <artifactId>maven-checkstyle-plugin</artifactId>
503                                                         <version>2.17</version>
504                                                         <reportSets>
505                                                                 <reportSet>
506                                                                         <reports>
507                                                                                 <report>checkstyle</report>
508                                                                         </reports>
509                                                                 </reportSet>
510                                                         </reportSets>
511                                                 </plugin>
512                                         </reportPlugins>
513                                 </configuration>
514                         </plugin>
515
516                 <!--    <plugin>
517                                 <groupId>org.apache.maven.plugins</groupId>
518                                 <artifactId>maven-resources-plugin</artifactId>
519                                 <version>2.7</version>
520                                 <executions>
521                                         <execution>
522                                                 <id>copy-docker-file</id>
523                                                 <phase>package</phase>
524                                                 <goals>
525                                                         <goal>copy-resources</goal>
526                                                 </goals>
527                                                 <configuration>
528                                                         <outputDirectory>target</outputDirectory>
529                                                         <overwrite>true</overwrite>
530                                                         <resources>
531                                                                 <resource>
532                                                                         <directory>${basedir}/src/main/docker</directory>
533                                                                         <filtering>true</filtering>
534                                                                         <includes>
535                                                                                 <include>**/*</include>
536                                                                         </includes>
537                                                                 </resource>
538                                                                 <resource>
539                                                                         <directory>${basedir}/src/main/scripts/</directory>
540                                                                 </resource>
541                                                         </resources>
542                                                 </configuration>
543                                         </execution>
544                                 </executions>
545                         </plugin> -->
546
547 <!--                    <plugin>
548                                 <groupId>com.spotify</groupId>
549                                 <artifactId>docker-maven-plugin</artifactId>
550                                 <version>0.4.11</version>
551                                 <configuration>
552                                         <verbose>true</verbose>
553                                         <serverId>docker-hub</serverId>
554                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
555                                         <dockerDirectory>${docker.location}</dockerDirectory>
556                                         <imageTags>
557                                                 <imageTag>latest</imageTag>
558                                         </imageTags>
559                                         <forceTags>true</forceTags>
560                                 </configuration>
561                         </plugin> -->
562                         <!-- license plugin -->
563 <!--                    <plugin>
564                                 <groupId>com.mycila</groupId>
565                                 <artifactId>license-maven-plugin</artifactId>
566                                 <version>3.0</version>
567                                 <configuration>
568                                         <header>LICENSE</header>
569                                         <includes>
570                                                 <include>src/main/java/**</include>
571                                         </includes>
572                                 </configuration>
573                                 <executions>
574                                         <execution>
575                                                 <goals>
576                                                         <goal>format</goal>
577                                                 </goals>
578                                                 <phase>process-sources</phase>
579                                         </execution>
580                                 </executions>
581                         </plugin>
582  -->
583 <plugin>
584             <groupId>org.apache.maven.plugins</groupId>
585                     <artifactId>maven-deploy-plugin</artifactId>
586                     <version>2.8.2</version>
587                     <executions>
588                         <execution>
589                             <id>default-deploy</id>
590                             <phase>none</phase>
591                         </execution>
592                     </executions>
593                 </plugin>
594                 <plugin>
595                     <groupId>org.sonatype.plugins</groupId>
596                     <artifactId>nexus-staging-maven-plugin</artifactId>
597                     <version>1.6.7</version>
598                     <extensions>true</extensions>
599                     <configuration>
600                         <nexusUrl>${onap.nexus.url}</nexusUrl>
601                         <stagingProfileId>176c31dfe190a</stagingProfileId>
602                         <serverId>ecomp-staging</serverId>
603                     </configuration>
604                 </plugin>
605               </plugins>
606 </build>
607
608         
609     <distributionManagement>
610        <repository>
611           <id>ecomp-releases</id>
612           <name>ECOMP Release Repository</name>
613           <url>${onap.nexus.url}/content/repositories/releases/</url>
614        </repository>
615        <snapshotRepository>
616           <id>ecomp-snapshots</id>
617           <name>ECOMP Snapshot Repository</name>
618           <url>${onap.nexus.url}/content/repositories/snapshots/</url>
619       </snapshotRepository>
620       <site>
621         <id>ecomp-site</id>
622         <url>dav:${onap.nexus.url}${sitePath}</url>
623       </site>
624    </distributionManagement>
625
626     <repositories>
627         <repository>
628             <id>central</id>
629             <name>Maven 2 repository 2</name>
630             <url>http://repo2.maven.org/maven2/</url>
631         </repository>
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         <repository>
638             <id>ecomp-staging</id>
639             <name>ECOMP Staging Repository</name>
640             <url>${onap.nexus.url}/content/repositories/staging/</url>
641         </repository>
642         <repository>
643             <id>ecomp-snapshots</id>
644             <name>ECOMP Snapshot Repository</name>
645             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
646         </repository>
647     </repositories>
648
649
650
651 </project>