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