sonar plug in test
[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.4.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.24</jersey-bom.version>
31         <servlet-api.version>2.5</servlet-api.version>
32
33                 <artifact-generator-api.version>${project.version}</artifact-generator-api.version>
34                 <artifact-generator-core.version>${project.version}</artifact-generator-core.version>
35                 <ecomp.version>1.1.0</ecomp.version>
36                 <dox-common-lib.version>${project.version}</dox-common-lib.version>
37
38                 <!-- Elastic Search mapper (reference the elastic search version actually). -->
39                 <elastic-search.version>2.1.0</elastic-search.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>2.12.0</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.56-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 properties -->
99                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
100                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
101                 <sonar.sources>.</sonar.sources>
102                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
103                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
104                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
105                 <sonar.branch>${project.version}</sonar.branch>
106
107                 <assertj.version>3.8.0</assertj.version>
108
109                 <!--cassandra -->
110                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
111                 <!-- maven central (Nexus) -->
112                 <nexus.id.release>nexus</nexus.id.release>
113                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
114
115                 <assertj.version>3.8.0</assertj.version>
116
117                 <!--cassandra -->
118                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
119                 <!-- maven central (Nexus) -->
120                 <nexus.id.release>nexus</nexus.id.release>
121                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
122
123                 <!--nexus-->
124                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
125                 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
126                 <staging.profile.id>176c31dfe190a</staging.profile.id>
127                 <!--maven-->
128                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
129         </properties>
130
131         <reporting>
132                 <plugins>
133                         <plugin>
134                                 <groupId>org.apache.maven.plugins</groupId>
135                                 <artifactId>maven-javadoc-plugin</artifactId>
136                                 <version>3.0.0-M1</version>
137                                 <configuration>
138                                         <failOnError>false</failOnError>
139                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
140                                         <docletArtifact>
141                                                 <groupId>org.umlgraph</groupId>
142                                                 <artifactId>umlgraph</artifactId>
143                                                 <version>5.6</version>
144                                         </docletArtifact>
145                                         <additionalparam>-views</additionalparam>
146                                         <useStandardDocletOptions>true</useStandardDocletOptions>
147                                 </configuration>
148                         </plugin>
149                 </plugins>
150         </reporting>
151
152         <build>
153                 <pluginManagement>
154                         <plugins>
155
156                                 <plugin>
157                                         <groupId>org.apache.maven.plugins</groupId>
158                                         <artifactId>maven-site-plugin</artifactId>
159                                         <version>3.4</version>
160                                         <dependencies>
161                                                 <dependency>
162                                                         <groupId>org.apache.maven.wagon</groupId>
163                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
164                                                         <version>2.10</version>
165                                                 </dependency>
166                                         </dependencies>
167                                 </plugin>
168
169
170                                 <plugin>
171                                         <groupId>org.apache.maven.plugins</groupId>
172                                         <artifactId>maven-assembly-plugin</artifactId>
173                                         <version>2.6</version>
174                                 </plugin>
175
176                                 <plugin>
177                                         <groupId>org.codehaus.mojo</groupId>
178                                         <artifactId>exec-maven-plugin</artifactId>
179                                         <version>1.4.0</version>
180                                 </plugin>
181                                 <plugin>
182                                         <groupId>org.sonarsource.scanner.maven</groupId>
183                                         <artifactId>sonar-maven-plugin</artifactId>
184                                         <version>3.0.2</version>
185                                 </plugin>
186                         </plugins>
187                 </pluginManagement>
188
189                 <plugins>
190
191                         <!-- Staging Plugin -->
192                         <plugin>
193                                  <groupId>org.sonatype.plugins</groupId>
194                                  <artifactId>nexus-staging-maven-plugin</artifactId>
195                                  <version>1.6.7</version>
196                                  <extensions>true</extensions>
197                                  <configuration>
198                                                  <nexusUrl>${nexus.proxy}</nexusUrl>
199                                                  <stagingProfileId>${staging.profile.id}</stagingProfileId>
200                                                  <serverId>ecomp-staging</serverId>
201                                  </configuration>
202                         </plugin>
203
204                         <plugin>
205                                 <artifactId>maven-surefire-plugin</artifactId>
206                                 <version>2.19.1</version>
207                                 <configuration>
208                                         <systemPropertyVariables>
209                                                 <logback.configurationFile>src/test/resources/logback-test.xml</logback.configurationFile>
210                                         </systemPropertyVariables>
211                                 </configuration>
212                         </plugin>
213                         <!-- plugin for parsing the project version -->
214                         <plugin>
215                                 <groupId>org.codehaus.mojo</groupId>
216                                 <artifactId>build-helper-maven-plugin</artifactId>
217                                 <version>1.8</version>
218                                 <executions>
219                                         <execution>
220                                                 <id>parse-version</id>
221                                                 <goals>
222                                                         <goal>parse-version</goal>
223                                                 </goals>
224                                         </execution>
225                                 </executions>
226                         </plugin>
227
228                         <!-- Java Code Coverage -->
229                         <plugin>
230                                 <groupId>org.jacoco</groupId>
231                                 <artifactId>jacoco-maven-plugin</artifactId>
232                                 <version>0.7.9</version>
233                                 <configuration>
234                                         <append>true</append>
235                                         <destFile>${sonar.jacoco.reportPath}</destFile>
236                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
237                                 </configuration>
238                                 <executions>
239                                         <execution>
240                                                 <id>default-prepare-agent</id>
241                                                 <goals>
242                                                         <goal>prepare-agent</goal>
243                                                 </goals>
244                                         </execution>
245                                         <execution>
246                                                 <id>default-report</id>
247                                                 <goals>
248                                                         <goal>report</goal>
249                                                 </goals>
250                                         </execution>
251                                 </executions>
252                         </plugin>
253                         
254                         <plugin>
255                                 <groupId>org.apache.maven.plugins</groupId>
256                                 <artifactId>maven-site-plugin</artifactId>
257                                 <dependencies>
258                                         <dependency>
259                                                 <groupId>org.apache.maven.wagon</groupId>
260                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
261                                                 <version>2.10</version>
262                                         </dependency>
263                                 </dependencies>
264                         </plugin>
265
266                         <!-- Set the deployment repositories properties. -->
267                         <plugin>
268                                 <groupId>org.codehaus.gmaven</groupId>
269                                 <artifactId>gmaven-plugin</artifactId>
270                                 <version>1.4</version>
271                                 <executions>
272                                         <execution>
273                                                 <inherited>false</inherited>
274                                                 <phase>integration-test</phase>
275                                                 <goals>
276                                                         <goal>execute</goal>
277                                                 </goals>
278                                                 <configuration>
279                                                         <source>
280                                                                 pom.properties['deploy.url']=
281                                                                 pom.version.contains('-SNAPSHOT') ?
282                                                                 project.distributionManagement.snapshotRepository.url :
283                                                                 project.distributionManagement.repository.url;
284                                                                 pom.properties['repo.id']= pom.version.contains('-SNAPSHOT') ?
285                                                                 project.distributionManagement.snapshotRepository.id :
286                                                                 project.distributionManagement.repository.id;
287                                                         </source>
288                                                 </configuration>
289                                         </execution>
290                                 </executions>
291                         </plugin>
292                 </plugins>
293         </build>
294
295         <profiles>
296                 <profile>
297                         <id>all</id>
298                         <activation>
299                                 <activeByDefault>true</activeByDefault>
300                         </activation>
301                         <modules>
302                                 <module>build-tools</module>
303                                 <module>onboarding</module>
304                                 <module>security-utils</module>
305                                 <module>common-app-api</module>
306                                 <module>common-be</module>
307                                 <module>catalog-dao</module>
308                                 <module>catalog-model</module>
309                                 <module>catalog-be</module>
310                                 <module>asdctool</module>
311                                 <module>catalog-ui</module>
312                                 <module>catalog-fe</module>
313                                 <module>asdc-tests</module>
314                                 <module>test-apis-ci</module>
315                                 <module>ui-ci</module>
316                                 <module>sdc-os-chef</module>
317                         </modules>
318
319                 </profile>
320
321                 <profile>
322                         <id>catalog</id>
323                         <activation>
324                                 <activeByDefault>false</activeByDefault>
325                         </activation>
326                         <modules>
327                                 <module>security-utils</module>
328                                 <module>common-app-api</module>
329                                 <module>common-be</module>
330                                 <module>catalog-dao</module>
331                                 <module>catalog-model</module>
332                                 <module>catalog-be</module>
333                                 <module>asdctool</module>
334                                 <module>catalog-ui</module>
335                                 <module>catalog-fe</module>
336                                 <module>asdc-tests</module>
337                                 <module>test-apis-ci</module>
338                                 <module>ui-ci</module>
339                         </modules>                      
340                         
341                         <properties>
342                                 <ecomp.version>1.2.7</ecomp.version>
343                                 <artifact-generator-api.version>1710.0.0</artifact-generator-api.version>
344                                 <artifact-generator-core.version>1710.0.0</artifact-generator-core.version>
345                                 <dox-common-lib.version>1710.0.0</dox-common-lib.version>
346                                 <sdc-tosca-parser.version>1.1.32</sdc-tosca-parser.version>
347                         </properties>
348                 </profile>
349
350                 <profile>
351                         <id>onboarding</id>
352                         <activation>
353                                 <activeByDefault>false</activeByDefault>
354                         </activation>
355                         <modules>
356                                 <module>build-tools</module>
357                                 <module>onboarding</module>
358                         </modules>
359                 </profile>
360
361                 <profile>
362                         <id>dev-integ</id>
363                         <activation>
364                                 <activeByDefault>false</activeByDefault>
365                         </activation>
366                         <dependencies>
367                                 <dependency>
368                                         <groupId>org.togglz</groupId>
369                                         <artifactId>togglz-console</artifactId>
370                                         <version>${togglz.version}</version>
371                                 </dependency>
372                         </dependencies>
373                 </profile>
374         </profiles>
375
376         <repositories>
377                 <!-- LF repositories -->
378                 <repository>
379                         <id>ecomp-releases</id>
380                         <name>Release Repository</name>
381                         <url>${nexus.proxy}/content/repositories/releases/</url>
382                 </repository>
383                 <repository>
384                         <id>ecomp-staging</id>
385                         <name>Staging Repository</name>
386                         <url>${nexus.proxy}/content/repositories/staging/</url>
387                 </repository>
388                 <repository>
389                         <id>ecomp-snapshots</id>
390                         <name>Snapshots Repository</name>
391                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
392                 </repository>
393                 <repository>
394                         <id>ecomp-public</id>
395                         <name>Public Repository</name>
396                         <url>${nexus.proxy}/content/repositories/public/</url>
397                 </repository>
398                 <!-- LF repositories END-->
399         </repositories>
400
401         <distributionManagement>
402
403                 <repository>
404                         <id>ecomp-releases</id>
405                         <name>Release Repository</name>
406                         <url>${nexus.proxy}/content/repositories/releases/</url>
407                 </repository>
408                 <snapshotRepository>
409                         <id>ecomp-snapshots</id>
410                         <name>Snapshot Repository</name>
411                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
412                 </snapshotRepository>
413                 <site>
414                         <id>ecomp-site</id>
415                         <url>dav:${nexus.proxy}${sitePath}</url>
416                 </site>
417         </distributionManagement>
418 </project>
419