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