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