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