[sdc] update to the current code base
[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>73</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-SNAPSHOT</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                 <!--JaCoCO -->
90                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
91                 <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath>
92                 <sonar.jacoco.itReportPath>${project.basedir}/target/it-jacoco.exec</sonar.jacoco.itReportPath>
93                 <sonar.language>java</sonar.language>
94                 <sonar.version>${project.version}</sonar.version>
95
96                 <!--cassandra -->
97                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
98                 <!-- maven central (Nexus) -->
99                 <nexus.id.release>nexus</nexus.id.release>
100                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
101                 <!-- Sonar properties -->
102                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
103                 <sonar.skipDesign>true</sonar.skipDesign>
104                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
105                 <sonar.sources>.</sonar.sources>
106                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
107                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
108                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
109
110                 <!--nexus-->
111                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
112                 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
113                 <staging.profile.id>176c31dfe190a</staging.profile.id>
114                 <!--maven-->
115                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
116         </properties>
117
118         <reporting>
119                 <plugins>
120                         <plugin>
121                                 <groupId>org.apache.maven.plugins</groupId>
122                                 <artifactId>maven-javadoc-plugin</artifactId>
123                                 <version>2.10.4</version>
124                                 <configuration>
125                                         <failOnError>false</failOnError>
126                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
127                                         <docletArtifact>
128                                                 <groupId>org.umlgraph</groupId>
129                                                 <artifactId>umlgraph</artifactId>
130                                                 <version>5.6</version>
131                                         </docletArtifact>
132                                         <additionalparam>-views</additionalparam>
133                                         <useStandardDocletOptions>true</useStandardDocletOptions>
134                                 </configuration>
135                         </plugin>
136                 </plugins>
137         </reporting>
138
139         <build>
140                 <pluginManagement>
141                         <plugins>
142
143                                 <plugin>
144                                         <groupId>org.apache.maven.plugins</groupId>
145                                         <artifactId>maven-site-plugin</artifactId>
146                                         <version>3.4</version>
147                                         <dependencies>
148                                                 <dependency>
149                                                         <groupId>org.apache.maven.wagon</groupId>
150                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
151                                                         <version>2.10</version>
152                                                 </dependency>
153                                         </dependencies>
154                                 </plugin>
155
156
157                                 <plugin>
158                                         <groupId>org.apache.maven.plugins</groupId>
159                                         <artifactId>maven-assembly-plugin</artifactId>
160                                         <version>2.6</version>
161                                 </plugin>
162
163                                 <plugin>
164                                         <groupId>org.codehaus.mojo</groupId>
165                                         <artifactId>exec-maven-plugin</artifactId>
166                                         <version>1.4.0</version>
167                                 </plugin>
168                                 <plugin>
169                                         <groupId>org.sonarsource.scanner.maven</groupId>
170                                         <artifactId>sonar-maven-plugin</artifactId>
171                                         <version>3.0.2</version>
172                                 </plugin>
173                         </plugins>
174                 </pluginManagement>
175
176                 <plugins>
177                         <plugin>
178                                 <artifactId>maven-surefire-plugin</artifactId>
179                                 <version>2.19.1</version>
180                                 <configuration>
181                                         <systemPropertyVariables>
182                                                 <logback.configurationFile>src/test/resources/logback-test.xml</logback.configurationFile>
183                                         </systemPropertyVariables>
184                                 </configuration>
185                         </plugin>
186                         <!-- plugin for parsing the project version -->
187                         <plugin>
188                                 <groupId>org.codehaus.mojo</groupId>
189                                 <artifactId>build-helper-maven-plugin</artifactId>
190                                 <version>1.8</version>
191                                 <executions>
192                                         <execution>
193                                                 <id>parse-version</id>
194                                                 <goals>
195                                                         <goal>parse-version</goal>
196                                                 </goals>
197                                         </execution>
198                                 </executions>
199                         </plugin>
200
201                         <!-- Set the JDK compiler version. -->
202                         <plugin>
203                                 <groupId>org.apache.maven.plugins</groupId>
204                                 <artifactId>maven-compiler-plugin</artifactId>
205                                 <version>2.5.1</version>
206                                 <inherited>true</inherited>
207                                 <configuration>
208                                         <source>1.8</source>
209                                         <target>1.8</target>
210                                 </configuration>
211                         </plugin>
212
213                         <!-- Java Code Coverage -->
214                         <plugin>
215                                 <groupId>org.jacoco</groupId>
216                                 <artifactId>jacoco-maven-plugin</artifactId>
217                                 <version>0.7.1.201405082137</version>
218                                 <inherited>True</inherited>
219                                 <executions>
220                                         <!-- Unit-Tests -->
221                                         <execution>
222                                                 <id>prepare-agent</id>
223                                                 <goals>
224                                                         <goal>prepare-agent</goal>
225                                                 </goals>
226                                                 <configuration>
227                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
228                                                 </configuration>
229                                         </execution>
230                                         <execution>
231                                                 <id>report</id>
232                                                 <goals>
233                                                         <goal>report</goal>
234                                                 </goals>
235                                                 <configuration>
236                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
237                                                         <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
238                                                 </configuration>
239                                         </execution>
240
241                                         <!-- Integration Tests (Only report goal) -->
242                                         <execution>
243                                                 <id>report-integration</id>
244                                                 <goals>
245                                                         <goal>report-integration</goal>
246                                                 </goals>
247                                                 <configuration>
248                                                         <dataFile>${sonar.jacoco.itReportPath}</dataFile>
249                                                         <outputDirectory>${project.basedir}/target/site/it-jacoco</outputDirectory>
250                                                 </configuration>
251                                         </execution>
252                                 </executions>
253                         </plugin>
254
255                         <!-- Set the deployment repositories properties. -->
256                         <plugin>
257                                 <groupId>org.codehaus.gmaven</groupId>
258                                 <artifactId>gmaven-plugin</artifactId>
259                                 <version>1.4</version>
260                                 <executions>
261                                         <execution>
262                                                 <inherited>false</inherited>
263                                                 <phase>integration-test</phase>
264                                                 <goals>
265                                                         <goal>execute</goal>
266                                                 </goals>
267                                                 <configuration>
268                                                         <source>
269                                                                 pom.properties['deploy.url']=
270                                                                 pom.version.contains('-SNAPSHOT') ?
271                                                                 project.distributionManagement.snapshotRepository.url :
272                                                                 project.distributionManagement.repository.url;
273                                                                 pom.properties['repo.id']= pom.version.contains('-SNAPSHOT') ?
274                                                                 project.distributionManagement.snapshotRepository.id :
275                                                                 project.distributionManagement.repository.id;
276                                                         </source>
277                                                 </configuration>
278                                         </execution>
279                                 </executions>
280                         </plugin>
281
282                         <!-- license plugin -->
283                         <plugin>
284                                 <groupId>org.codehaus.mojo</groupId>
285                                 <artifactId>license-maven-plugin</artifactId>
286                                 <version>1.10</version>
287                                 <configuration>
288                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
289                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
290                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
291                                         <sectionDelimiter>================================================================================</sectionDelimiter>
292                                         <licenseName>apache_v2</licenseName>
293                                         <inceptionYear>2017</inceptionYear>
294                                         <organizationName>AT&amp;T Intellectual Property. All rights reserved.</organizationName>
295                                         <projectName>SDC</projectName>
296                                         <canUpdateCopyright>true</canUpdateCopyright>
297                                         <canUpdateDescription>true</canUpdateDescription>
298                                         <canUpdateLicense>true</canUpdateLicense>
299                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
300                                         <verbose>false</verbose>
301                                         <includes>
302                                                 <include>**/*.java</include>
303                                                 <include>**/*.ts</include>
304                                         </includes>
305                                         <excludes>
306                                                 <exclude>**/*.d.ts</exclude>
307                                         </excludes>
308                                         <roots>
309                                                 <root>src</root>
310                                                 <root>app</root>
311                                                 <root>server-mock</root>
312                                                 <root>typings</root>
313                                         </roots>
314                                         <extraExtensions>
315                                                 <ts>java</ts>
316                                         </extraExtensions>
317                                 </configuration>
318                                 <executions>
319                                         <execution>
320                                                 <id>first</id>
321                                                 <goals>
322                                                         <goal>update-file-header</goal>
323                                                 </goals>
324                                                 <!--phase>process-sources</phase -->
325                                         </execution>
326                                 </executions>
327                         </plugin>
328                 </plugins>
329         </build>
330
331         <profiles>
332                 <profile>
333                         <id>all</id>
334                         <activation>
335                                 <activeByDefault>true</activeByDefault>
336                         </activation>
337                         <modules>
338                                 <module>onboarding</module>
339                                 <module>security-utils</module>
340                                 <module>common-app-api</module>
341                                 <module>common-be</module>
342                                 <module>catalog-dao</module>
343                                 <module>catalog-model</module>
344                                 <module>catalog-be</module>
345                                 <module>asdctool</module>
346                                 <module>catalog-ui</module>
347                                 <module>catalog-fe</module>
348                                 <module>asdc-tests</module>
349                                 <module>test-apis-ci</module>
350                                 <module>ui-ci</module>
351                                 <module>sdc-os-chef</module>
352                         </modules>
353
354                 </profile>
355
356
357
358                 <profile>
359                         <id>catalog</id>
360                         <activation>
361                                 <activeByDefault>false</activeByDefault>
362                         </activation>
363                         <modules>
364                                 <module>security-utils</module>
365                                 <module>common-app-api</module>
366                                 <module>common-be</module>
367                                 <module>catalog-dao</module>
368                                 <module>catalog-model</module>
369                                 <module>catalog-be</module>
370                                 <module>asdctool</module>
371                                 <module>catalog-ui</module>
372                                 <module>catalog-fe</module>
373                                 <module>asdc-tests</module>
374                                 <module>test-apis-ci</module>
375                                 <module>ui-ci</module>
376                         </modules>
377                 
378                         <build>
379                                 <plugins>
380                                         <!-- Create the 'next build number' file -->
381                                         <plugin>
382                                                 <groupId>org.codehaus.mojo</groupId>
383                                                 <artifactId>exec-maven-plugin</artifactId>
384                                                 <version>1.5.0</version>
385                                                 
386                                                 <executions>
387                                                         <execution>
388                                                                 <inherited>false</inherited>
389                                                                 <goals>
390                                                                         <goal>exec</goal>
391                                                                 </goals>
392                                                                 <phase>initialize</phase>
393                                                                 <id>get.next.build.number</id>
394                                                                 <configuration>
395                                                                         <workingDirectory>${project.basedir}</workingDirectory>
396                                                                         <executable>/usr/bin/perl</executable>
397                                                                         <arguments>
398                                                                                 <argument>scripts/get_next_version.pl</argument>
399                                                                                 <argument>-groupId=${project.groupId}</argument>
400                                                                                 <argument>-artifactId=${project.artifactId}</argument>
401                                                                                 <argument>-baseVersion=${project.version}.${sprint.number}</argument>
402                                                                         </arguments>
403                                                                 </configuration>
404                                                         </execution>
405                                                 </executions>
406                                         </plugin>
407
408                                         <plugin>
409                                                 <groupId>org.codehaus.mojo</groupId>
410                                                 <artifactId>properties-maven-plugin</artifactId>
411                                                 <version>1.0-alpha-2</version>
412
413                                                 <executions>
414                                                         <execution>
415                                                                 <phase>initialize</phase>
416                                                                 <inherited>false</inherited>
417                                                                 <goals>
418                                                                         <goal>read-project-properties</goal>
419                                                                 </goals>
420                                                                 <configuration>
421                                                                         <files>
422                                                                                 <file>${project.build.directory}/FullReleaseVersion.properties</file>
423                                                                         </files>
424                                                                 </configuration>
425                                                         </execution>
426                                                 </executions>
427                                         </plugin>
428                                 </plugins>
429                         </build>
430                 </profile>
431
432                 <profile>
433                         <id>onboarding</id>
434                         <activation>
435                                 <activeByDefault>false</activeByDefault>
436                         </activation>
437                         <modules>
438                                 <module>onboarding</module>
439                         </modules>
440                 </profile>
441
442                 <profile>
443                         <id>Fortify</id>
444                         <activation>
445                                 <activeByDefault>false</activeByDefault>
446                         </activation>
447
448                         <build>
449                                 <plugins>
450                                         <plugin>
451                                                 <groupId>com.fortify.ps.maven.plugin</groupId>
452                                                 <artifactId>sca-maven-plugin</artifactId>
453                                                 <version>4.30</version>
454                                                 <configuration>
455                                                         <source>1.8</source>
456                                                         <buildId>${project.artifactId}</buildId>
457                                                         <toplevelArtifactId>${project.artifactId}</toplevelArtifactId>
458                                                         <fortify.sca.exclude>**/node_modules/*</fortify.sca.exclude>
459                                                 </configuration>
460                                         </plugin>
461                                 </plugins>
462                         </build>
463                 </profile>
464
465                 <profile>
466                         <id>WhiteSource</id>
467                         <activation>
468                                 <activeByDefault>false</activeByDefault>
469                         </activation>
470
471                         <build>
472                                 <plugins>
473                                         <plugin>
474                                                 <groupId>org.whitesource</groupId>
475                                                 <artifactId>whitesource-maven-plugin</artifactId>
476                                                 <version>3.1.6</version>
477                                                 <configuration>
478                                                         <orgToken>2809bf29-b00c-48c0-a1f0-ca5c9c22f3df</orgToken>
479                                                 </configuration>
480                                         </plugin>
481                                 </plugins>
482                         </build>
483                 </profile>
484
485         </profiles>
486
487         <repositories>
488                 <repository>
489                         <id>virtuos</id>
490                         <name>Virtuos</name>
491                         <url>http://nexus.virtuos.uos.de/nexus/content/repositories/public/</url>
492                         <layout>default</layout>
493                 </repository>
494                 <repository>
495                         <id>apache-public</id>
496                         <name>Apache-Public</name>
497                         <url>https://repository.apache.org/content/groups/public/</url>
498                         <layout>default</layout>
499                 </repository>
500                 <repository>
501                         <id>elasticsearch-releases</id>
502                         <url>https://maven.elasticsearch.org/releases</url>
503                         <releases>
504                                 <enabled>true</enabled>
505                         </releases>
506                         <snapshots>
507                                 <enabled>false</enabled>
508                         </snapshots>
509                 </repository>
510                 <repository>
511                         <id>central</id>
512                         <name>Official Maven repository</name>
513                         <url>http://repo2.maven.org/maven2/</url>
514                 </repository>
515                 <repository>
516                         <id>ecomp-releases</id>
517                         <name>Release Repository</name>
518                         <url>${nexus.proxy}/content/repositories/releases/</url>
519                 </repository>
520                 <repository>
521                         <id>ecomp-staging</id>
522                         <name>Staging Repository</name>
523                         <url>${nexus.proxy}/content/repositories/staging/</url>
524                 </repository>
525                 <repository>
526                         <id>ecomp-snapshots</id>
527                         <name>Snapshots Repository</name>
528                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
529                 </repository>
530                 <repository>
531                         <id>node</id>
532                         <name>Node</name>
533                         <url>https://maven-nodejs-proxy.pvtool.org/</url>
534                 </repository>
535                 <repository>
536                         <id>SonoType</id>
537                         <name>sonotype</name>
538                         <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
539                 </repository>
540         </repositories>
541
542         <distributionManagement>
543
544                 <repository>
545                         <id>ecomp-releases</id>
546                         <name>Release Repository</name>
547                         <url>${nexus.proxy}/content/repositories/releases/</url>
548                 </repository>
549                 <snapshotRepository>
550                         <id>ecomp-snapshots</id>
551                         <name>Snapshot Repository</name>
552                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
553                 </snapshotRepository>
554                 <site>
555                         <id>ecomp-site</id>
556                         <url>dav:${nexus.proxy}${sitePath}</url>
557                 </site>
558         </distributionManagement>
559 </project>
560