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