175c0771103323056d320cbb443d8b4a0c5ffeae
[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                     <useSystemClassLoader>false</useSystemClassLoader>
177                 </configuration>
178             </plugin>
179
180             <plugin>
181                 <artifactId>maven-assembly-plugin</artifactId>
182                 <configuration>
183                     <skipAssembly>${skipassembly}</skipAssembly>
184                     <descriptors>
185                         <descriptor>${basedir}/distribution.xml</descriptor>
186                     </descriptors>
187                 </configuration>
188                 <executions>
189                     <execution>
190                         <id>make-assembly</id>
191                         <phase>package</phase>
192                         <goals>
193                             <goal>single</goal>
194                         </goals>
195                     </execution>
196                 </executions>
197             </plugin>
198
199
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-war-plugin</artifactId>
203                 <version>3.0.0</version>
204                 <configuration>
205                     <!-- Build a jar with all the Java classes -->
206                     <attachClasses>true</attachClasses>
207                     <!-- Do not put any jars in the war -->
208                     <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
209                 </configuration>
210             </plugin>
211             <plugin>
212                 <groupId>org.apache.maven.plugins</groupId>
213                 <artifactId>maven-site-plugin</artifactId>
214                 <version>3.6</version>
215                 <dependencies>
216                     <dependency>
217                         <groupId>org.apache.maven.wagon</groupId>
218                         <artifactId>wagon-webdav-jackrabbit</artifactId>
219                         <version>2.10</version>
220                     </dependency>
221                 </dependencies>
222             </plugin>
223             <plugin>
224                 <groupId>pl.project13.maven</groupId>
225                 <artifactId>git-commit-id-plugin</artifactId>
226                 <version>2.2.4</version>
227                 <executions>
228                     <execution>
229                         <id>get-the-git-infos</id>
230                         <goals>
231                             <goal>revision</goal>
232                         </goals>
233                     </execution>
234                 </executions>
235                 <configuration>
236                     <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
237                     <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
238                     <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
239                     <generateGitPropertiesFile>true</generateGitPropertiesFile>
240                     <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
241                     </generateGitPropertiesFilename>
242                     <includeOnlyProperties>
243                         <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
244                         <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
245                         <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
246                     </includeOnlyProperties>
247                 </configuration>
248             </plugin>
249         </plugins>
250     </build>
251
252     <reporting>
253         <plugins>
254             <plugin>
255                 <groupId>org.apache.maven.plugins</groupId>
256                 <artifactId>maven-javadoc-plugin</artifactId>
257                 <version>2.10.4</version>
258                 <configuration>
259                     <failOnError>false</failOnError>
260                     <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
261                     <docletArtifact>
262                         <groupId>org.umlgraph</groupId>
263                         <artifactId>umlgraph</artifactId>
264                         <version>5.6</version>
265                     </docletArtifact>
266                     <additionalparam>-views</additionalparam>
267                     <useStandardDocletOptions>true</useStandardDocletOptions>
268                 </configuration>
269             </plugin>
270         </plugins>
271     </reporting>
272
273     <dependencies>
274
275         <dependency>
276             <groupId>com.opencsv</groupId>
277             <artifactId>opencsv</artifactId>
278             <version>4.1</version>
279         </dependency>
280
281         <!-- HTTP client -->
282
283         <dependency>
284             <groupId>io.joshworks.unirest</groupId>
285             <artifactId>unirest-java</artifactId>
286             <version>0.2.1</version>
287         </dependency>
288         <dependency>
289             <groupId>org.apache.httpcomponents</groupId>
290             <artifactId>httpclient</artifactId>
291             <version>4.3.6</version>
292         </dependency>
293         <dependency>
294             <groupId>org.apache.httpcomponents</groupId>
295             <artifactId>httpasyncclient</artifactId>
296             <version>4.0.2</version>
297         </dependency>
298         <dependency>
299             <groupId>org.apache.httpcomponents</groupId>
300             <artifactId>httpmime</artifactId>
301             <version>4.3.6</version>
302         </dependency>
303         <dependency>
304             <groupId>com.xebialabs.restito</groupId>
305             <artifactId>restito</artifactId>
306             <version>0.9.3</version>
307             <scope>test</scope>
308         </dependency>
309
310         <!-- Helpers -->
311         <dependency>
312             <groupId>io.vavr</groupId>
313             <artifactId>vavr</artifactId>
314             <version>0.9.2</version>
315         </dependency>
316
317         <!-- SDK overlay war -->
318         <dependency>
319             <groupId>org.onap.portal.sdk</groupId>
320             <artifactId>epsdk-app-overlay</artifactId>
321             <version>${epsdk.version}</version>
322             <type>war</type>
323         </dependency>
324         <dependency>
325             <groupId>org.onap.portal.sdk</groupId>
326             <artifactId>epsdk-app-common</artifactId>
327             <version>${epsdk.version}</version>
328             <type>jar</type>
329         </dependency>
330
331         <dependency>
332             <groupId>org.onap.portal.sdk</groupId>
333             <artifactId>epsdk-core</artifactId>
334             <version>${epsdk.version}</version>
335         </dependency>
336         <dependency>
337             <groupId>org.onap.portal.sdk</groupId>
338             <artifactId>epsdk-analytics</artifactId>
339             <version>${epsdk.version}</version>
340             <exclusions>
341                 <exclusion>
342                     <groupId>com.lowagie</groupId>
343                     <artifactId>itext</artifactId>
344                 </exclusion>
345             </exclusions>
346         </dependency>
347         <dependency>
348             <groupId>org.onap.portal.sdk</groupId>
349             <artifactId>epsdk-workflow</artifactId>
350             <version>${epsdk.version}</version>
351         </dependency>
352         <dependency>
353             <groupId>com.att.eelf</groupId>
354             <artifactId>eelf-core</artifactId>
355             <version>1.0.0</version>
356             <exclusions>
357                 <exclusion>
358                     <artifactId>powermock-api-mockito</artifactId>
359                     <groupId>org.powermock</groupId>
360                 </exclusion>
361             </exclusions>
362         </dependency>
363         <dependency>
364             <groupId>ch.qos.logback</groupId>
365             <artifactId>logback-core</artifactId>
366             <version>1.2.3</version>
367         </dependency>
368         <dependency>
369             <groupId>ch.qos.logback</groupId>
370             <artifactId>logback-classic</artifactId>
371             <version>1.2.3</version>
372         </dependency>
373
374         <!-- Mapper -->
375         <dependency>
376             <groupId>com.fasterxml.jackson.core</groupId>
377             <artifactId>jackson-annotations</artifactId>
378             <version>2.6.3</version>
379         </dependency>
380         <dependency>
381             <groupId>com.fasterxml.jackson.core</groupId>
382             <artifactId>jackson-core</artifactId>
383             <version>2.8.6</version>
384         </dependency>
385         <dependency>
386             <groupId>com.fasterxml.jackson.core</groupId>
387             <artifactId>jackson-databind</artifactId>
388             <version>2.6.7.1</version>
389         </dependency>
390         <dependency>
391             <groupId>org.codehaus.jackson</groupId>
392             <artifactId>jackson-mapper-asl</artifactId>
393             <version>1.9.13</version>
394         </dependency>
395         <dependency>
396             <groupId>com.mchange</groupId>
397             <artifactId>c3p0</artifactId>
398             <version>0.9.5.2</version>
399         </dependency>
400         <dependency>
401             <groupId>io.searchbox</groupId>
402             <artifactId>jest</artifactId>
403             <version>2.0.0</version>
404             <exclusions>
405                 <exclusion>
406                     <groupId>commons-logging</groupId>
407                     <artifactId>commons-logging</artifactId>
408                 </exclusion>
409             </exclusions>
410         </dependency>
411         <dependency>
412             <groupId>javax.servlet</groupId>
413             <artifactId>javax.servlet-api</artifactId>
414             <version>3.1.0</version>
415             <scope>provided</scope>
416         </dependency>
417         <dependency>
418             <groupId>junit</groupId>
419             <artifactId>junit</artifactId>
420             <version>4.12</version>
421         </dependency>
422         <dependency>
423             <groupId>commons-io</groupId>
424             <artifactId>commons-io</artifactId>
425             <version>2.4</version>
426             <!--<scope>test</scope>-->
427         </dependency>
428         <dependency>
429             <groupId>com.google.code.bean-matchers</groupId>
430             <artifactId>bean-matchers</artifactId>
431             <version>0.11</version>
432             <scope>test</scope>
433         </dependency>
434         <dependency>
435             <groupId>org.json</groupId>
436             <artifactId>json</artifactId>
437             <version>20160212</version>
438         </dependency>
439         <dependency>
440             <groupId>org.quartz-scheduler</groupId>
441             <artifactId>quartz</artifactId>
442             <version>2.2.1</version>
443             <exclusions>
444                 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
445                 <exclusion>
446                     <groupId>c3p0</groupId>
447                     <artifactId>c3p0</artifactId>
448                 </exclusion>
449             </exclusions>
450         </dependency>
451         <!-- bridge to implement commons-logging using slf4j -->
452         <dependency>
453             <groupId>org.slf4j</groupId>
454             <artifactId>jcl-over-slf4j</artifactId>
455             <version>1.7.12</version>
456         </dependency>
457         <dependency>
458             <groupId>org.springframework</groupId>
459             <artifactId>spring-context-support</artifactId>
460             <version>${springframework.version}</version>
461         </dependency>
462         <dependency>
463             <groupId>org.springframework</groupId>
464             <artifactId>spring-core</artifactId>
465             <version>${springframework.version}</version>
466             <exclusions>
467                 <exclusion>
468                     <groupId>commons-logging</groupId>
469                     <artifactId>commons-logging</artifactId>
470                 </exclusion>
471             </exclusions>
472         </dependency>
473         <dependency>
474             <groupId>org.springframework</groupId>
475             <artifactId>spring-test</artifactId>
476             <version>${springframework.version}</version>
477         </dependency>
478         <dependency>
479             <groupId>org.springframework</groupId>
480             <artifactId>spring-tx</artifactId>
481             <version>${springframework.version}</version>
482         </dependency>
483         <dependency>
484             <groupId>org.springframework</groupId>
485             <artifactId>spring-web</artifactId>
486             <version>${springframework.version}</version>
487         </dependency>
488         <dependency>
489             <groupId>org.springframework</groupId>
490             <artifactId>spring-webmvc</artifactId>
491             <version>${springframework.version}</version>
492         </dependency>
493         <dependency>
494             <groupId>org.glassfish.jersey.core</groupId>
495             <artifactId>jersey-client</artifactId>
496             <version>2.23.1</version>
497         </dependency>
498         <dependency>
499             <groupId>org.glassfish.jersey.connectors</groupId>
500             <artifactId>jersey-jetty-connector</artifactId>
501             <version>2.23.1</version>
502         </dependency>
503         <dependency>
504             <groupId>com.fasterxml.jackson.jaxrs</groupId>
505             <artifactId>jackson-jaxrs-json-provider</artifactId>
506             <version>2.6.3</version>
507         </dependency>
508         <dependency>
509             <groupId>commons-beanutils</groupId>
510             <artifactId>commons-beanutils</artifactId>
511             <version>1.9.3</version>
512         </dependency>
513         <dependency>
514             <groupId>com.googlecode.json-simple</groupId>
515             <artifactId>json-simple</artifactId>
516             <version>1.1.1</version>
517         </dependency>
518         <dependency>
519             <groupId>org.seleniumhq.selenium</groupId>
520             <artifactId>selenium-java</artifactId>
521             <version>2.53.1</version>
522             <scope>test</scope>
523         </dependency>
524         <dependency>
525             <groupId>org.seleniumhq.selenium</groupId>
526             <artifactId>selenium-api</artifactId>
527             <version>2.53.1</version>
528             <scope>test</scope>
529         </dependency>
530         <dependency>
531             <groupId>org.testng</groupId>
532             <artifactId>testng</artifactId>
533             <version>6.8</version>
534             <scope>test</scope>
535         </dependency>
536         <dependency>
537             <groupId>org.mockito</groupId>
538             <artifactId>mockito-core</artifactId>
539             <version>2.23.0</version>
540             <scope>test</scope>
541         </dependency>
542         <dependency>
543             <groupId>org.seleniumhq.selenium</groupId>
544             <artifactId>selenium-firefox-driver</artifactId>
545             <version>2.53.1</version>
546         </dependency>
547         <dependency>
548             <groupId>xml-apis</groupId>
549             <artifactId>xml-apis</artifactId>
550             <version>1.4.01</version>
551         </dependency>
552         <dependency>
553             <groupId>org.yaml</groupId>
554             <artifactId>snakeyaml</artifactId>
555             <version>1.16</version>
556         </dependency>
557         <dependency>
558             <groupId>org.skyscreamer</groupId>
559             <artifactId>jsonassert</artifactId>
560             <version>1.5.0</version>
561         </dependency>
562         <dependency>
563             <groupId>org.onap.sdc.sdc-tosca</groupId>
564             <artifactId>sdc-tosca</artifactId>
565             <version>1.4.1</version>
566             <scope>compile</scope>
567         </dependency>
568         <dependency>
569             <groupId>net.javacrumbs.json-unit</groupId>
570             <artifactId>json-unit</artifactId>
571             <version>1.23.0</version>
572             <scope>test</scope>
573         </dependency>
574         <dependency>
575             <groupId>org.apache.commons</groupId>
576             <artifactId>commons-text</artifactId>
577             <version>1.1</version>
578         </dependency>
579         <dependency>
580             <groupId>org.hamcrest</groupId>
581             <artifactId>java-hamcrest</artifactId>
582             <version>2.0.0.0</version>
583             <scope>test</scope>
584         </dependency>
585         <dependency>
586             <groupId>org.togglz</groupId>
587             <artifactId>togglz-spring-core</artifactId>
588             <version>2.5.0.Final</version>
589         </dependency>
590         <dependency>
591             <groupId>org.assertj</groupId>
592             <artifactId>assertj-core</artifactId>
593             <version>3.10.0</version>
594             <scope>compile</scope>
595         </dependency>
596     </dependencies>
597 </project>