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