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