fix pom
[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                 <catalog-artifacts.version>1.0.0-SNAPSHOT</catalog-artifacts.version>
41                 <catalog-builders.version>1.0.0-SNAPSHOT</catalog-builders.version>
42                 <jetty.version>9.2.10.v20150310</jetty.version>
43
44                 <!-- JSON and YAML Parsing -->
45                 <jackson.version>2.6.2</jackson.version>
46                 <jackson.yaml.version>2.8.1</jackson.yaml.version>
47                 <jackson.annotations.version>2.6.0</jackson.annotations.version>
48
49                 <!-- Yaml for properties -->
50                 <snakeyaml.version>1.14</snakeyaml.version>
51                 <functionaljava.version>4.4</functionaljava.version>
52                 <httpclient.version>4.4.1</httpclient.version>
53                 <httpcore.version>4.4.1</httpcore.version>
54                 <json-simple.version>1.1</json-simple.version>
55
56
57                 <!-- Logging start -->
58                 <!-- logback -->
59         <logback.version>1.1.2</logback.version>
60         <slf4j-api.version>1.7.10</slf4j-api.version>
61         <commons-codec>1.10</commons-codec>
62         <commons-logging>1.2</commons-logging>
63                 <groovy.version>2.3.5</groovy.version>
64                 <janino.version>3.0.6</janino.version>
65
66                 <!-- aspects -->
67                 <jcabi.version>0.20.1</jcabi.version>
68                 <aspectjrt.version>1.8.4</aspectjrt.version>
69                 <aspectj.version>1.7.4</aspectj.version>
70                 <jcabi.plugin.version>0.13.2</jcabi.plugin.version>
71
72                 <!-- Logging end -->
73                 <!-- System Metrics -->
74                 <sigar.version>1.6.4</sigar.version>
75
76                 <regex.version>3.0.3</regex.version>
77
78                 <codehaus.jackson.core>1.9.2</codehaus.jackson.core>
79
80                 <!--GSON-->
81                 <gson.version>2.3.1</gson.version>
82
83         <!--listen to file changes-->
84         <commons-jci-core.version>1.1</commons-jci-core.version>
85
86                 <!--TESTING-->
87                 <mockito.version>2.12.0</mockito.version>
88                 <junit.version>4.12</junit.version>
89                 <testng.version>6.9.10</testng.version>
90                 <extentreports.version>3.0.3</extentreports.version>
91                 
92                 <!-- parser-->
93                 <sdc-tosca-parser.version>1.1.56-SNAPSHOT</sdc-tosca-parser.version>
94                 
95                 <!--JaCoCO -->
96                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
97                 <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
98                 <sonar.jacoco.itReportPath>${project.basedir}/../target/it-jacoco.exec</sonar.jacoco.itReportPath>
99                 <sonar.language>java</sonar.language>
100                 <!-- Sonar properties -->
101                 <sonar.sourceEncoding>${project.build.sourceEncoding}</sonar.sourceEncoding>
102                 <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir>
103                 <sonar.sources>.</sonar.sources>
104                 <sonar.exclusions>**/scripts/**/*</sonar.exclusions>
105                 <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions>
106                 <sonar.inclusions>app/**/*.js,server-mock/**/*.js,src/**/*.js,src/main/**/*.java</sonar.inclusions>
107                 <sonar.branch>${project.version}</sonar.branch>
108
109                 <assertj.version>3.8.0</assertj.version>
110
111                 <!--cassandra -->
112                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
113                 <!-- maven central (Nexus) -->
114                 <nexus.id.release>nexus</nexus.id.release>
115                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
116
117                 <assertj.version>3.8.0</assertj.version>
118
119                 <!--cassandra -->
120                 <cassandra.driver.version>3.0.0</cassandra.driver.version>
121                 <!-- maven central (Nexus) -->
122                 <nexus.id.release>nexus</nexus.id.release>
123                 <nexus.id.snapshot>nexus</nexus.id.snapshot>
124
125                 <!--nexus-->
126                 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
127                 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
128                 <staging.profile.id>176c31dfe190a</staging.profile.id>
129                 <!--maven-->
130                 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
131         </properties>
132
133         <reporting>
134                 <plugins>
135                         <plugin>
136                                 <groupId>org.apache.maven.plugins</groupId>
137                                 <artifactId>maven-javadoc-plugin</artifactId>
138                                 <version>3.0.0-M1</version>
139                                 <configuration>
140                                         <failOnError>false</failOnError>
141                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
142                                         <docletArtifact>
143                                                 <groupId>org.umlgraph</groupId>
144                                                 <artifactId>umlgraph</artifactId>
145                                                 <version>5.6</version>
146                                         </docletArtifact>
147                                         <additionalparam>-views</additionalparam>
148                                         <useStandardDocletOptions>true</useStandardDocletOptions>
149                                 </configuration>
150                         </plugin>
151                 </plugins>
152         </reporting>
153
154         <build>
155                 <pluginManagement>
156                         <plugins>
157
158                                 <plugin>
159                                         <groupId>org.apache.maven.plugins</groupId>
160                                         <artifactId>maven-site-plugin</artifactId>
161                                         <version>3.4</version>
162                                         <dependencies>
163                                                 <dependency>
164                                                         <groupId>org.apache.maven.wagon</groupId>
165                                                         <artifactId>wagon-webdav-jackrabbit</artifactId>
166                                                         <version>2.10</version>
167                                                 </dependency>
168                                         </dependencies>
169                                 </plugin>
170
171
172                                 <plugin>
173                                         <groupId>org.apache.maven.plugins</groupId>
174                                         <artifactId>maven-assembly-plugin</artifactId>
175                                         <version>2.6</version>
176                                 </plugin>
177
178                                 <plugin>
179                                         <groupId>org.codehaus.mojo</groupId>
180                                         <artifactId>exec-maven-plugin</artifactId>
181                                         <version>1.4.0</version>
182                                 </plugin>
183                                 <plugin>
184                                         <groupId>org.sonarsource.scanner.maven</groupId>
185                                         <artifactId>sonar-maven-plugin</artifactId>
186                                         <version>3.0.2</version>
187                                 </plugin>
188                         </plugins>
189                 </pluginManagement>
190
191                 <plugins>
192
193                         <!-- Staging Plugin -->
194                         <plugin>
195                                  <groupId>org.sonatype.plugins</groupId>
196                                  <artifactId>nexus-staging-maven-plugin</artifactId>
197                                  <version>1.6.7</version>
198                                  <extensions>true</extensions>
199                                  <configuration>
200                                                  <nexusUrl>${nexus.proxy}</nexusUrl>
201                                                  <stagingProfileId>${staging.profile.id}</stagingProfileId>
202                                                  <serverId>ecomp-staging</serverId>
203                                  </configuration>
204                         </plugin>
205
206                         <plugin>
207                                 <artifactId>maven-surefire-plugin</artifactId>
208                                 <version>2.19.1</version>
209                                 <configuration>
210                                         <systemPropertyVariables>
211                                                 <logback.configurationFile>src/test/resources/logback-test.xml</logback.configurationFile>
212                                         </systemPropertyVariables>
213                                 </configuration>
214                         </plugin>
215                         <!-- plugin for parsing the project version -->
216                         <plugin>
217                                 <groupId>org.codehaus.mojo</groupId>
218                                 <artifactId>build-helper-maven-plugin</artifactId>
219                                 <version>1.8</version>
220                                 <executions>
221                                         <execution>
222                                                 <id>parse-version</id>
223                                                 <goals>
224                                                         <goal>parse-version</goal>
225                                                 </goals>
226                                         </execution>
227                                 </executions>
228                         </plugin>
229
230                         <!-- Java Code Coverage -->
231                         <plugin>
232                                 <groupId>org.jacoco</groupId>
233                                 <artifactId>jacoco-maven-plugin</artifactId>
234                                 <version>0.7.9</version>
235                                 <configuration>
236                                         <append>true</append>
237                                         <destFile>${sonar.jacoco.reportPath}</destFile>
238                                         <dataFile>${sonar.jacoco.reportPath}</dataFile>
239                                 </configuration>
240                                 <executions>
241                                         <execution>
242                                                 <id>default-prepare-agent</id>
243                                                 <goals>
244                                                         <goal>prepare-agent</goal>
245                                                 </goals>
246                                         </execution>
247                                         <execution>
248                                                 <id>default-report</id>
249                                                 <goals>
250                                                         <goal>report</goal>
251                                                 </goals>
252                                         </execution>
253                                 </executions>
254                         </plugin>
255                         
256                         <plugin>
257                                 <groupId>org.apache.maven.plugins</groupId>
258                                 <artifactId>maven-site-plugin</artifactId>
259                                 <dependencies>
260                                         <dependency>
261                                                 <groupId>org.apache.maven.wagon</groupId>
262                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
263                                                 <version>2.10</version>
264                                         </dependency>
265                                 </dependencies>
266                         </plugin>
267
268                         <!-- Set the deployment repositories properties. -->
269                         <plugin>
270                                 <groupId>org.codehaus.gmaven</groupId>
271                                 <artifactId>gmaven-plugin</artifactId>
272                                 <version>1.4</version>
273                                 <executions>
274                                         <execution>
275                                                 <inherited>false</inherited>
276                                                 <phase>integration-test</phase>
277                                                 <goals>
278                                                         <goal>execute</goal>
279                                                 </goals>
280                                                 <configuration>
281                                                         <source>
282                                                                 pom.properties['deploy.url']=
283                                                                 pom.version.contains('-SNAPSHOT') ?
284                                                                 project.distributionManagement.snapshotRepository.url :
285                                                                 project.distributionManagement.repository.url;
286                                                                 pom.properties['repo.id']= pom.version.contains('-SNAPSHOT') ?
287                                                                 project.distributionManagement.snapshotRepository.id :
288                                                                 project.distributionManagement.repository.id;
289                                                         </source>
290                                                 </configuration>
291                                         </execution>
292                                 </executions>
293                         </plugin>
294                 </plugins>
295         </build>
296
297         <profiles>
298                 <profile>
299                         <id>all</id>
300                         <activation>
301                                 <activeByDefault>true</activeByDefault>
302                         </activation>
303                         <modules>
304                                 <module>build-tools</module>
305                                 <module>onboarding</module>
306                                 <module>security-utils</module>
307                                 <module>common-app-api</module>
308                                 <module>common-be</module>
309                                 <module>catalog-dao</module>
310                                 <module>catalog-model</module>
311                                 <module>catalog-be</module>
312                                 <module>asdctool</module>
313                                 <module>catalog-ui</module>
314                                 <module>catalog-fe</module>
315                                 <module>asdc-tests</module>
316                                 <module>test-apis-ci</module>
317                                 <module>ui-ci</module>
318                                 <module>sdc-os-chef</module>
319                         </modules>
320
321                 </profile>
322
323                 <profile>
324                         <id>catalog</id>
325                         <activation>
326                                 <activeByDefault>false</activeByDefault>
327                         </activation>
328                         <modules>
329                                 <module>security-utils</module>
330                                 <module>common-app-api</module>
331                                 <module>common-be</module>
332                                 <module>catalog-dao</module>
333                                 <module>catalog-model</module>
334                                 <module>catalog-be</module>
335                                 <module>asdctool</module>
336                                 <module>catalog-ui</module>
337                                 <module>catalog-fe</module>
338                                 <module>asdc-tests</module>
339                                 <module>test-apis-ci</module>
340                                 <module>ui-ci</module>
341                         </modules>                      
342                         
343                         <properties>
344                                 <ecomp.version>1.2.7</ecomp.version>
345                                 <artifact-generator-api.version>1710.0.0</artifact-generator-api.version>
346                                 <artifact-generator-core.version>1710.0.0</artifact-generator-core.version>
347                                 <dox-common-lib.version>1710.0.0</dox-common-lib.version>
348                                 <sdc-tosca-parser.version>1.1.32</sdc-tosca-parser.version>
349                         </properties>
350                 </profile>
351
352                 <profile>
353                         <id>onboarding</id>
354                         <activation>
355                                 <activeByDefault>false</activeByDefault>
356                         </activation>
357                         <modules>
358                                 <module>build-tools</module>
359                                 <module>onboarding</module>
360                         </modules>
361                 </profile>
362
363                 <profile>
364                         <id>dev-integ</id>
365                         <activation>
366                                 <activeByDefault>false</activeByDefault>
367                         </activation>
368                         <dependencies>
369                                 <dependency>
370                                         <groupId>org.togglz</groupId>
371                                         <artifactId>togglz-console</artifactId>
372                                         <version>${togglz.version}</version>
373                                 </dependency>
374                         </dependencies>
375                 </profile>
376         </profiles>
377
378         <repositories>
379                 <!-- LF repositories -->
380                 <repository>
381                         <id>ecomp-releases</id>
382                         <name>Release Repository</name>
383                         <url>${nexus.proxy}/content/repositories/releases/</url>
384                 </repository>
385                 <repository>
386                         <id>ecomp-staging</id>
387                         <name>Staging Repository</name>
388                         <url>${nexus.proxy}/content/repositories/staging/</url>
389                 </repository>
390                 <repository>
391                         <id>ecomp-snapshots</id>
392                         <name>Snapshots Repository</name>
393                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
394                 </repository>
395                 <repository>
396                         <id>ecomp-public</id>
397                         <name>Public Repository</name>
398                         <url>${nexus.proxy}/content/repositories/public/</url>
399                 </repository>
400                 <!-- LF repositories END-->
401         </repositories>
402
403         <distributionManagement>
404
405                 <repository>
406                         <id>ecomp-releases</id>
407                         <name>Release Repository</name>
408                         <url>${nexus.proxy}/content/repositories/releases/</url>
409                 </repository>
410                 <snapshotRepository>
411                         <id>ecomp-snapshots</id>
412                         <name>Snapshot Repository</name>
413                         <url>${nexus.proxy}/content/repositories/snapshots/</url>
414                 </snapshotRepository>
415                 <site>
416                         <id>ecomp-site</id>
417                         <url>dav:${nexus.proxy}${sitePath}</url>
418                 </site>
419         </distributionManagement>
420 </project>
421