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