add stagging plugin
[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
181                         <!-- Staging Plugin -->
182                         <plugin>
183                                  <groupId>org.sonatype.plugins</groupId>
184                                  <artifactId>nexus-staging-maven-plugin</artifactId>
185                                  <version>1.6.7</version>
186                                  <extensions>true</extensions>
187                                  <configuration>
188                                                  <nexusUrl>${nexus.proxy}</nexusUrl>
189                                                  <stagingProfileId>${staging.profile.id}</stagingProfileId>
190                                                  <serverId>ecomp-staging</serverId>
191                                  </configuration>
192                         </plugin>
193
194                         <plugin>
195                                 <artifactId>maven-surefire-plugin</artifactId>
196                                 <version>2.19.1</version>
197                                 <configuration>
198                                         <systemPropertyVariables>
199                                                 <logback.configurationFile>src/test/resources/logback-test.xml</logback.configurationFile>
200                                         </systemPropertyVariables>
201                                 </configuration>
202                         </plugin>
203                         <!-- plugin for parsing the project version -->
204                         <plugin>
205                                 <groupId>org.codehaus.mojo</groupId>
206                                 <artifactId>build-helper-maven-plugin</artifactId>
207                                 <version>1.8</version>
208                                 <executions>
209                                         <execution>
210                                                 <id>parse-version</id>
211                                                 <goals>
212                                                         <goal>parse-version</goal>
213                                                 </goals>
214                                         </execution>
215                                 </executions>
216                         </plugin>
217
218                         <!-- Set the JDK compiler version. -->
219                         <plugin>
220                                 <groupId>org.apache.maven.plugins</groupId>
221                                 <artifactId>maven-compiler-plugin</artifactId>
222                                 <version>2.5.1</version>
223                                 <inherited>true</inherited>
224                                 <configuration>
225                                         <source>1.8</source>
226                                         <target>1.8</target>
227                                 </configuration>
228                         </plugin>
229
230                         <!-- Java Code Coverage -->
231                         <plugin>
232                                 <groupId>org.jacoco</groupId>
233                                 <artifactId>jacoco-maven-plugin</artifactId>
234                                 <version>0.7.1.201405082137</version>
235                                 <inherited>True</inherited>
236                                 <executions>
237                                         <!-- Unit-Tests -->
238                                         <execution>
239                                                 <id>prepare-agent</id>
240                                                 <goals>
241                                                         <goal>prepare-agent</goal>
242                                                 </goals>
243                                                 <configuration>
244                                                         <destFile>${sonar.jacoco.reportPath}</destFile>
245                                                 </configuration>
246                                         </execution>
247                                         <execution>
248                                                 <id>report</id>
249                                                 <goals>
250                                                         <goal>report</goal>
251                                                 </goals>
252                                                 <configuration>
253                                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
254                                                         <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
255                                                 </configuration>
256                                         </execution>
257
258                                         <!-- Integration Tests (Only report goal) -->
259                                         <execution>
260                                                 <id>report-integration</id>
261                                                 <goals>
262                                                         <goal>report-integration</goal>
263                                                 </goals>
264                                                 <configuration>
265                                                         <dataFile>${sonar.jacoco.itReportPath}</dataFile>
266                                                         <outputDirectory>${project.basedir}/target/site/it-jacoco</outputDirectory>
267                                                 </configuration>
268                                         </execution>
269                                 </executions>
270                         </plugin>
271
272                         <!-- Set the deployment repositories properties. -->
273                         <plugin>
274                                 <groupId>org.codehaus.gmaven</groupId>
275                                 <artifactId>gmaven-plugin</artifactId>
276                                 <version>1.4</version>
277                                 <executions>
278                                         <execution>
279                                                 <inherited>false</inherited>
280                                                 <phase>integration-test</phase>
281                                                 <goals>
282                                                         <goal>execute</goal>
283                                                 </goals>
284                                                 <configuration>
285                                                         <source>
286                                                                 pom.properties['deploy.url']=
287                                                                 pom.version.contains('-SNAPSHOT') ?
288                                                                 project.distributionManagement.snapshotRepository.url :
289                                                                 project.distributionManagement.repository.url;
290                                                                 pom.properties['repo.id']= pom.version.contains('-SNAPSHOT') ?
291                                                                 project.distributionManagement.snapshotRepository.id :
292                                                                 project.distributionManagement.repository.id;
293                                                         </source>
294                                                 </configuration>
295                                         </execution>
296                                 </executions>
297                         </plugin>
298
299                         <!-- license plugin -->
300                         <plugin>
301                                 <groupId>org.codehaus.mojo</groupId>
302                                 <artifactId>license-maven-plugin</artifactId>
303                                 <version>1.10</version>
304                                 <configuration>
305                                         <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
306                                         <processStartTag>============LICENSE_START=======================================================</processStartTag>
307                                         <processEndTag>============LICENSE_END=========================================================</processEndTag>
308                                         <sectionDelimiter>================================================================================</sectionDelimiter>
309                                         <licenseName>apache_v2</licenseName>
310                                         <inceptionYear>2017</inceptionYear>
311                                         <organizationName>AT&amp;T Intellectual Property. All rights
312                                                 reserved.</organizationName>
313                                         <projectName>SDC</projectName>
314                                         <canUpdateCopyright>true</canUpdateCopyright>
315                                         <canUpdateDescription>true</canUpdateDescription>
316                                         <canUpdateLicense>true</canUpdateLicense>
317                                         <emptyLineAfterHeader>true</emptyLineAfterHeader>
318                                         <verbose>false</verbose>
319                                         <includes>
320                                                 <include>**/*.java</include>
321                                                 <include>**/*.ts</include>
322                                         </includes>
323                                         <excludes>
324                                                 <exclude>**/*.d.ts</exclude>
325                                         </excludes>
326                                         <roots>
327                                                 <root>src</root>
328                                                 <root>app</root>
329                                                 <root>server-mock</root>
330                                                 <root>typings</root>
331                                         </roots>
332                                         <extraExtensions>
333                                                 <ts>java</ts>
334                                         </extraExtensions>
335                                 </configuration>
336                                 <executions>
337                                         <execution>
338                                                 <id>first</id>
339                                                 <goals>
340                                                         <goal>update-file-header</goal>
341                                                 </goals>
342                                                 <!--phase>process-sources</phase -->
343                                         </execution>
344                                 </executions>
345                         </plugin>
346                 </plugins>
347         </build>
348
349         <profiles>
350                 <profile>
351                         <id>all</id>
352                         <activation>
353                                 <activeByDefault>true</activeByDefault>
354                         </activation>
355                         <modules>
356                                 <module>build-tools</module>
357                                 <module>onboarding</module>
358                                 <module>security-utils</module>
359                                 <module>common-app-api</module>
360                                 <module>common-be</module>
361                                 <module>catalog-dao</module>
362                                 <module>catalog-model</module>
363                                 <module>catalog-be</module>
364                                 <module>asdctool</module>
365                                 <module>catalog-ui</module>
366                                 <module>catalog-fe</module>
367                                 <module>asdc-tests</module>
368                                 <module>test-apis-ci</module>
369                                 <module>ui-ci</module>
370                                 <module>sdc-os-chef</module>
371                         </modules>
372
373                 </profile>
374
375                 <profile>
376                         <id>catalog</id>
377                         <activation>
378                                 <activeByDefault>false</activeByDefault>
379                         </activation>
380                         <modules>
381                                 <module>security-utils</module>
382                                 <module>common-app-api</module>
383                                 <module>common-be</module>
384                                 <module>catalog-dao</module>
385                                 <module>catalog-model</module>
386                                 <module>catalog-be</module>
387                                 <module>asdctool</module>
388                                 <module>catalog-ui</module>
389                                 <module>catalog-fe</module>
390                                 <module>asdc-tests</module>
391                                 <module>test-apis-ci</module>
392                                 <module>ui-ci</module>
393                         </modules>                      
394                         
395                         <properties>
396                                 <ecomp.version>1.2.7</ecomp.version>
397                                 <artifact-generator-api.version>1710.0.0</artifact-generator-api.version>
398                                 <artifact-generator-core.version>1710.0.0</artifact-generator-core.version>
399                                 <dox-common-lib.version>1710.0.0</dox-common-lib.version>
400                                 <sdc-tosca-parser.version>1.1.14</sdc-tosca-parser.version>
401                         </properties>
402                 </profile>
403
404                 <profile>
405                         <id>onboarding</id>
406                         <activation>
407                                 <activeByDefault>false</activeByDefault>
408                         </activation>
409                         <modules>
410                                 <module>build-tools</module>
411                                 <module>onboarding</module>
412                         </modules>
413                 </profile>
414         </profiles>
415
416         <repositories>
417                 <!-- LF repositories -->
418                 <repository>
419                         <id>ecomp-releases</id>
420                         <name>Release Repository</name>
421                         <url>${nexus.proxy}/content/repositories/releases/</url>
422                 </repository>
423                 <repository>
424                         <id>ecomp-staging</id>
425                         <name>Staging Repository</name>
426                         <url>${nexus.proxy}/content/repositories/staging/</url>
427                 </repository>
428                 <repository>
429                         <id>ecomp-snapshots</id>
430                         <name>Snapshots Repository</name>
431                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
432                 </repository>
433                 <repository>
434                         <id>ecomp-public</id>
435                         <name>Public Repository</name>
436                         <url>${nexus.proxy}/content/repositories/public/</url>
437                 </repository>
438                 <!-- LF repositories END-->
439         </repositories>
440
441         <distributionManagement>
442
443                 <repository>
444                         <id>ecomp-releases</id>
445                         <name>Release Repository</name>
446                         <url>${nexus.proxy}/content/repositories/releases/</url>
447                 </repository>
448                 <snapshotRepository>
449                         <id>ecomp-snapshots</id>
450                         <name>Snapshot Repository</name>
451                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
452                 </snapshotRepository>
453                 <site>
454                         <id>ecomp-site</id>
455                         <url>dav:${nexus.proxy}${sitePath}</url>
456                 </site>
457         </distributionManagement>
458 </project>
459