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