658bf71d5987f374838640bedaf0957d5f052dd3
[vid.git] / vid-app-common / pom.xml
1 <?xml version="1.0"?>
2 <project
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5         <modelVersion>4.0.0</modelVersion>
6
7         <!-- This is the Maven project object model (POM) file for VID web application 
8                 based on the ECOMP SDK distribution. This file stands alone; it does not 
9                 inherit from a parent maven module. -->
10         <groupId>org.onap.vid</groupId>
11         <artifactId>vid-app-common</artifactId>
12         <version>4.0.0-SNAPSHOT</version>
13         <packaging>war</packaging>
14         <name>VID Common</name>
15         <description>VID Common code for opensource version</description>
16
17         <properties>
18                 <encoding>UTF-8</encoding>
19                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
21                 <epsdk.version>2.4.0</epsdk.version>
22                 <springframework.version>4.2.9.RELEASE</springframework.version>
23                 <hibernate.version>4.3.11.Final</hibernate.version>
24                 <!-- Skip assembling the zip by default -->
25                 <skipassembly>true</skipassembly>
26                 <!-- Tests usually require some setup that maven cannot do, so skip. -->
27                 <skiptests>false</skiptests>
28                 <nexusproxy>https://nexus.onap.org</nexusproxy>
29                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
30                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
31                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
32                 <sitePath>/content/sites/site/org/onap/vid/${project.version}</sitePath>
33         </properties>
34
35
36         <!-- this should be commented for local debugging -->
37         <!-- <deployenv>local</deployenv> -->
38
39         <repositories>
40                 <repository>
41                         <id>ecomp-releases</id>
42                         <name>VID Release Repository</name>
43                         <url>${nexusproxy}${releaseNexusPath}</url>
44                 </repository>
45                 <repository>
46                         <id>ecomp-snapshots</id>
47                         <name>VID Snapshot Repository</name>
48                         <url>${nexusproxy}${snapshotNexusPath}</url>
49                 </repository>
50                 <repository>
51                         <id>ecomp-staging</id>
52                         <name>VID Staging Repository</name>
53                         <url>${nexusproxy}${stagingNexusPath}</url>
54                 </repository>
55                 <repository>
56                         <!-- Snapshots repository has ECOMP snapshot artifacts -->
57                         <id>oss-snapshots</id>
58                         <name>oss Central - Snapshots</name>
59                         <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
60                 </repository>
61
62         </repositories>
63         <distributionManagement>
64                 <repository>
65                         <id>ecomp-releases</id>
66                         <name>VID Release Repository</name>
67                         <url>${nexusproxy}/${releaseNexusPath}</url>
68                 </repository>
69                 <snapshotRepository>
70                         <id>ecomp-snapshots</id>
71                         <name>VID Snapshot Repository</name>
72                         <url>${nexusproxy}/${snapshotNexusPath}</url>
73                 </snapshotRepository>
74                 <!-- added for javadoc -->
75                 <site>
76                         <id>ecomp-site</id>
77                         <url>dav:${nexusproxy}${sitePath}</url>
78                 </site>
79         </distributionManagement>
80
81         <build>
82                 <finalName>vid-common</finalName>
83
84                 <plugins>
85                         <plugin>
86                                 <groupId>org.sonatype.plugins</groupId>
87                                 <artifactId>nexus-staging-maven-plugin</artifactId>
88                                 <version>1.6.7</version>
89                                 <extensions>true</extensions>
90                                 <configuration>
91                                         <nexusUrl>${nexusproxy}</nexusUrl>
92                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
93                                         <serverId>ecomp-staging</serverId>
94                                 </configuration>
95                         </plugin>
96                         <plugin>
97                                 <groupId>org.jacoco</groupId>
98                                 <artifactId>jacoco-maven-plugin</artifactId>
99                                 <version>0.7.9</version>
100                                 <executions>
101                                         <execution>
102                                                 <id>default-prepare-agent</id>
103                                                 <goals>
104                                                         <goal>prepare-agent</goal>
105                                                 </goals>
106                                         </execution>
107                                         <execution>
108                                                 <id>default-report</id>
109                                                 <goals>
110                                                         <goal>report</goal>
111                                                 </goals>
112                                         </execution>
113                                 </executions>
114                         </plugin>
115                         <plugin>
116                                 <groupId>org.apache.tomcat.maven</groupId>
117                                 <artifactId>tomcat6-maven-plugin</artifactId>
118                                 <version>2.2</version>
119                         </plugin>
120                         <plugin>
121                                 <groupId>org.apache.tomcat.maven</groupId>
122                                 <artifactId>tomcat7-maven-plugin</artifactId>
123                                 <version>2.2</version>
124                         </plugin>
125
126                         <!-- Generate POJOs from MSO json schema -->
127                         <plugin>
128                                 <groupId>org.jsonschema2pojo</groupId>
129                                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
130                                 <version>0.4.23</version>
131                                 <configuration>
132                                         <sourceDirectory>${basedir}/src/main/resources/json/mso</sourceDirectory>
133                                         <targetPackage>org.onap.vid.domain.mso</targetPackage>
134                                         <outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
135                                 </configuration>
136                                 <executions>
137                                         <execution>
138                                                 <goals>
139                                                         <goal>generate</goal>
140                                                 </goals>
141                                         </execution>
142                                 </executions>
143                         </plugin>
144
145                         <plugin>
146                                 <groupId>org.apache.maven.plugins</groupId>
147                                 <artifactId>maven-compiler-plugin</artifactId>
148                                 <version>3.1</version>
149                                 <configuration>
150                                         <source>1.8</source>
151                                         <target>1.8</target>
152                                 </configuration>
153                         </plugin>
154
155                         <plugin>
156                                 <groupId>org.apache.maven.plugins</groupId>
157                                 <artifactId>maven-surefire-plugin</artifactId>
158                                 <version>2.19.1</version>
159                                 <configuration>
160                                         <skipTests>${skiptests}</skipTests>
161                                         <includes>
162                                                 <include>**/Test*.java</include>
163                                                 <include>**/*Test.java</include>
164                                                 <include>**/*TestCase.java</include>
165                                         </includes>
166                                         <excludes>
167                                                 <exclude>**/selenium/*.java</exclude>
168                                                 <exclude>**/integrationTest/*.java</exclude>
169                                         </excludes>
170                                         <additionalClasspathElements>
171                                                 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
172                                         </additionalClasspathElements>
173                                         <systemPropertyVariables>
174                                                 <container.classpath>classpath:</container.classpath>
175                                         </systemPropertyVariables>
176                                 </configuration>
177                         </plugin>
178
179                         <plugin>
180                                 <artifactId>maven-assembly-plugin</artifactId>
181                                 <configuration>
182                                         <skipAssembly>${skipassembly}</skipAssembly>
183                                         <descriptors>
184                                                 <descriptor>${basedir}/distribution.xml</descriptor>
185                                         </descriptors>
186                                 </configuration>
187                                 <executions>
188                                         <execution>
189                                                 <id>make-assembly</id>
190                                                 <phase>package</phase>
191                                                 <goals>
192                                                         <goal>single</goal>
193                                                 </goals>
194                                         </execution>
195                                 </executions>
196                         </plugin>
197
198
199                         <plugin>
200                                 <groupId>org.apache.maven.plugins</groupId>
201                                 <artifactId>maven-war-plugin</artifactId>
202                                 <version>3.0.0</version>
203                                 <configuration>
204                                         <!-- Build a jar with all the Java classes -->
205                                         <attachClasses>true</attachClasses>
206                                         <!-- Do not put any jars in the war -->
207                                         <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
208                                 </configuration>
209                         </plugin>
210                         <plugin>
211                                 <groupId>org.apache.maven.plugins</groupId>
212                                 <artifactId>maven-site-plugin</artifactId>
213                                 <version>3.6</version>
214                                 <dependencies>
215                                         <dependency>
216                                                 <groupId>org.apache.maven.wagon</groupId>
217                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
218                                                 <version>2.10</version>
219                                         </dependency>
220                                 </dependencies>
221                         </plugin>
222                         <plugin>
223                                 <groupId>pl.project13.maven</groupId>
224                                 <artifactId>git-commit-id-plugin</artifactId>
225                                 <version>2.2.4</version>
226                                 <executions>
227                                         <execution>
228                                                 <id>get-the-git-infos</id>
229                                                 <goals>
230                                                         <goal>revision</goal>
231                                                 </goals>
232                                         </execution>
233                                 </executions>
234                                 <configuration>
235                                         <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
236                                         <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
237                                         <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
238                                         <generateGitPropertiesFile>true</generateGitPropertiesFile>
239                                         <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
240                                         <includeOnlyProperties>
241                                                  <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
242                                                  <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
243                                                  <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
244                                         </includeOnlyProperties>
245                                 </configuration>
246                         </plugin>
247                 </plugins>
248         </build>
249
250         <reporting>
251                 <plugins>
252                         <plugin>
253                                 <groupId>org.apache.maven.plugins</groupId>
254                                 <artifactId>maven-javadoc-plugin</artifactId>
255                                 <version>2.10.4</version>
256                                 <configuration>
257                                         <failOnError>false</failOnError>
258                                         <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
259                                         <docletArtifact>
260                                                 <groupId>org.umlgraph</groupId>
261                                                 <artifactId>umlgraph</artifactId>
262                                                 <version>5.6</version>
263                                         </docletArtifact>
264                                         <additionalparam>-views</additionalparam>
265                                         <useStandardDocletOptions>true</useStandardDocletOptions>
266                                 </configuration>
267                         </plugin>
268                 </plugins>
269         </reporting>
270
271         <dependencies>
272         
273                 <dependency>
274                     <groupId>com.opencsv</groupId>
275                     <artifactId>opencsv</artifactId>
276                     <version>4.1</version>
277                 </dependency>
278                         
279                 <!-- HTTP client -->
280
281                 <dependency>
282                         <groupId>io.joshworks.unirest</groupId>
283                         <artifactId>unirest-java</artifactId>
284                         <version>0.2.1</version>
285                 </dependency>
286                 <dependency>
287                         <groupId>org.apache.httpcomponents</groupId>
288                         <artifactId>httpclient</artifactId>
289                         <version>4.3.6</version>
290                 </dependency>
291                 <dependency>
292                         <groupId>org.apache.httpcomponents</groupId>
293                         <artifactId>httpasyncclient</artifactId>
294                         <version>4.0.2</version>
295                 </dependency>
296                 <dependency>
297                         <groupId>org.apache.httpcomponents</groupId>
298                         <artifactId>httpmime</artifactId>
299                         <version>4.3.6</version>
300                 </dependency>
301                 <dependency>
302                         <groupId>com.xebialabs.restito</groupId>
303                         <artifactId>restito</artifactId>
304                         <version>0.9.3</version>
305                         <scope>test</scope>
306                 </dependency>
307
308                 <!-- Helpers -->
309                 <dependency>
310                         <groupId>io.vavr</groupId>
311                         <artifactId>vavr</artifactId>
312                         <version>0.9.2</version>
313                 </dependency>
314
315                 <!-- SDK overlay war -->
316                 <dependency>
317                         <groupId>org.onap.portal.sdk</groupId>
318                         <artifactId>epsdk-app-overlay</artifactId>
319                         <version>${epsdk.version}</version>
320                         <type>war</type>
321                 </dependency>
322                 <dependency>
323                         <groupId>org.onap.portal.sdk</groupId>
324                         <artifactId>epsdk-app-common</artifactId>
325                         <version>${epsdk.version}</version>
326                         <type>jar</type>
327                 </dependency>
328
329                 <dependency>
330                         <groupId>org.onap.portal.sdk</groupId>
331                         <artifactId>epsdk-core</artifactId>
332                         <version>${epsdk.version}</version>
333                 </dependency>
334                 <dependency>
335                         <groupId>org.onap.portal.sdk</groupId>
336                         <artifactId>epsdk-analytics</artifactId>
337                         <version>${epsdk.version}</version>
338                         <exclusions>
339                                 <exclusion>
340                                         <groupId>com.lowagie</groupId>
341                                         <artifactId>itext</artifactId>
342                                 </exclusion>
343                         </exclusions>
344                 </dependency>
345                 <dependency>
346                         <groupId>org.onap.portal.sdk</groupId>
347                         <artifactId>epsdk-workflow</artifactId>
348                         <version>${epsdk.version}</version>
349                 </dependency>
350                 <dependency>
351                         <groupId>com.att.eelf</groupId>
352                         <artifactId>eelf-core</artifactId>
353                         <version>1.0.0</version>
354                         <exclusions>
355                                 <exclusion>
356                                         <artifactId>powermock-api-mockito</artifactId>
357                                         <groupId>org.powermock</groupId>
358                                 </exclusion>
359                         </exclusions>
360                 </dependency>
361                 <dependency>
362                         <groupId>ch.qos.logback</groupId>
363                         <artifactId>logback-core</artifactId>
364                         <version>1.2.3</version>
365                 </dependency>
366                 <dependency>
367                         <groupId>ch.qos.logback</groupId>
368                         <artifactId>logback-classic</artifactId>
369                         <version>1.2.3</version>
370                 </dependency>
371
372                 <!-- Mapper -->
373                 <dependency>
374                         <groupId>com.fasterxml.jackson.core</groupId>
375                         <artifactId>jackson-annotations</artifactId>
376                         <version>2.6.3</version>
377                 </dependency>
378                 <dependency>
379                         <groupId>com.fasterxml.jackson.core</groupId>
380                         <artifactId>jackson-core</artifactId>
381                         <version>2.8.6</version>
382                 </dependency>
383                 <dependency>
384                         <groupId>com.fasterxml.jackson.core</groupId>
385                         <artifactId>jackson-databind</artifactId>
386                         <version>2.6.7.1</version>
387                 </dependency>
388                 <dependency>
389                         <groupId>org.codehaus.jackson</groupId>
390                         <artifactId>jackson-mapper-asl</artifactId>
391                         <version>1.9.13</version>
392                 </dependency>
393                 <dependency>
394                         <groupId>com.mchange</groupId>
395                         <artifactId>c3p0</artifactId>
396                         <version>0.9.5.2</version>
397                 </dependency>
398                 <dependency>
399                         <groupId>io.searchbox</groupId>
400                         <artifactId>jest</artifactId>
401                         <version>2.0.0</version>
402                         <exclusions>
403                                 <exclusion>
404                                         <groupId>commons-logging</groupId>
405                                         <artifactId>commons-logging</artifactId>
406                                 </exclusion>
407                         </exclusions>
408                 </dependency>
409                 <dependency>
410                         <groupId>javax.servlet</groupId>
411                         <artifactId>javax.servlet-api</artifactId>
412                         <version>3.1.0</version>
413                         <scope>provided</scope>
414                 </dependency>
415                 <dependency>
416                         <groupId>junit</groupId>
417                         <artifactId>junit</artifactId>
418                         <version>4.12</version>
419                 </dependency>
420                 <dependency>
421                         <groupId>commons-io</groupId>
422                         <artifactId>commons-io</artifactId>
423                         <version>2.4</version>
424                         <!--<scope>test</scope>-->
425                 </dependency>
426                 <dependency>
427                         <groupId>com.google.code.bean-matchers</groupId>
428                         <artifactId>bean-matchers</artifactId>
429                         <version>0.11</version>
430                         <scope>test</scope>
431                 </dependency>
432                 <dependency>
433                         <groupId>org.json</groupId>
434                         <artifactId>json</artifactId>
435                         <version>20160212</version>
436                 </dependency>
437                 <dependency>
438                         <groupId>org.quartz-scheduler</groupId>
439                         <artifactId>quartz</artifactId>
440                         <version>2.2.1</version>
441                         <exclusions>
442                                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
443                                 <exclusion>
444                                         <groupId>c3p0</groupId>
445                                         <artifactId>c3p0</artifactId>
446                                 </exclusion>
447                         </exclusions>
448                 </dependency>
449                 <!-- bridge to implement commons-logging using slf4j -->
450                 <dependency>
451                         <groupId>org.slf4j</groupId>
452                         <artifactId>jcl-over-slf4j</artifactId>
453                         <version>1.7.12</version>
454                 </dependency>
455                 <dependency>
456                         <groupId>org.springframework</groupId>
457                         <artifactId>spring-context-support</artifactId>
458                         <version>${springframework.version}</version>
459                 </dependency>
460                 <dependency>
461                         <groupId>org.springframework</groupId>
462                         <artifactId>spring-core</artifactId>
463                         <version>${springframework.version}</version>
464                         <exclusions>
465                                 <exclusion>
466                                         <groupId>commons-logging</groupId>
467                                         <artifactId>commons-logging</artifactId>
468                                 </exclusion>
469                         </exclusions>
470                 </dependency>
471                 <dependency>
472                         <groupId>org.springframework</groupId>
473                         <artifactId>spring-test</artifactId>
474                         <version>${springframework.version}</version>
475                 </dependency>
476                 <dependency>
477                         <groupId>org.springframework</groupId>
478                         <artifactId>spring-tx</artifactId>
479                         <version>${springframework.version}</version>
480                 </dependency>
481                 <dependency>
482                         <groupId>org.springframework</groupId>
483                         <artifactId>spring-web</artifactId>
484                         <version>${springframework.version}</version>
485                 </dependency>
486                 <dependency>
487                         <groupId>org.springframework</groupId>
488                         <artifactId>spring-webmvc</artifactId>
489                         <version>${springframework.version}</version>
490                 </dependency>
491                 <dependency>
492                         <groupId>org.glassfish.jersey.core</groupId>
493                         <artifactId>jersey-client</artifactId>
494                         <version>2.23.1</version>
495                 </dependency>
496                 <dependency>
497                         <groupId>org.glassfish.jersey.connectors</groupId>
498                         <artifactId>jersey-jetty-connector</artifactId>
499                         <version>2.23.1</version>
500                 </dependency>
501                 <dependency>
502                         <groupId>com.fasterxml.jackson.jaxrs</groupId>
503                         <artifactId>jackson-jaxrs-json-provider</artifactId>
504                         <version>2.6.3</version>
505                 </dependency>
506                 <dependency>
507                         <groupId>commons-beanutils</groupId>
508                         <artifactId>commons-beanutils</artifactId>
509                         <version>1.9.3</version>
510                 </dependency>
511                 <dependency>
512                         <groupId>com.googlecode.json-simple</groupId>
513                         <artifactId>json-simple</artifactId>
514                         <version>1.1.1</version>
515                 </dependency>
516                 <dependency>
517                         <groupId>org.seleniumhq.selenium</groupId>
518                         <artifactId>selenium-java</artifactId>
519                         <version>2.53.1</version>
520                         <scope>test</scope>
521                 </dependency>
522                 <dependency>
523                         <groupId>org.seleniumhq.selenium</groupId>
524                         <artifactId>selenium-api</artifactId>
525                         <version>2.53.1</version>
526                         <scope>test</scope>
527                 </dependency>
528                 <dependency>
529                         <groupId>org.testng</groupId>
530                         <artifactId>testng</artifactId>
531                         <version>6.8</version>
532                         <scope>test</scope>
533                 </dependency>
534                 <dependency>
535                         <groupId>org.mockito</groupId>
536                         <artifactId>mockito-core</artifactId>
537                         <version>2.23.0</version>
538                         <scope>test</scope>
539                 </dependency>
540                 <dependency>
541                         <groupId>org.seleniumhq.selenium</groupId>
542                         <artifactId>selenium-firefox-driver</artifactId>
543                         <version>2.53.1</version>
544                 </dependency>
545                 <dependency>
546                         <groupId>xml-apis</groupId>
547                         <artifactId>xml-apis</artifactId>
548                         <version>1.4.01</version>
549                 </dependency>
550                 <dependency>
551                         <groupId>org.yaml</groupId>
552                         <artifactId>snakeyaml</artifactId>
553                         <version>1.16</version>
554                 </dependency>
555                 <dependency>
556                     <groupId>org.skyscreamer</groupId>
557                     <artifactId>jsonassert</artifactId>
558                     <version>1.5.0</version>
559                 </dependency>
560                 <dependency>
561                     <groupId>org.onap.sdc.sdc-tosca</groupId>
562                     <artifactId>sdc-tosca</artifactId>
563                     <version>1.4.1</version>
564                     <scope>compile</scope>
565                 </dependency>
566                 <dependency>
567                     <groupId>net.javacrumbs.json-unit</groupId>
568                     <artifactId>json-unit</artifactId>
569                     <version>1.23.0</version>
570                     <scope>test</scope>
571                 </dependency>
572                 <dependency>
573                     <groupId>org.apache.commons</groupId>
574                     <artifactId>commons-text</artifactId>
575                     <version>1.1</version>
576                 </dependency>
577                 <dependency>
578                     <groupId>org.hamcrest</groupId>
579                     <artifactId>java-hamcrest</artifactId>
580                     <version>2.0.0.0</version>
581                     <scope>test</scope>
582                 </dependency>
583                 <dependency>
584                     <groupId>org.togglz</groupId>
585                     <artifactId>togglz-spring-core</artifactId>
586                     <version>2.5.0.Final</version>
587                 </dependency>
588             <dependency>
589                                 <groupId>org.assertj</groupId>
590                                 <artifactId>assertj-core</artifactId>
591                                 <version>3.10.0</version>
592                                 <scope>compile</scope>
593                         </dependency>
594     </dependencies>
595 </project>