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