[SDC] rebase 1710 code
[sdc.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <groupId>org.openecomp.sdc</groupId>
6         <artifactId>sdc-main</artifactId>
7         <version>1.1.0-SNAPSHOT</version>
8         <packaging>pom</packaging>
9         
10
11         <properties>
12
13                 <!-- ==================== -->
14                 <!-- Generic properties -->
15                 <!-- ==================== -->
16                 <build.type>-SNAPSHOT</build.type>
17                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18                 <sprint.number>74</sprint.number>
19
20                 <!-- 3rd parties versions -->
21                 <lang3.version>3.3.2</lang3.version>
22                 <guava.version>18.0</guava.version>
23                 <titan.version>1.0.0</titan.version>
24                 <spring-boot.version>1.1.6.RELEASE</spring-boot.version>
25                 <spring.version>4.3.4.RELEASE</spring.version>
26                 <spring.security.version>3.2.3.RELEASE</spring.security.version>
27                 <spring.ldap.version>2.0.1.RELEASE</spring.ldap.version>
28         <jersey-bom.version>2.24</jersey-bom.version>
29         <servlet-api.version>2.5</servlet-api.version>
30
31                 <artifact-generator-api.version>1.1.0-SNAPSHOT</artifact-generator-api.version>
32                 <artifact-generator-core.version>1.1.0-SNAPSHOT</artifact-generator-core.version>
33                 <ecomp.version>1.1.0</ecomp.version>
34                 <dox-common-lib.version>1.1.0-SNAPSHOT</dox-common-lib.version>
35
36                 <!-- Elastic Search mapper (reference the elastic search version actually). -->
37                 <elastic-search.version>2.1.0</elastic-search.version>
38                 <catalog-artifacts.version>1.0.0-SNAPSHOT</catalog-artifacts.version>
39                 <catalog-builders.version>1.0.0-SNAPSHOT</catalog-builders.version>
40                 <jetty.version>9.2.10.v20150310</jetty.version>
41
42                 <!-- JSON and YAML Parsing -->
43                 <jackson.version>2.6.2</jackson.version>
44                 <jackson.yaml.version>2.8.1</jackson.yaml.version>
45                 <jackson.annotations.version>2.6.0</jackson.annotations.version>
46
47                 <!-- Yaml for properties -->
48                 <snakeyaml.version>1.14</snakeyaml.version>
49                 <functionaljava.version>4.4</functionaljava.version>
50                 <httpclient.version>4.4.1</httpclient.version>
51                 <httpcore.version>4.4.1</httpcore.version>
52                 <json-simple.version>1.1</json-simple.version>
53
54
55                 <!-- Logging start -->
56                 <!-- logback -->
57         <logback.version>1.1.2</logback.version>
58         <slf4j-api.version>1.7.10</slf4j-api.version>
59         <commons-codec>1.10</commons-codec>
60         <commons-logging>1.2</commons-logging>
61                 <groovy.version>2.3.5</groovy.version>
62                 <janino.version>3.0.6</janino.version>
63                 
64                 <!-- aspects -->
65                 <jcabi.version>0.20.1</jcabi.version>
66                 <aspectjrt.version>1.8.4</aspectjrt.version>
67                 <aspectj.version>1.7.4</aspectj.version>
68                 <jcabi.plugin.version>0.13.2</jcabi.plugin.version>
69                 
70                 <!-- Logging end -->
71                 <!-- System Metrics -->
72                 <sigar.version>1.6.4</sigar.version>
73
74                 <regex.version>3.0.3</regex.version>
75
76                 <codehaus.jackson.core>1.9.2</codehaus.jackson.core>
77
78                 <!--GSON-->
79                 <gson.version>2.3.1</gson.version>
80
81         <!--listen to file changes-->
82         <commons-jci-core.version>1.1</commons-jci-core.version>
83
84                 <!--TESTING-->
85                 <mockito.version>1.10.19</mockito.version>
86                 <junit.version>4.12</junit.version>
87                 <testng.version>6.9.10</testng.version>
88                 <extentreports.version>3.0.3</extentreports.version>
89                 
90                 <!-- parser-->
91                 <sdc-tosca-parser.version>1.1.14-SNAPSHOT</sdc-tosca-parser.version>
92                 
93                 <!--JaCoCO -->
94                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
95                 <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
96                 <sonar.jacoco.itReportPath>${project.basedir}/target/it-jacoco.exec</sonar.jacoco.itReportPath>
97                 <sonar.language>java</sonar.language>
98                 <sonar.version>${project.version}</sonar.version>
99
100                 <!--cassandra -->
101                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
102                 <!-- maven central (Nexus) -->
103                 <nexus.id.release>nexus</nexus.id.release>
104                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
105                 <!-- Sonar properties -->
106                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
107                 <sonar.skipDesign>true</sonar.skipDesign>
108                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
109                 <sonar.sources>.</sonar.sources>
110                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
111                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
112                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
113
114                 <!--nexus-->
115                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
116                 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
117                 <staging.profile.id>176c31dfe190a</staging.profile.id>
118                 <!--maven-->
119                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
120         </properties>
121
122         <reporting>
123                 <plugins>
124                         <plugin>
125                                 <groupId>org.apache.maven.plugins</groupId>
126                                 <artifactId>maven-javadoc-plugin</artifactId>
127                                 <version>2.10.4</version>
128                                 <configuration>
129                                         <failOnError>false</failOnError>
130                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
131                                         <docletArtifact>
132                                                 <groupId>org.umlgraph</groupId>
133                                                 <artifactId>umlgraph</artifactId>
134                                                 <version>5.6</version>
135                                         </docletArtifact>
136                                         <additionalparam>-views</additionalparam>
137                                         <useStandardDocletOptions>true</useStandardDocletOptions>
138                                 </configuration>
139                         </plugin>
140                 </plugins>
141         </reporting>
142
143         <build>
144                 <pluginManagement>
145                         <plugins>
146
147                                 <plugin>
148                                         <groupId>org.apache.maven.plugins</groupId>
149                                         <artifactId>maven-site-plugin</artifactId>
150                                         <version>3.4</version>
151                                         <dependencies>
152                                                 <dependency>
153                                                         <groupId>org.apache.maven.wagon</groupId>
154                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
155                                                         <version>2.10</version>
156                                                 </dependency>
157                                         </dependencies>
158                                 </plugin>
159
160
161                                 <plugin>
162                                         <groupId>org.apache.maven.plugins</groupId>
163                                         <artifactId>maven-assembly-plugin</artifactId>
164                                         <version>2.6</version>
165                                 </plugin>
166
167                                 <plugin>
168                                         <groupId>org.codehaus.mojo</groupId>
169                                         <artifactId>exec-maven-plugin</artifactId>
170                                         <version>1.4.0</version>
171                                 </plugin>
172                                 <plugin>
173                                         <groupId>org.sonarsource.scanner.maven</groupId>
174                                         <artifactId>sonar-maven-plugin</artifactId>
175                                         <version>3.0.2</version>
176                                 </plugin>
177                         </plugins>
178                 </pluginManagement>
179
180                 <plugins>
181                         <plugin>
182                                 <artifactId>maven-surefire-plugin</artifactId>
183                                 <version>2.19.1</version>
184                                 <configuration>
185                                         <systemPropertyVariables>
186                                                 <logback.configurationFile>src/test/resources/logback-test.xml</logback.configurationFile>
187                                         </systemPropertyVariables>
188                                 </configuration>
189                         </plugin>
190                         <!-- plugin for parsing the project version -->
191                         <plugin>
192                                 <groupId>org.codehaus.mojo</groupId>
193                                 <artifactId>build-helper-maven-plugin</artifactId>
194                                 <version>1.8</version>
195                                 <executions>
196                                         <execution>
197                                                 <id>parse-version</id>
198                                                 <goals>
199                                                         <goal>parse-version</goal>
200                                                 </goals>
201                                         </execution>
202                                 </executions>
203                         </plugin>
204
205                         <!-- Set the JDK compiler version. -->
206                         <plugin>
207                                 <groupId>org.apache.maven.plugins</groupId>
208                                 <artifactId>maven-compiler-plugin</artifactId>
209                                 <version>2.5.1</version>
210                                 <inherited>true</inherited>
211                                 <configuration>
212                                         <source>1.8</source>
213                                         <target>1.8</target>
214                                 </configuration>
215                         </plugin>
216
217                         <!-- Java Code Coverage -->
218                         <plugin>
219                                 <groupId>org.jacoco</groupId>
220                                 <artifactId>jacoco-maven-plugin</artifactId>
221                                 <version>0.7.1.201405082137</version>
222                                 <inherited>True</inherited>
223                                 <executions>
224                                         <!-- Unit-Tests -->
225                                         <execution>
226                                                 <id>prepare-agent</id>
227                                                 <goals>
228                                                         <goal>prepare-agent</goal>
229                                                 </goals>
230                                                 <configuration>
231                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
232                                                 </configuration>
233                                         </execution>
234                                         <execution>
235                                                 <id>report</id>
236                                                 <goals>
237                                                         <goal>report</goal>
238                                                 </goals>
239                                                 <configuration>
240                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
241                                                         <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
242                                                 </configuration>
243                                         </execution>
244
245                                         <!-- Integration Tests (Only report goal) -->
246                                         <execution>
247                                                 <id>report-integration</id>
248                                                 <goals>
249                                                         <goal>report-integration</goal>
250                                                 </goals>
251                                                 <configuration>
252                                                         <dataFile>${sonar.jacoco.itReportPath}</dataFile>
253                                                         <outputDirectory>${project.basedir}/target/site/it-jacoco</outputDirectory>
254                                                 </configuration>
255                                         </execution>
256                                 </executions>
257                         </plugin>
258
259                         <!-- Set the deployment repositories properties. -->
260                         <plugin>
261                                 <groupId>org.codehaus.gmaven</groupId>
262                                 <artifactId>gmaven-plugin</artifactId>
263                                 <version>1.4</version>
264                                 <executions>
265                                         <execution>
266                                                 <inherited>false</inherited>
267                                                 <phase>integration-test</phase>
268                                                 <goals>
269                                                         <goal>execute</goal>
270                                                 </goals>
271                                                 <configuration>
272                                                         <source>
273                                                                 pom.properties['deploy.url']=
274                                                                 pom.version.contains('-SNAPSHOT') ?
275                                                                 project.distributionManagement.snapshotRepository.url :
276                                                                 project.distributionManagement.repository.url;
277                                                                 pom.properties['repo.id']= pom.version.contains('-SNAPSHOT') ?
278                                                                 project.distributionManagement.snapshotRepository.id :
279                                                                 project.distributionManagement.repository.id;
280                                                         </source>
281                                                 </configuration>
282                                         </execution>
283                                 </executions>
284                         </plugin>
285
286                         <!-- license plugin -->
287                         <plugin>
288                                 <groupId>org.codehaus.mojo</groupId>
289                                 <artifactId>license-maven-plugin</artifactId>
290                                 <version>1.10</version>
291                                 <configuration>
292                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
293                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
294                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
295                                         <sectionDelimiter>================================================================================</sectionDelimiter>
296                                         <licenseName>apache_v2</licenseName>
297                                         <inceptionYear>2017</inceptionYear>
298                                         <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
299                                         <projectName>SDC</projectName>
300                                         <canUpdateCopyright>true</canUpdateCopyright>
301                                         <canUpdateDescription>true</canUpdateDescription>
302                                         <canUpdateLicense>true</canUpdateLicense>
303                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
304                                         <verbose>false</verbose>
305                                         <includes>
306                                                 <include>**/*.java</include>
307                                                 <include>**/*.ts</include>
308                                         </includes>
309                                         <excludes>
310                                                 <exclude>**/*.d.ts</exclude>
311                                         </excludes>
312                                         <roots>
313                                                 <root>src</root>
314                                                 <root>app</root>
315                                                 <root>server-mock</root>
316                                                 <root>typings</root>
317                                         </roots>
318                                         <extraExtensions>
319                                                 <ts>java</ts>
320                                         </extraExtensions>
321                                 </configuration>
322                                 <executions>
323                                         <execution>
324                                                 <id>first</id>
325                                                 <goals>
326                                                         <goal>update-file-header</goal>
327                                                 </goals>
328                                                 <!--phase>process-sources</phase -->
329                                         </execution>
330                                 </executions>
331                         </plugin>
332                 </plugins>
333         </build>
334
335         <profiles>
336                 <profile>
337                         <id>all</id>
338                         <activation>
339                                 <activeByDefault>true</activeByDefault>
340                         </activation>
341                         <modules>
342                                 <module>onboarding</module>
343                                 <module>security-utils</module>
344                                 <module>common-app-api</module>
345                                 <module>common-be</module>
346                                 <module>catalog-dao</module>
347                                 <module>catalog-model</module>
348                                 <module>catalog-be</module>
349                                 <module>asdctool</module>
350                                 <module>catalog-ui</module>
351                                 <module>catalog-fe</module>
352                                 <module>asdc-tests</module>
353                                 <module>test-apis-ci</module>
354                                 <module>ui-ci</module>
355                                 <module>sdc-os-chef</module>
356                         </modules>
357
358                 </profile>
359
360                 <profile>
361                         <id>catalog</id>
362                         <activation>
363                                 <activeByDefault>false</activeByDefault>
364                         </activation>
365                         <modules>
366                                 <module>security-utils</module>
367                                 <module>common-app-api</module>
368                                 <module>common-be</module>
369                                 <module>catalog-dao</module>
370                                 <module>catalog-model</module>
371                                 <module>catalog-be</module>
372                                 <module>asdctool</module>
373                                 <module>catalog-ui</module>
374                                 <module>catalog-fe</module>
375                                 <module>asdc-tests</module>
376                                 <module>test-apis-ci</module>
377                                 <module>ui-ci</module>
378                         </modules>                      
379                         
380                         <properties>
381                                 <ecomp.version>1.2.7</ecomp.version>
382                                 <artifact-generator-api.version>1707.0.0</artifact-generator-api.version>
383                                 <artifact-generator-core.version>1707.0.0</artifact-generator-core.version>
384                                 <dox-common-lib.version>1707.0.0</dox-common-lib.version>
385                                 <sdc-tosca-parser.version>1.1.14</sdc-tosca-parser.version>
386                         </properties>   
387                         
388                         
389                 </profile>
390                 
391                 <profile>
392                         <id>build</id>
393                         <activation>
394                                 <activeByDefault>false</activeByDefault>
395                         </activation>
396                         <modules>
397                                 <module>security-utils</module>
398                                 <module>common-app-api</module>
399                                 <module>common-be</module>
400                                 <module>catalog-dao</module>
401                                 <module>catalog-model</module>
402                                 <module>catalog-be</module>
403                                 <module>asdctool</module>
404                                 <module>catalog-ui</module>
405                                 <module>catalog-fe</module>
406                                 <module>asdc-tests</module>
407                                 <module>test-apis-ci</module>
408                                 <module>ui-ci</module>
409                         </modules>
410                         
411                         
412                         <properties>
413                                 <ecomp.version>1.2.7</ecomp.version>
414                                 <artifact-generator-api.version>1707.0.0</artifact-generator-api.version>
415                                 <artifact-generator-core.version>1707.0.0</artifact-generator-core.version>
416                                 <dox-common-lib.version>1707.0.0</dox-common-lib.version>
417                                 <sdc-tosca-parser.version>1.1.14</sdc-tosca-parser.version>
418                         </properties>
419                 
420                         <build>
421                                 <plugins>
422                                         <!-- Create the 'next build number' file -->
423                                         <plugin>
424                                                 <groupId>org.codehaus.mojo</groupId>
425                                                 <artifactId>exec-maven-plugin</artifactId>
426                                                 <version>1.5.0</version>
427                                                 
428                                                 <executions>
429                                                         <execution>
430                                                                 <inherited>false</inherited>
431                                                                 <goals>
432                                                                         <goal>exec</goal>
433                                                                 </goals>
434                                                                 <phase>initialize</phase>
435                                                                 <id>get.next.build.number</id>
436                                                                 <configuration>
437                                                                         <workingDirectory>${project.basedir}</workingDirectory>
438                                                                         <executable>/usr/bin/perl</executable>
439                                                                         <arguments>
440                                                                                 <argument>scripts/get_next_version.pl</argument>
441                                                                                 <argument>-groupId=${project.groupId}</argument>
442                                                                                 <argument>-artifactId=${project.artifactId}</argument>
443                                                                                 <argument>-baseVersion=${project.version}.${sprint.number}</argument>
444                                                                         </arguments>
445                                                                 </configuration>
446                                                         </execution>
447                                                 </executions>
448                                         </plugin>
449
450                                         <plugin>
451                                                 <groupId>org.codehaus.mojo</groupId>
452                                                 <artifactId>properties-maven-plugin</artifactId>
453                                                 <version>1.0-alpha-2</version>
454
455                                                 <executions>
456                                                         <execution>
457                                                                 <phase>initialize</phase>
458                                                                 <inherited>false</inherited>
459                                                                 <goals>
460                                                                         <goal>read-project-properties</goal>
461                                                                 </goals>
462                                                                 <configuration>
463                                                                         <files>
464                                                                                 <file>${project.build.directory}/FullReleaseVersion.properties</file>
465                                                                         </files>
466                                                                 </configuration>
467                                                         </execution>
468                                                 </executions>
469                                         </plugin>
470                                 </plugins>
471                         </build>
472                 </profile>
473
474                 <profile>
475                         <id>onboarding</id>
476                         <activation>
477                                 <activeByDefault>false</activeByDefault>
478                         </activation>
479                         <modules>
480                                 <module>onboarding</module>
481                         </modules>
482                 </profile>
483
484                 <profile>
485                         <id>Fortify</id>
486                         <activation>
487                                 <activeByDefault>false</activeByDefault>
488                         </activation>
489
490                         <build>
491                                 <plugins>
492                                         <plugin>
493                                                 <groupId>com.fortify.ps.maven.plugin</groupId>
494                                                 <artifactId>sca-maven-plugin</artifactId>
495                                                 <version>4.30</version>
496                                                 <configuration>
497                                                         <source>1.8</source>
498                                                         <buildId>${project.artifactId}</buildId>
499                                                         <toplevelArtifactId>${project.artifactId}</toplevelArtifactId>
500                                                         <fortify.sca.exclude>**/node_modules/*</fortify.sca.exclude>
501                                                 </configuration>
502                                         </plugin>
503                                 </plugins>
504                         </build>
505                 </profile>
506
507                 <profile>
508                         <id>WhiteSource</id>
509                         <activation>
510                                 <activeByDefault>false</activeByDefault>
511                         </activation>
512
513                         <build>
514                                 <plugins>
515                                         <plugin>
516                                                 <groupId>org.whitesource</groupId>
517                                                 <artifactId>whitesource-maven-plugin</artifactId>
518                                                 <version>3.1.6</version>
519                                                 <configuration>
520                                                         <orgToken>2809bf29-b00c-48c0-a1f0-ca5c9c22f3df</orgToken>
521                                                 </configuration>
522                                         </plugin>
523                                 </plugins>
524                         </build>
525                 </profile>
526
527         </profiles>
528
529         <repositories>
530                 <repository>
531                         <id>virtuos</id>
532                         <name>Virtuos</name>
533                         <url>http://nexus.virtuos.uos.de/nexus/content/repositories/public/</url>
534                         <layout>default</layout>
535                 </repository>
536                 <repository>
537                         <id>apache-public</id>
538                         <name>Apache-Public</name>
539                         <url>https://repository.apache.org/content/groups/public/</url>
540                         <layout>default</layout>
541                 </repository>
542                 <repository>
543                         <id>elasticsearch-releases</id>
544                         <url>https://maven.elasticsearch.org/releases</url>
545                         <releases>
546                                 <enabled>true</enabled>
547                         </releases>
548                         <snapshots>
549                                 <enabled>false</enabled>
550                         </snapshots>
551                 </repository>
552                 <repository>
553                         <id>central</id>
554                         <name>Official Maven repository</name>
555                         <url>http://repo2.maven.org/maven2/</url>
556                 </repository>
557                 <repository>
558                         <id>ecomp-releases</id>
559                         <name>Release Repository</name>
560                         <url>${nexus.proxy}/content/repositories/releases/</url>
561                 </repository>
562                 <repository>
563                         <id>ecomp-staging</id>
564                         <name>Staging Repository</name>
565                         <url>${nexus.proxy}/content/repositories/staging/</url>
566                 </repository>
567                 <repository>
568                         <id>ecomp-snapshots</id>
569                         <name>Snapshots Repository</name>
570                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
571                 </repository>
572                 <repository>
573                         <id>node</id>
574                         <name>Node</name>
575                         <url>https://maven-nodejs-proxy.pvtool.org/</url>
576                 </repository>
577                 <repository>
578                         <id>SonoType</id>
579                         <name>sonotype</name>
580                         <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
581                 </repository>
582         </repositories>
583
584         <distributionManagement>
585
586                 <repository>
587                         <id>ecomp-releases</id>
588                         <name>Release Repository</name>
589                         <url>${nexus.proxy}/content/repositories/releases/</url>
590                 </repository>
591                 <snapshotRepository>
592                         <id>ecomp-snapshots</id>
593                         <name>Snapshot Repository</name>
594                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
595                 </snapshotRepository>
596                 <site>
597                         <id>ecomp-site</id>
598                         <url>dav:${nexus.proxy}${sitePath}</url>
599                 </site>
600         </distributionManagement>
601 </project>
602