Remove all thrift's dependencies
[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.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     <jersey-bom.version>2.27</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.18.0</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>2.18.3</mockito.version>
110     <mockitoJupiter.version>3.3.3</mockitoJupiter.version>
111     <jmockit.version>1.33</jmockit.version>
112     <junit.version>4.12</junit.version>
113     <junitJupiter.version>5.6.0</junitJupiter.version>
114     <assertj.version>3.10.0</assertj.version>
115     <testng.version>6.14.3</testng.version>
116     <cucumber.version>2.4.0</cucumber.version>
117     <bean-matchers.version>0.11</bean-matchers.version>
118     <hamcrest.version>2.1</hamcrest.version>
119     <hamcrest-all.version>1.3</hamcrest-all.version>
120     <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
121     <maven-jar-plugin.version>2.4</maven-jar-plugin.version>
122
123     <!-- parser-->
124     <sdc-tosca-parser.version>1.6.5</sdc-tosca-parser.version>
125
126     <!-- sonar -->
127     <sonar.projectVersion>${project.version}</sonar.projectVersion>
128     <sonar.nodejs.executable>${project.basedir}/node/node</sonar.nodejs.executable>
129     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
130     <sonar.javascript.lcov.reportPaths>${project.build.directory}/code-coverage/lcov.info</sonar.javascript.lcov.reportPaths>
131     <sonar.coverage.jacoco.xmlReportPaths>
132       ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
133     </sonar.coverage.jacoco.xmlReportPaths>
134     <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
135     <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
136     <sonar.coverage.exclusions>pom.xml,src/test</sonar.coverage.exclusions>
137     <!--cassandra -->
138     <cassandra.driver.version>3.8.0</cassandra.driver.version>
139     <!-- maven central (Nexus) -->
140     <nexus.id.release>nexus</nexus.id.release>
141     <nexus.id.snapshot>nexus</nexus.id.snapshot>
142
143     <!--nexus-->
144     <npm.registry>https://nexus3.onap.org/repository/npm.public/</npm.registry>
145     <nexus.proxy>https://nexus.onap.org</nexus.proxy>
146     <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
147     <staging.profile.id>176c31dfe190a</staging.profile.id>
148     <!--maven-->
149     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
150     <!--docker tags-->
151     <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
152     <!--togglz version-->
153     <togglz.version>2.4.1.Final</togglz.version>
154
155     <joda.time.version>2.9.9</joda.time.version>
156
157     <!--sdc-security-utils-->
158     <security.util.lib.version>1.6.0</security.util.lib.version>
159     <!--jacoco-->
160     <jacoco.version>0.8.5</jacoco.version>
161
162     <java.driver.core.version>4.5.1</java.driver.core.version>
163
164   </properties>
165
166
167   <dependencyManagement>
168     <dependencies>
169       <dependency>
170         <groupId>com.google.guava</groupId>
171         <artifactId>guava</artifactId>
172         <version>${guava.version}</version>
173       </dependency>
174
175       <dependency>
176         <groupId>org.glassfish.jersey.ext</groupId>
177         <artifactId>jersey-bean-validation</artifactId>
178         <version>${jersey-bom.version}</version>
179       </dependency>
180
181       <dependency>
182         <groupId>org.glassfish.hk2.external</groupId>
183         <artifactId>asm-all-repackaged</artifactId>
184         <version>2.4.0</version>
185       </dependency>
186
187       <dependency>
188         <groupId>org.assertj</groupId>
189         <artifactId>assertj-core</artifactId>
190         <version>${assertj.version}</version>
191       </dependency>
192
193       <dependency>
194         <groupId>org.mockito</groupId>
195         <artifactId>mockito-core</artifactId>
196         <version>${mockito.version}</version>
197       </dependency>
198
199       <dependency>
200         <groupId>org.jmockit</groupId>
201         <artifactId>jmockit</artifactId>
202         <version>${jmockit.version}</version>
203       </dependency>
204
205
206       <dependency>
207         <groupId>com.github.tomakehurst</groupId>
208         <artifactId>wiremock-standalone</artifactId>
209         <version>${wire-mock.version}</version>
210       </dependency>
211
212       <dependency>
213         <groupId>io.cucumber</groupId>
214         <artifactId>cucumber-java</artifactId>
215         <version>${cucumber.version}</version>
216       </dependency>
217
218       <dependency>
219         <groupId>io.cucumber</groupId>
220         <artifactId>cucumber-junit</artifactId>
221         <version>${cucumber.version}</version>
222       </dependency>
223
224       <dependency>
225         <groupId>org.apache.commons</groupId>
226         <artifactId>commons-lang3</artifactId>
227         <version>${lang3.version}</version>
228       </dependency>
229       <dependency>
230         <groupId>org.codehaus.groovy</groupId>
231         <artifactId>groovy</artifactId>
232         <version>2.4.13</version>
233       </dependency>
234       <dependency>
235         <groupId>io.netty</groupId>
236         <artifactId>netty-all</artifactId>
237         <version>${netty.version}</version>
238       </dependency>
239       <dependency>
240         <groupId>io.netty</groupId>
241         <artifactId>netty-handler</artifactId>
242         <version>${netty.version}</version>
243       </dependency>
244     </dependencies>
245   </dependencyManagement>
246
247   <dependencies>
248     <dependency>
249       <!-- must be on the classpath -->
250       <groupId>org.jacoco</groupId>
251       <artifactId>org.jacoco.agent</artifactId>
252       <classifier>runtime</classifier>
253       <version>${jacoco.version}</version>
254       <scope>test</scope>
255     </dependency>
256   </dependencies>
257
258   <reporting>
259     <plugins>
260       <plugin>
261         <groupId>org.apache.maven.plugins</groupId>
262         <artifactId>maven-javadoc-plugin</artifactId>
263         <version>3.0.1</version>
264         <configuration>
265           <failOnError>false</failOnError>
266           <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
267           <docletArtifact>
268             <groupId>org.umlgraph</groupId>
269             <artifactId>umlgraph</artifactId>
270             <version>5.6</version>
271           </docletArtifact>
272           <useStandardDocletOptions>true</useStandardDocletOptions>
273         </configuration>
274       </plugin>
275     </plugins>
276   </reporting>
277
278   <build>
279     <pluginManagement>
280       <plugins>
281         <plugin>
282           <groupId>org.jacoco</groupId>
283           <artifactId>jacoco-maven-plugin</artifactId>
284           <version>${jacoco.version}</version>
285         </plugin>
286         <plugin>
287           <groupId>org.apache.maven.plugins</groupId>
288           <artifactId>maven-assembly-plugin</artifactId>
289           <version>3.1.0</version>
290           <configuration>
291             <tarLongFileMode>posix</tarLongFileMode>
292           </configuration>
293         </plugin>
294
295         <plugin>
296           <groupId>org.codehaus.mojo</groupId>
297           <artifactId>exec-maven-plugin</artifactId>
298           <version>1.6.0</version>
299         </plugin>
300         <plugin>
301           <groupId>org.sonarsource.scanner.maven</groupId>
302           <artifactId>sonar-maven-plugin</artifactId>
303           <version>3.7.0.1746</version>
304         </plugin>
305         <plugin>
306           <groupId>org.apache.maven.plugins</groupId>
307           <artifactId>maven-clean-plugin</artifactId>
308           <version>3.1.0</version>
309         </plugin>
310         <plugin>
311           <groupId>ru.yaal.maven</groupId>
312           <artifactId>write-text-files-maven-plugin</artifactId>
313           <version>1.1</version>
314         </plugin>
315         <plugin>
316           <groupId>org.codehaus.gmaven</groupId>
317           <artifactId>gmaven-plugin</artifactId>
318           <version>1.5</version>
319         </plugin>
320         <plugin>
321           <groupId>org.codehaus.mojo</groupId>
322           <artifactId>build-helper-maven-plugin</artifactId>
323           <version>3.0.0</version>
324         </plugin>
325         <plugin>
326           <groupId>org.apache.maven.plugins</groupId>
327           <artifactId>maven-deploy-plugin</artifactId>
328           <version>2.8.2</version>
329         </plugin>
330         <plugin>
331           <groupId>org.apache.maven.plugins</groupId>
332           <artifactId>maven-shade-plugin</artifactId>
333           <version>3.1.1</version>
334         </plugin>
335         <plugin>
336           <groupId>org.apache.maven.plugins</groupId>
337           <artifactId>maven-resources-plugin</artifactId>
338           <version>3.1.0</version>
339         </plugin>
340         <plugin>
341           <groupId>io.fabric8</groupId>
342           <artifactId>docker-maven-plugin</artifactId>
343           <version>0.26.0</version>
344         </plugin>
345         <plugin>
346           <groupId>org.apache.maven.plugins</groupId>
347           <artifactId>maven-war-plugin</artifactId>
348           <version>3.2.2</version>
349         </plugin>
350         <plugin>
351           <groupId>com.github.eirslett</groupId>
352           <artifactId>frontend-maven-plugin</artifactId>
353           <version>1.8.0</version>
354         </plugin>
355         <plugin>
356           <groupId>org.apache.maven.plugins</groupId>
357           <artifactId>maven-surefire-plugin</artifactId>
358           <version>${maven-surefire-plugin.version}</version>
359         </plugin>
360         <plugin>
361           <groupId>org.apache.maven.plugins</groupId>
362           <artifactId>maven-compiler-plugin</artifactId>
363           <version>3.8.0</version>
364         </plugin>
365         <plugin>
366           <groupId>com.github.sylvainlaurent.maven</groupId>
367           <artifactId>yaml-json-validator-maven-plugin</artifactId>
368           <version>1.0.1</version>
369         </plugin>
370         <plugin>
371           <groupId>pl.project13.maven</groupId>
372           <artifactId>git-commit-id-plugin</artifactId>
373           <version>4.0.0</version>
374         </plugin>
375       </plugins>
376     </pluginManagement>
377
378     <plugins>
379       <plugin>
380         <artifactId>maven-checkstyle-plugin</artifactId>
381         <version>2.17</version>
382         <configuration>
383           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
384           <suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
385         </configuration>
386       </plugin>
387       <!-- plugin for parsing the project version -->
388       <plugin>
389         <groupId>org.codehaus.mojo</groupId>
390         <artifactId>build-helper-maven-plugin</artifactId>
391         <executions>
392           <execution>
393             <id>parse-version</id>
394             <phase>pre-clean</phase>
395             <goals>
396               <goal>parse-version</goal>
397             </goals>
398           </execution>
399         </executions>
400       </plugin>
401
402       <!-- Java Code Coverage -->
403       <plugin>
404         <groupId>org.jacoco</groupId>
405         <artifactId>jacoco-maven-plugin</artifactId>
406         <inherited>false</inherited>
407         <executions>
408           <execution>
409             <id>default-instrument</id>
410             <goals>
411               <goal>instrument</goal>
412             </goals>
413           </execution>
414           <execution>
415             <id>default-restore-instrumented-classes</id>
416             <goals>
417               <goal>restore-instrumented-classes</goal>
418             </goals>
419           </execution>
420           <execution>
421             <id>default-report</id>
422             <goals>
423               <goal>report</goal>
424             </goals>
425             <configuration>
426               <dataFile>${project.build.directory}/jacoco.exec</dataFile>
427             </configuration>
428           </execution>
429         </executions>
430       </plugin>
431
432       <plugin>
433         <groupId>org.apache.maven.plugins</groupId>
434         <artifactId>maven-site-plugin</artifactId>
435         <version>3.7.1</version>
436         <dependencies>
437           <dependency>
438             <groupId>org.apache.maven.wagon</groupId>
439             <artifactId>wagon-webdav-jackrabbit</artifactId>
440             <version>3.0.0</version>
441           </dependency>
442         </dependencies>
443       </plugin>
444
445       <!-- Set the deployment repositories properties. -->
446       <plugin>
447         <groupId>org.codehaus.gmaven</groupId>
448         <artifactId>gmaven-plugin</artifactId>
449         <executions>
450           <execution>
451             <inherited>false</inherited>
452             <phase>integration-test</phase>
453             <goals>
454               <goal>execute</goal>
455             </goals>
456             <configuration>
457               <source>
458                 pom.properties['deploy.url'] =
459                         pom.version.contains('-SNAPSHOT') ?
460                                 project.distributionManagement.snapshotRepository.url :
461                                 project.distributionManagement.repository.url;
462                 pom.properties['repo.id'] = pom.version.contains('-SNAPSHOT') ?
463                         project.distributionManagement.snapshotRepository.id :
464                         project.distributionManagement.repository.id;
465               </source>
466             </configuration>
467           </execution>
468         </executions>
469       </plugin>
470       <plugin>
471         <groupId>org.apache.maven.plugins</groupId>
472         <artifactId>maven-compiler-plugin</artifactId>
473         <configuration>
474           <source>1.8</source>
475           <target>1.8</target>
476         </configuration>
477       </plugin>
478       <plugin>
479         <groupId>org.apache.maven.plugins</groupId>
480         <artifactId>maven-surefire-plugin</artifactId>
481         <configuration>
482           <printSummary>false</printSummary>
483           <systemPropertyVariables>
484             <jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
485           </systemPropertyVariables>
486         </configuration>
487       </plugin>
488       <plugin>
489         <groupId>pl.project13.maven</groupId>
490         <artifactId>git-commit-id-plugin</artifactId>
491         <executions>
492           <execution>
493             <goals>
494               <goal>revision</goal>
495             </goals>
496           </execution>
497         </executions>
498         <configuration>
499           <generateGitPropertiesFile>true</generateGitPropertiesFile>
500           <generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties
501           </generateGitPropertiesFilename>
502           <failOnNoGitDirectory>true</failOnNoGitDirectory>
503           <verbose>false</verbose>
504           <includeOnlyProperties>
505             <includeOnlyProperty>git.build.version</includeOnlyProperty>
506             <includeOnlyProperty>git.build.time</includeOnlyProperty>
507             <includeOnlyProperty>git.commit.id</includeOnlyProperty>
508             <includeOnlyProperty>git.commit.time</includeOnlyProperty>
509             <includeOnlyProperty>git.commit.user.name</includeOnlyProperty>
510             <includeOnlyProperty>git.commit.user.email</includeOnlyProperty>
511             <includeOnlyProperty>git.commit.message.short</includeOnlyProperty>
512             <includeOnlyProperty>git.commit.message.full</includeOnlyProperty>
513           </includeOnlyProperties>
514           <gitDescribe>
515             <skip>true</skip>
516           </gitDescribe>
517           <useNativeGit>false</useNativeGit>
518         </configuration>
519       </plugin>
520     </plugins>
521   </build>
522
523   <profiles>
524     <profile>
525       <id>all</id>
526       <activation>
527         <activeByDefault>true</activeByDefault>
528       </activation>
529       <modules>
530         <module>onboarding</module>
531         <module>common-app-logging</module>
532         <module>common-app-api</module>
533         <module>common-be</module>
534         <module>catalog-dao</module>
535         <module>catalog-model</module>
536         <module>catalog-be</module>
537         <module>asdctool</module>
538         <module>catalog-ui</module>
539         <module>catalog-fe</module>
540         <module>test-apis-ci</module>
541         <module>ui-ci</module>
542         <module>sdc-os-chef</module>
543         <module>utils/webseal-simulator</module>
544       </modules>
545
546     </profile>
547
548     <profile>
549       <id>catalog</id>
550       <activation>
551         <activeByDefault>false</activeByDefault>
552       </activation>
553       <modules>
554         <module>common-app-logging</module>
555         <module>common-app-api</module>
556         <module>common-be</module>
557         <module>catalog-dao</module>
558         <module>catalog-model</module>
559         <module>catalog-be</module>
560         <module>asdctool</module>
561         <module>catalog-ui</module>
562         <module>catalog-fe</module>
563         <module>test-apis-ci</module>
564         <module>ui-ci</module>
565       </modules>
566     </profile>
567
568     <profile>
569       <id>onboarding</id>
570       <activation>
571         <activeByDefault>false</activeByDefault>
572       </activation>
573       <modules>
574         <module>onboarding</module>
575       </modules>
576     </profile>
577
578   </profiles>
579
580   <repositories>
581     <!-- LF repositories -->
582     <repository>
583       <id>ecomp-releases</id>
584       <name>Release Repository</name>
585       <url>${nexus.proxy}/content/repositories/releases/</url>
586     </repository>
587     <repository>
588       <id>ecomp-snapshots</id>
589       <name>Snapshots Repository</name>
590       <url>${nexus.proxy}/content/repositories/snapshots/</url>
591     </repository>
592     <repository>
593       <id>ecomp-public</id>
594       <name>Public Repository</name>
595       <url>${nexus.proxy}/content/repositories/public/</url>
596     </repository>
597     <!-- LF repositories END-->
598   </repositories>
599
600   <distributionManagement>
601     <repository>
602       <id>ecomp-releases</id>
603       <name>Release Repository</name>
604       <url>${nexus.proxy}/content/repositories/releases/</url>
605     </repository>
606     <snapshotRepository>
607       <id>ecomp-snapshots</id>
608       <name>Snapshot Repository</name>
609       <url>${nexus.proxy}/content/repositories/snapshots/</url>
610     </snapshotRepository>
611     <site>
612       <id>ecomp-site</id>
613       <url>dav:${nexus.proxy}${sitePath}</url>
614     </site>
615   </distributionManagement>
616 </project>
617