Fixed banned dependency
[sdc.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 SDC
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10         *
11      http://www.apache.org/licenses/LICENSE-2.0
12         *
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ============LICENSE_END=========================================================
19 Modifications copyright (c) 2018-2019 Nokia
20 ================================================================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <groupId>org.openecomp.sdc</groupId>
27     <artifactId>sdc-main</artifactId>
28     <version>1.5.0-SNAPSHOT</version>
29     <packaging>pom</packaging>
30     <name>sdc</name>
31
32     <parent>
33         <groupId>org.onap.oparent</groupId>
34         <artifactId>oparent</artifactId>
35         <version>2.0.0</version>
36         <relativePath/>
37     </parent>
38
39     <properties>
40         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41
42         <tosca.datatype.version>${project.version}</tosca.datatype.version>
43
44         <!-- 3rd parties versions -->
45         <bean-matcher.version>0.11</bean-matcher.version>
46         <lang3.version>3.3.2</lang3.version>
47         <lang3.version>3.3.2</lang3.version>
48         <guava.version>18.0</guava.version>
49         <janusgraph.version>0.3.1</janusgraph.version>
50         <spring.version>4.3.18.RELEASE</spring.version>
51         <spring.security.version>3.2.3.RELEASE</spring.security.version>
52         <spring.ldap.version>2.0.1.RELEASE</spring.ldap.version>
53         <jersey-bom.version>2.27</jersey-bom.version>
54         <netty.version>4.1.36.Final</netty.version>
55         <servlet-api.version>3.1.0</servlet-api.version>
56         <wire-mock.version>2.18.0</wire-mock.version>
57         <ecomp.version>2.4.0</ecomp.version>
58         <cassandra.unit.version>3.5.0.1</cassandra.unit.version>
59         <lombok.version>1.18.2</lombok.version>
60         <commons-beanutils>1.9.3</commons-beanutils>
61         <commons-configuration>2.3</commons-configuration>
62         <apache-poi.version>4.1.0</apache-poi.version>
63
64         <commons.collections.version>4.1</commons.collections.version>
65
66         <!-- Elastic Search mapper (reference the elastic search version actually). -->
67         <elastic-search.version>2.4.0</elastic-search.version>
68         <catalog-artifacts.version>1.0.0-SNAPSHOT</catalog-artifacts.version>
69         <catalog-builders.version>1.0.0-SNAPSHOT</catalog-builders.version>
70         <jetty.version>9.4.18.v20190429</jetty.version>
71
72         <!-- JSON and YAML Parsing -->
73         <jackson.version>2.9.9</jackson.version>
74         <jackson-annotations.version>2.9.9</jackson-annotations.version>
75         <jackson.mapper.version>1.9.13</jackson.mapper.version>
76
77         <!-- Yaml for properties -->
78         <snakeyaml.version>1.14</snakeyaml.version>
79         <functionaljava.version>4.7</functionaljava.version>
80         <httpclient.version>4.5.3</httpclient.version>
81         <httpcore.version>4.4.1</httpcore.version>
82         <json-simple.version>1.1</json-simple.version>
83
84         <!-- Logging start -->
85         <!-- logback -->
86         <logback.version>1.2.3</logback.version>
87         <slf4j-api.version>1.7.25</slf4j-api.version>
88         <commons-codec>1.10</commons-codec>
89         <commons-logging>1.2</commons-logging>
90         <janino.version>3.0.6</janino.version>
91
92         <!-- aspects -->
93         <jcabi.version>0.20.1</jcabi.version>
94         <aspectjrt.version>1.8.4</aspectjrt.version>
95         <aspectj.version>1.7.4</aspectj.version>
96         <jcabi.maven.plugin.version>0.13.2</jcabi.maven.plugin.version>
97
98         <!-- Logging end -->
99         <!-- System Metrics -->
100         <sigar.version>1.6.4</sigar.version>
101
102         <regex.version>3.0.3</regex.version>
103
104         <!--GSON-->
105         <gson.version>2.3.1</gson.version>
106
107         <!--listen to file changes-->
108         <commons-jci-core.version>1.1</commons-jci-core.version>
109
110         <!--TESTING-->
111         <mockito.version>2.18.3</mockito.version>
112         <jmockit.version>1.33</jmockit.version>
113         <junit.version>4.12</junit.version>
114         <assertj.version>3.10.0</assertj.version>
115         <testng.version>6.14.3</testng.version>
116         <extentreports.version>3.0.3</extentreports.version>
117         <cucumber.version>2.4.0</cucumber.version>
118         <bean-matchers.version>0.11</bean-matchers.version>
119         <hamcrest-all.version>1.3</hamcrest-all.version>
120         <junit-jupiter.version>5.4.0</junit-jupiter.version>
121         <junit-vintage.version>5.4.0</junit-vintage.version>
122         <junit-platform.version>1.1.0</junit-platform.version>
123         <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
124
125         <!-- parser-->
126         <sdc-tosca-parser.version>1.3.5</sdc-tosca-parser.version>
127
128         <!-- sonar -->
129         <sonar.language>java</sonar.language>
130         <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
131         <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
132         <sonar.branch>${project.version}</sonar.branch>
133
134         <!--cassandra -->
135         <cassandra.driver.version>3.0.0</cassandra.driver.version>
136         <libthrift.version>0.12.0</libthrift.version>
137         <!-- maven central (Nexus) -->
138         <nexus.id.release>nexus</nexus.id.release>
139         <nexus.id.snapshot>nexus</nexus.id.snapshot>
140
141         <!--nexus-->
142         <npm.registry>https://registry.npmjs.org/</npm.registry>
143         <!-- https://nexus.onap.org/content/repositories/npm/ -->
144         <nexus.proxy>https://nexus.onap.org</nexus.proxy>
145         <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
146         <staging.profile.id>176c31dfe190a</staging.profile.id>
147         <!--maven-->
148         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
149         <!--docker tags-->
150         <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
151
152         <joda.time.version>2.9.9</joda.time.version>
153
154         <!--jacoco-->
155         <jacoco.version>0.8.1</jacoco.version>
156
157     </properties>
158
159
160     <dependencyManagement>
161         <dependencies>
162             <dependency>
163                 <groupId>com.google.guava</groupId>
164                 <artifactId>guava</artifactId>
165                 <version>${guava.version}</version>
166             </dependency>
167
168             <dependency>
169                 <groupId>org.glassfish.jersey.ext</groupId>
170                 <artifactId>jersey-bean-validation</artifactId>
171                 <version>${jersey-bom.version}</version>
172             </dependency>
173
174             <dependency>
175                 <groupId>org.glassfish.hk2.external</groupId>
176                 <artifactId>asm-all-repackaged</artifactId>
177                 <version>2.4.0</version>
178             </dependency>
179
180             <dependency>
181                 <groupId>org.assertj</groupId>
182                 <artifactId>assertj-core</artifactId>
183                 <version>${assertj.version}</version>
184             </dependency>
185
186             <dependency>
187                 <groupId>org.mockito</groupId>
188                 <artifactId>mockito-core</artifactId>
189                 <version>${mockito.version}</version>
190             </dependency>
191             
192                         <dependency>
193                         <groupId>org.jmockit</groupId>
194                                 <artifactId>jmockit</artifactId>
195                                 <version>${jmockit.version}</version>
196                         </dependency>
197                         
198
199             <dependency>
200                 <groupId>com.github.tomakehurst</groupId>
201                 <artifactId>wiremock-standalone</artifactId>
202                 <version>${wire-mock.version}</version>
203             </dependency>
204
205             <dependency>
206                 <groupId>io.cucumber</groupId>
207                 <artifactId>cucumber-java</artifactId>
208                 <version>${cucumber.version}</version>
209             </dependency>
210
211             <dependency>
212                 <groupId>io.cucumber</groupId>
213                 <artifactId>cucumber-junit</artifactId>
214                 <version>${cucumber.version}</version>
215             </dependency>
216
217             <dependency>
218                 <groupId>org.apache.commons</groupId>
219                 <artifactId>commons-lang3</artifactId>
220                 <version>${lang3.version}</version>
221             </dependency>
222             <dependency>
223                 <groupId>org.codehaus.groovy</groupId>
224                 <artifactId>groovy</artifactId>
225                 <version>2.4.13</version>
226             </dependency>
227             <dependency>
228                 <groupId>io.netty</groupId>
229                 <artifactId>netty-all</artifactId>
230                 <version>${netty.version}</version>
231             </dependency>
232             <dependency>
233                 <groupId>io.netty</groupId>
234                 <artifactId>netty-handler</artifactId>
235                 <version>${netty.version}</version>
236             </dependency>
237             <dependency>
238                 <groupId>org.junit.platform</groupId>
239                 <artifactId>junit-platform-launcher</artifactId>
240                 <version>${junit-platform.version}</version>
241             </dependency>
242             <dependency>
243                 <groupId>org.junit.jupiter</groupId>
244                 <artifactId>junit-jupiter-engine</artifactId>
245                 <version>${junit-jupiter.version}</version>
246             </dependency>
247             <dependency>
248                 <groupId>org.junit.vintage</groupId>
249                 <artifactId>junit-vintage-engine</artifactId>
250                 <version>${junit-vintage.version}</version>
251             </dependency>
252         </dependencies>
253     </dependencyManagement>
254
255     <dependencies>
256         <dependency>
257             <!-- must be on the classpath -->
258             <groupId>org.jacoco</groupId>
259             <artifactId>org.jacoco.agent</artifactId>
260             <classifier>runtime</classifier>
261             <version>${jacoco.version}</version>
262             <scope>test</scope>
263         </dependency>
264     </dependencies>
265
266     <reporting>
267         <plugins>
268             <plugin>
269                 <groupId>org.apache.maven.plugins</groupId>
270                 <artifactId>maven-javadoc-plugin</artifactId>
271                 <version>3.0.1</version>
272                 <configuration>
273                     <failOnError>false</failOnError>
274                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
275                     <docletArtifact>
276                         <groupId>org.umlgraph</groupId>
277                         <artifactId>umlgraph</artifactId>
278                         <version>5.6</version>
279                     </docletArtifact>
280                     <useStandardDocletOptions>true</useStandardDocletOptions>
281                 </configuration>
282             </plugin>
283         </plugins>
284     </reporting>
285
286     <build>
287         <pluginManagement>
288             <plugins>
289                 <plugin>
290                     <groupId>org.jacoco</groupId>
291                     <artifactId>jacoco-maven-plugin</artifactId>
292                     <version>0.8.1</version>
293                 </plugin>
294                 <plugin>
295                     <groupId>org.apache.maven.plugins</groupId>
296                     <artifactId>maven-assembly-plugin</artifactId>
297                     <version>3.1.0</version>
298                 </plugin>
299
300                 <plugin>
301                     <groupId>org.codehaus.mojo</groupId>
302                     <artifactId>exec-maven-plugin</artifactId>
303                     <version>1.6.0</version>
304                 </plugin>
305                 <plugin>
306                     <groupId>org.sonarsource.scanner.maven</groupId>
307                     <artifactId>sonar-maven-plugin</artifactId>
308                     <version>3.4.1.1168</version>
309                 </plugin>
310                 <plugin>
311                     <groupId>org.apache.maven.plugins</groupId>
312                     <artifactId>maven-clean-plugin</artifactId>
313                     <version>3.1.0</version>
314                 </plugin>
315                 <plugin>
316                     <groupId>ru.yaal.maven</groupId>
317                     <artifactId>write-text-files-maven-plugin</artifactId>
318                     <version>1.1</version>
319                 </plugin>
320                 <plugin>
321                     <groupId>org.codehaus.gmaven</groupId>
322                     <artifactId>gmaven-plugin</artifactId>
323                     <version>1.5</version>
324                 </plugin>
325                 <plugin>
326                     <groupId>org.codehaus.mojo</groupId>
327                     <artifactId>build-helper-maven-plugin</artifactId>
328                     <version>3.0.0</version>
329                 </plugin>
330                 <plugin>
331                     <groupId>org.apache.maven.plugins</groupId>
332                     <artifactId>maven-deploy-plugin</artifactId>
333                     <version>2.8.2</version>
334                 </plugin>
335                 <plugin>
336                     <groupId>org.apache.maven.plugins</groupId>
337                     <artifactId>maven-shade-plugin</artifactId>
338                     <version>3.1.1</version>
339                 </plugin>
340                 <plugin>
341                     <groupId>org.apache.maven.plugins</groupId>
342                     <artifactId>maven-resources-plugin</artifactId>
343                     <version>3.1.0</version>
344                 </plugin>
345                 <plugin>
346                     <groupId>io.fabric8</groupId>
347                     <artifactId>docker-maven-plugin</artifactId>
348                     <version>0.26.0</version>
349                 </plugin>
350                 <plugin>
351                     <groupId>org.apache.maven.plugins</groupId>
352                     <artifactId>maven-war-plugin</artifactId>
353                     <version>3.2.2</version>
354                 </plugin>
355                 <plugin>
356                     <groupId>com.github.eirslett</groupId>
357                     <artifactId>frontend-maven-plugin</artifactId>
358                     <version>1.6</version>
359                 </plugin>
360                 <plugin>
361                     <groupId>org.apache.maven.plugins</groupId>
362                     <artifactId>maven-surefire-plugin</artifactId>
363                     <version>${maven-surefire-plugin.version}</version>
364                 </plugin>
365                 <plugin>
366                     <groupId>org.apache.maven.plugins</groupId>
367                     <artifactId>maven-compiler-plugin</artifactId>
368                     <version>3.8.0</version>
369                 </plugin>
370                 <plugin>
371                     <groupId>org.sonatype.plugins</groupId>
372                     <artifactId>nexus-staging-maven-plugin</artifactId>
373                     <version>1.6.8</version>
374                 </plugin>
375                 <plugin>
376                     <groupId>com.github.sylvainlaurent.maven</groupId>
377                     <artifactId>yaml-json-validator-maven-plugin</artifactId>
378                     <version>1.0.1</version>
379                 </plugin>
380                 <plugin>
381                     <groupId>pl.project13.maven</groupId>
382                     <artifactId>git-commit-id-plugin</artifactId>
383                     <version>2.2.6</version>
384                 </plugin>
385             </plugins>
386         </pluginManagement>
387
388         <plugins>
389
390             <!-- Staging Plugin -->
391             <plugin>
392                 <groupId>org.sonatype.plugins</groupId>
393                 <artifactId>nexus-staging-maven-plugin</artifactId>
394                 <extensions>true</extensions>
395                 <configuration>
396                     <nexusUrl>${nexus.proxy}</nexusUrl>
397                     <stagingProfileId>${staging.profile.id}</stagingProfileId>
398                     <serverId>ecomp-staging</serverId>
399                 </configuration>
400             </plugin>
401
402             <!-- plugin for parsing the project version -->
403             <plugin>
404                 <groupId>org.codehaus.mojo</groupId>
405                 <artifactId>build-helper-maven-plugin</artifactId>
406                 <executions>
407                     <execution>
408                         <id>parse-version</id>
409                         <phase>pre-clean</phase>
410                         <goals>
411                             <goal>parse-version</goal>
412                         </goals>
413                     </execution>
414                 </executions>
415             </plugin>
416
417             <!-- Java Code Coverage -->
418             <plugin>
419                 <groupId>org.jacoco</groupId>
420                 <artifactId>jacoco-maven-plugin</artifactId>
421                 <inherited>false</inherited>
422                 <executions>
423                     <execution>
424                         <id>default-instrument</id>
425                         <goals>
426                             <goal>instrument</goal>
427                         </goals>
428                     </execution>
429                     <execution>
430                         <id>default-restore-instrumented-classes</id>
431                         <goals>
432                             <goal>restore-instrumented-classes</goal>
433                         </goals>
434                     </execution>
435                     <execution>
436                         <id>default-report</id>
437                         <goals>
438                             <goal>report</goal>
439                         </goals>
440                         <configuration>
441                             <dataFile>${project.build.directory}/jacoco.exec</dataFile>
442                         </configuration>
443                     </execution>
444                 </executions>
445             </plugin>
446
447             <plugin>
448                 <groupId>org.apache.maven.plugins</groupId>
449                 <artifactId>maven-site-plugin</artifactId>
450                 <version>3.7.1</version>
451                 <dependencies>
452                     <dependency>
453                         <groupId>org.apache.maven.wagon</groupId>
454                         <artifactId>wagon-webdav-jackrabbit</artifactId>
455                         <version>3.0.0</version>
456                     </dependency>
457                 </dependencies>
458             </plugin>
459
460             <!-- Set the deployment repositories properties. -->
461             <plugin>
462                 <groupId>org.codehaus.gmaven</groupId>
463                 <artifactId>gmaven-plugin</artifactId>
464                 <executions>
465                     <execution>
466                         <inherited>false</inherited>
467                         <phase>integration-test</phase>
468                         <goals>
469                             <goal>execute</goal>
470                         </goals>
471                         <configuration>
472                             <source>
473                                 pom.properties['deploy.url'] =
474                                 pom.version.contains('-SNAPSHOT') ?
475                                 project.distributionManagement.snapshotRepository.url :
476                                 project.distributionManagement.repository.url;
477                                 pom.properties['repo.id'] = pom.version.contains('-SNAPSHOT') ?
478                                 project.distributionManagement.snapshotRepository.id :
479                                 project.distributionManagement.repository.id;
480                             </source>
481                         </configuration>
482                     </execution>
483                 </executions>
484             </plugin>
485             <plugin>
486                 <groupId>org.apache.maven.plugins</groupId>
487                 <artifactId>maven-compiler-plugin</artifactId>
488                 <configuration>
489                     <source>1.8</source>
490                     <target>1.8</target>
491                 </configuration>
492             </plugin>
493             <plugin>
494                 <groupId>org.apache.maven.plugins</groupId>
495                 <artifactId>maven-surefire-plugin</artifactId>
496                 <configuration>
497                     <printSummary>false</printSummary>
498                     <systemPropertyVariables>
499                         <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
500                     </systemPropertyVariables>
501                 </configuration>
502             </plugin>
503             <plugin>
504                <groupId>pl.project13.maven</groupId>
505                <artifactId>git-commit-id-plugin</artifactId>
506                <executions>
507                   <execution>
508                      <goals>
509                         <goal>revision</goal>
510                      </goals>
511                   </execution>
512                </executions>
513                <configuration>
514                   <generateGitPropertiesFile>true</generateGitPropertiesFile>
515                   <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
516                   <failOnNoGitDirectory>true</failOnNoGitDirectory>
517                   <verbose>false</verbose>
518                   <includeOnlyProperties>
519                      <includeOnlyProperty>git.build.version</includeOnlyProperty>
520                      <includeOnlyProperty>git.build.time</includeOnlyProperty>
521                      <includeOnlyProperty>git.commit.id</includeOnlyProperty>
522                      <includeOnlyProperty>git.commit.time</includeOnlyProperty>
523                      <includeOnlyProperty>git.commit.user.name</includeOnlyProperty>
524                      <includeOnlyProperty>git.commit.user.email</includeOnlyProperty>
525                      <includeOnlyProperty>git.commit.message.short</includeOnlyProperty>
526                      <includeOnlyProperty>git.commit.message.full</includeOnlyProperty>
527                   </includeOnlyProperties>
528                   <gitDescribe>
529                      <skip>true</skip>
530                   </gitDescribe>
531                   <useNativeGit>false</useNativeGit>
532                </configuration>
533             </plugin>
534         </plugins>
535     </build>
536
537     <profiles>
538         <profile>
539             <id>all</id>
540             <activation>
541                 <activeByDefault>true</activeByDefault>
542             </activation>
543             <modules>
544                 <module>onboarding</module>
545                 <module>security-utils</module>
546                 <module>common-app-api</module>
547                 <module>common-be</module>
548                 <module>catalog-dao</module>
549                 <module>catalog-model</module>
550                 <module>catalog-be</module>
551                 <module>asdctool</module>
552                 <module>catalog-ui</module>
553                 <module>catalog-fe</module>
554                 <module>test-apis-ci</module>
555                 <module>ui-ci</module>
556                 <module>sdc-os-chef</module>
557                 <module>utils/webseal-simulator</module>
558             </modules>
559
560         </profile>
561
562         <profile>
563             <id>catalog</id>
564             <activation>
565                 <activeByDefault>false</activeByDefault>
566             </activation>
567             <modules>
568                 <module>security-utils</module>
569                 <module>common-app-api</module>
570                 <module>common-be</module>
571                 <module>catalog-dao</module>
572                 <module>catalog-model</module>
573                 <module>catalog-be</module>
574                 <module>asdctool</module>
575                 <module>catalog-ui</module>
576                 <module>catalog-fe</module>
577                 <module>test-apis-ci</module>
578                 <module>ui-ci</module>
579             </modules>
580
581             <properties>
582                 <sdc-tosca-parser.version>1.1.32</sdc-tosca-parser.version>
583             </properties>
584         </profile>
585
586         <profile>
587             <id>onboarding</id>
588             <activation>
589                 <activeByDefault>false</activeByDefault>
590             </activation>
591             <modules>
592                 <module>onboarding</module>
593             </modules>
594         </profile>
595
596     </profiles>
597
598     <repositories>
599         <!-- LF repositories -->
600         <repository>
601             <id>ecomp-releases</id>
602             <name>Release Repository</name>
603             <url>${nexus.proxy}/content/repositories/releases/</url>
604         </repository>
605         <repository>
606             <id>ecomp-snapshots</id>
607             <name>Snapshots Repository</name>
608             <url>${nexus.proxy}/content/repositories/snapshots/</url>
609         </repository>
610         <repository>
611             <id>ecomp-public</id>
612             <name>Public Repository</name>
613             <url>${nexus.proxy}/content/repositories/public/</url>
614         </repository>
615         <!-- LF repositories END-->
616     </repositories>
617
618     <distributionManagement>
619         <repository>
620             <id>ecomp-releases</id>
621             <name>Release Repository</name>
622             <url>${nexus.proxy}/content/repositories/releases/</url>
623         </repository>
624         <snapshotRepository>
625             <id>ecomp-snapshots</id>
626             <name>Snapshot Repository</name>
627             <url>${nexus.proxy}/content/repositories/snapshots/</url>
628         </snapshotRepository>
629         <site>
630             <id>ecomp-site</id>
631             <url>dav:${nexus.proxy}${sitePath}</url>
632         </site>
633     </distributionManagement>
634 </project>