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