Upgrade to Cassandra 3
[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.6.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.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     <cadi.version>2.1.8</cadi.version>
60     <lombok.version>1.18.2</lombok.version>
61     <commons-beanutils>1.9.3</commons-beanutils>
62     <commons-configuration>2.3</commons-configuration>
63     <apache-poi.version>4.1.0</apache-poi.version>
64     <onap.logging.version>1.6.1</onap.logging.version>
65
66     <commons.collections.version>4.1</commons.collections.version>
67     <ws.rs.version>2.0.1</ws.rs.version>
68
69     <!-- Elastic Search mapper (reference the elastic search version actually). -->
70     <elastic-search.version>2.4.0</elastic-search.version>
71     <catalog-artifacts.version>1.0.0-SNAPSHOT</catalog-artifacts.version>
72     <catalog-builders.version>1.0.0-SNAPSHOT</catalog-builders.version>
73     <jetty.version>9.4.18.v20190429</jetty.version>
74
75     <!-- JSON and YAML Parsing -->
76     <jackson.version>2.9.9</jackson.version>
77     <jackson-annotations.version>2.9.9</jackson-annotations.version>
78     <jackson.mapper.version>1.9.13</jackson.mapper.version>
79     <clearspring.version>2.1.1</clearspring.version>
80
81     <!-- Yaml for properties -->
82     <snakeyaml.version>1.14</snakeyaml.version>
83     <functionaljava.version>4.7</functionaljava.version>
84     <httpclient.version>4.5.3</httpclient.version>
85     <httpcore.version>4.4.1</httpcore.version>
86     <json-simple.version>1.1</json-simple.version>
87
88     <!-- Logging start -->
89     <!-- logback -->
90     <logback.version>1.2.3</logback.version>
91     <slf4j-api.version>1.7.25</slf4j-api.version>
92     <commons-codec>1.10</commons-codec>
93     <commons-logging>1.2</commons-logging>
94     <janino.version>3.0.6</janino.version>
95
96     <!-- aspects -->
97     <jcabi.version>0.20.1</jcabi.version>
98     <aspectjrt.version>1.8.4</aspectjrt.version>
99     <aspectj.version>1.7.4</aspectj.version>
100     <jcabi.maven.plugin.version>0.13.2</jcabi.maven.plugin.version>
101
102     <!-- Logging end -->
103     <!-- System Metrics -->
104     <sigar.version>1.6.4</sigar.version>
105
106     <regex.version>3.0.3</regex.version>
107
108     <!--GSON-->
109     <gson.version>2.3.1</gson.version>
110
111     <!--listen to file changes-->
112     <commons-jci-core.version>1.1</commons-jci-core.version>
113
114     <!--TESTING-->
115     <mockito.version>2.18.3</mockito.version>
116     <jmockit.version>1.33</jmockit.version>
117     <junit.version>4.12</junit.version>
118     <assertj.version>3.10.0</assertj.version>
119     <testng.version>6.14.3</testng.version>
120     <extentreports.version>3.0.3</extentreports.version>
121     <cucumber.version>2.4.0</cucumber.version>
122     <bean-matchers.version>0.11</bean-matchers.version>
123     <hamcrest.version>2.1</hamcrest.version>
124     <hamcrest-all.version>1.3</hamcrest-all.version>
125     <junit-jupiter.version>5.4.0</junit-jupiter.version>
126     <junit-vintage.version>5.4.0</junit-vintage.version>
127     <junit-platform.version>1.1.0</junit-platform.version>
128     <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version>
129     <maven-jar-plugin.version>2.4</maven-jar-plugin.version>
130
131     <!-- parser-->
132     <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
133
134     <!-- sonar -->
135     <sonar.language>java</sonar.language>
136     <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
137     <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
138     <sonar.branch>${project.version}</sonar.branch>
139
140     <!--cassandra -->
141     <cassandra.driver.version>3.6.0</cassandra.driver.version>
142     <libthrift.version>0.12.0</libthrift.version>
143     <!-- maven central (Nexus) -->
144     <nexus.id.release>nexus</nexus.id.release>
145     <nexus.id.snapshot>nexus</nexus.id.snapshot>
146
147     <!--nexus-->
148     <npm.registry>https://nexus3.onap.org/repository/npm.public/</npm.registry>
149     <nexus.proxy>https://nexus.onap.org</nexus.proxy>
150     <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
151     <staging.profile.id>176c31dfe190a</staging.profile.id>
152     <!--maven-->
153     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
154     <!--docker tags-->
155     <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
156     <!--togglz version-->
157     <togglz.version>2.4.1.Final</togglz.version>
158
159     <joda.time.version>2.9.9</joda.time.version>
160
161     <!--sdc-security-utils-->
162     <security.util.lib.version>1.6.0</security.util.lib.version>
163     <!--jacoco-->
164     <jacoco.version>0.8.1</jacoco.version>
165
166   </properties>
167
168
169   <dependencyManagement>
170     <dependencies>
171       <dependency>
172         <groupId>com.google.guava</groupId>
173         <artifactId>guava</artifactId>
174         <version>${guava.version}</version>
175       </dependency>
176
177       <dependency>
178         <groupId>org.glassfish.jersey.ext</groupId>
179         <artifactId>jersey-bean-validation</artifactId>
180         <version>${jersey-bom.version}</version>
181       </dependency>
182
183       <dependency>
184         <groupId>org.glassfish.hk2.external</groupId>
185         <artifactId>asm-all-repackaged</artifactId>
186         <version>2.4.0</version>
187       </dependency>
188
189       <dependency>
190         <groupId>org.assertj</groupId>
191         <artifactId>assertj-core</artifactId>
192         <version>${assertj.version}</version>
193       </dependency>
194
195       <dependency>
196         <groupId>org.mockito</groupId>
197         <artifactId>mockito-core</artifactId>
198         <version>${mockito.version}</version>
199       </dependency>
200
201       <dependency>
202         <groupId>org.jmockit</groupId>
203         <artifactId>jmockit</artifactId>
204         <version>${jmockit.version}</version>
205       </dependency>
206
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       <dependency>
247         <groupId>org.junit.platform</groupId>
248         <artifactId>junit-platform-launcher</artifactId>
249         <version>${junit-platform.version}</version>
250       </dependency>
251       <dependency>
252         <groupId>org.junit.jupiter</groupId>
253         <artifactId>junit-jupiter-engine</artifactId>
254         <version>${junit-jupiter.version}</version>
255       </dependency>
256       <dependency>
257         <groupId>org.junit.vintage</groupId>
258         <artifactId>junit-vintage-engine</artifactId>
259         <version>${junit-vintage.version}</version>
260       </dependency>
261     </dependencies>
262   </dependencyManagement>
263
264   <dependencies>
265     <dependency>
266       <!-- must be on the classpath -->
267       <groupId>org.jacoco</groupId>
268       <artifactId>org.jacoco.agent</artifactId>
269       <classifier>runtime</classifier>
270       <version>${jacoco.version}</version>
271       <scope>test</scope>
272     </dependency>
273   </dependencies>
274
275   <reporting>
276     <plugins>
277       <plugin>
278         <groupId>org.apache.maven.plugins</groupId>
279         <artifactId>maven-javadoc-plugin</artifactId>
280         <version>3.0.1</version>
281         <configuration>
282           <failOnError>false</failOnError>
283           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
284           <docletArtifact>
285             <groupId>org.umlgraph</groupId>
286             <artifactId>umlgraph</artifactId>
287             <version>5.6</version>
288           </docletArtifact>
289           <useStandardDocletOptions>true</useStandardDocletOptions>
290         </configuration>
291       </plugin>
292     </plugins>
293   </reporting>
294
295   <build>
296     <pluginManagement>
297       <plugins>
298         <plugin>
299           <groupId>org.jacoco</groupId>
300           <artifactId>jacoco-maven-plugin</artifactId>
301           <version>0.8.1</version>
302         </plugin>
303         <plugin>
304           <groupId>org.apache.maven.plugins</groupId>
305           <artifactId>maven-assembly-plugin</artifactId>
306           <version>3.1.0</version>
307         </plugin>
308
309         <plugin>
310           <groupId>org.codehaus.mojo</groupId>
311           <artifactId>exec-maven-plugin</artifactId>
312           <version>1.6.0</version>
313         </plugin>
314         <plugin>
315           <groupId>org.sonarsource.scanner.maven</groupId>
316           <artifactId>sonar-maven-plugin</artifactId>
317           <version>3.4.1.1168</version>
318         </plugin>
319         <plugin>
320           <groupId>org.apache.maven.plugins</groupId>
321           <artifactId>maven-clean-plugin</artifactId>
322           <version>3.1.0</version>
323         </plugin>
324         <plugin>
325           <groupId>ru.yaal.maven</groupId>
326           <artifactId>write-text-files-maven-plugin</artifactId>
327           <version>1.1</version>
328         </plugin>
329         <plugin>
330           <groupId>org.codehaus.gmaven</groupId>
331           <artifactId>gmaven-plugin</artifactId>
332           <version>1.5</version>
333         </plugin>
334         <plugin>
335           <groupId>org.codehaus.mojo</groupId>
336           <artifactId>build-helper-maven-plugin</artifactId>
337           <version>3.0.0</version>
338         </plugin>
339         <plugin>
340           <groupId>org.apache.maven.plugins</groupId>
341           <artifactId>maven-deploy-plugin</artifactId>
342           <version>2.8.2</version>
343         </plugin>
344         <plugin>
345           <groupId>org.apache.maven.plugins</groupId>
346           <artifactId>maven-shade-plugin</artifactId>
347           <version>3.1.1</version>
348         </plugin>
349         <plugin>
350           <groupId>org.apache.maven.plugins</groupId>
351           <artifactId>maven-resources-plugin</artifactId>
352           <version>3.1.0</version>
353         </plugin>
354         <plugin>
355           <groupId>io.fabric8</groupId>
356           <artifactId>docker-maven-plugin</artifactId>
357           <version>0.26.0</version>
358         </plugin>
359         <plugin>
360           <groupId>org.apache.maven.plugins</groupId>
361           <artifactId>maven-war-plugin</artifactId>
362           <version>3.2.2</version>
363         </plugin>
364         <plugin>
365           <groupId>com.github.eirslett</groupId>
366           <artifactId>frontend-maven-plugin</artifactId>
367           <version>1.8.0</version>
368         </plugin>
369         <plugin>
370           <groupId>org.apache.maven.plugins</groupId>
371           <artifactId>maven-surefire-plugin</artifactId>
372           <version>${maven-surefire-plugin.version}</version>
373         </plugin>
374         <plugin>
375           <groupId>org.apache.maven.plugins</groupId>
376           <artifactId>maven-compiler-plugin</artifactId>
377           <version>3.8.0</version>
378         </plugin>
379         <plugin>
380           <groupId>com.github.sylvainlaurent.maven</groupId>
381           <artifactId>yaml-json-validator-maven-plugin</artifactId>
382           <version>1.0.1</version>
383         </plugin>
384         <plugin>
385           <groupId>pl.project13.maven</groupId>
386           <artifactId>git-commit-id-plugin</artifactId>
387           <version>2.2.6</version>
388         </plugin>
389       </plugins>
390     </pluginManagement>
391
392     <plugins>
393       <plugin>
394         <artifactId>maven-checkstyle-plugin</artifactId>
395         <version>2.17</version>
396         <configuration>
397           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
398           <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
399         </configuration>
400       </plugin>
401       <!-- plugin for parsing the project version -->
402       <plugin>
403         <groupId>org.codehaus.mojo</groupId>
404         <artifactId>build-helper-maven-plugin</artifactId>
405         <executions>
406           <execution>
407             <id>parse-version</id>
408             <phase>pre-clean</phase>
409             <goals>
410               <goal>parse-version</goal>
411             </goals>
412           </execution>
413         </executions>
414       </plugin>
415
416       <!-- Java Code Coverage -->
417       <plugin>
418         <groupId>org.jacoco</groupId>
419         <artifactId>jacoco-maven-plugin</artifactId>
420         <inherited>false</inherited>
421         <executions>
422           <execution>
423             <id>default-instrument</id>
424             <goals>
425               <goal>instrument</goal>
426             </goals>
427           </execution>
428           <execution>
429             <id>default-restore-instrumented-classes</id>
430             <goals>
431               <goal>restore-instrumented-classes</goal>
432             </goals>
433           </execution>
434           <execution>
435             <id>default-report</id>
436             <goals>
437               <goal>report</goal>
438             </goals>
439             <configuration>
440               <dataFile>${project.build.directory}/jacoco.exec</dataFile>
441             </configuration>
442           </execution>
443         </executions>
444       </plugin>
445
446       <plugin>
447         <groupId>org.apache.maven.plugins</groupId>
448         <artifactId>maven-site-plugin</artifactId>
449         <version>3.7.1</version>
450         <dependencies>
451           <dependency>
452             <groupId>org.apache.maven.wagon</groupId>
453             <artifactId>wagon-webdav-jackrabbit</artifactId>
454             <version>3.0.0</version>
455           </dependency>
456         </dependencies>
457       </plugin>
458
459       <!-- Set the deployment repositories properties. -->
460       <plugin>
461         <groupId>org.codehaus.gmaven</groupId>
462         <artifactId>gmaven-plugin</artifactId>
463         <executions>
464           <execution>
465             <inherited>false</inherited>
466             <phase>integration-test</phase>
467             <goals>
468               <goal>execute</goal>
469             </goals>
470             <configuration>
471               <source>
472                 pom.properties['deploy.url'] =
473                   pom.version.contains('-SNAPSHOT') ?
474                     project.distributionManagement.snapshotRepository.url :
475                     project.distributionManagement.repository.url;
476                 pom.properties['repo.id'] = pom.version.contains('-SNAPSHOT') ?
477                   project.distributionManagement.snapshotRepository.id :
478                   project.distributionManagement.repository.id;
479               </source>
480             </configuration>
481           </execution>
482         </executions>
483       </plugin>
484       <plugin>
485         <groupId>org.apache.maven.plugins</groupId>
486         <artifactId>maven-compiler-plugin</artifactId>
487         <configuration>
488           <source>1.8</source>
489           <target>1.8</target>
490         </configuration>
491       </plugin>
492       <plugin>
493         <groupId>org.apache.maven.plugins</groupId>
494         <artifactId>maven-surefire-plugin</artifactId>
495         <configuration>
496           <printSummary>false</printSummary>
497           <systemPropertyVariables>
498             <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
499           </systemPropertyVariables>
500         </configuration>
501       </plugin>
502       <plugin>
503         <groupId>pl.project13.maven</groupId>
504         <artifactId>git-commit-id-plugin</artifactId>
505         <executions>
506           <execution>
507             <goals>
508               <goal>revision</goal>
509             </goals>
510           </execution>
511         </executions>
512         <configuration>
513           <generateGitPropertiesFile>true</generateGitPropertiesFile>
514           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties
515           </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>common-app-logging</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>common-app-logging</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     </profile>
581
582     <profile>
583       <id>onboarding</id>
584       <activation>
585         <activeByDefault>false</activeByDefault>
586       </activation>
587       <modules>
588         <module>onboarding</module>
589       </modules>
590     </profile>
591
592   </profiles>
593
594   <repositories>
595     <!-- LF repositories -->
596     <repository>
597       <id>ecomp-releases</id>
598       <name>Release Repository</name>
599       <url>${nexus.proxy}/content/repositories/releases/</url>
600     </repository>
601     <repository>
602       <id>ecomp-snapshots</id>
603       <name>Snapshots Repository</name>
604       <url>${nexus.proxy}/content/repositories/snapshots/</url>
605     </repository>
606     <repository>
607       <id>ecomp-public</id>
608       <name>Public Repository</name>
609       <url>${nexus.proxy}/content/repositories/public/</url>
610     </repository>
611     <!-- LF repositories END-->
612   </repositories>
613
614   <distributionManagement>
615     <repository>
616       <id>ecomp-releases</id>
617       <name>Release Repository</name>
618       <url>${nexus.proxy}/content/repositories/releases/</url>
619     </repository>
620     <snapshotRepository>
621       <id>ecomp-snapshots</id>
622       <name>Snapshot Repository</name>
623       <url>${nexus.proxy}/content/repositories/snapshots/</url>
624     </snapshotRepository>
625     <site>
626       <id>ecomp-site</id>
627       <url>dav:${nexus.proxy}${sitePath}</url>
628     </site>
629   </distributionManagement>
630 </project>