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