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