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