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>
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>5.0.0-SNAPSHOT</version>
13 <packaging>war</packaging>
14 <name>VID Common</name>
15 <description>VID Common code for opensource version</description>
18 <groupId>org.onap.oparent</groupId>
19 <artifactId>oparent</artifactId>
20 <version>2.0.0</version>
25 <encoding>UTF-8</encoding>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
28 <epsdk.version>2.4.0</epsdk.version>
29 <springframework.version>5.1.6.RELEASE</springframework.version>
30 <springframework.orm.version>4.3.22.RELEASE</springframework.orm.version>
31 <!-- epsdk-core is importing this class, which is only on spring-orm 4 but not in orm 5:
32 org.springframework.orm.hibernate4.HibernateTransactionManager
33 so following orm.version lets epsdk-core find it -->
34 <hibernate.version>4.3.11.Final</hibernate.version>
35 <jackson.version>2.9.8</jackson.version>
36 <jersey.version>2.27</jersey.version>
37 <surefire.version>2.22.1</surefire.version>
38 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
40 <!-- Skip assembling the zip by default -->
41 <skipassembly>true</skipassembly>
42 <nexusproxy>https://nexus.onap.org</nexusproxy>
43 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
44 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
45 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
46 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
48 <aspectj.version>1.8.9</aspectj.version>
49 <kotlin.version>1.3.11</kotlin.version>
50 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
52 <eirslett.version>1.6</eirslett.version>
53 <node.version>v6.16.0</node.version>
55 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
56 <release_version>${env.RELEASE_VERSION}</release_version>
61 <!-- this should be commented for local debugging -->
62 <!-- <deployenv>local</deployenv> -->
66 <id>ecomp-releases</id>
67 <name>VID Release Repository</name>
68 <url>${nexusproxy}/${releaseNexusPath}</url>
71 <id>ecomp-snapshots</id>
72 <name>VID Snapshot Repository</name>
73 <url>${nexusproxy}/${snapshotNexusPath}</url>
76 <id>ecomp-staging</id>
77 <name>VID Staging Repository</name>
78 <url>${nexusproxy}/${stagingNexusPath}</url>
81 <!-- Snapshots repository has ECOMP snapshot artifacts -->
82 <id>oss-snapshots</id>
83 <name>oss Central - Snapshots</name>
84 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
88 <distributionManagement>
90 <id>ecomp-releases</id>
91 <name>VID Release Repository</name>
92 <url>${nexusproxy}/${releaseNexusPath}</url>
95 <id>ecomp-snapshots</id>
96 <name>VID Snapshot Repository</name>
97 <url>${nexusproxy}/${snapshotNexusPath}</url>
99 <!-- added for javadoc -->
102 <url>dav:${nexusproxy}/${sitePath}</url>
104 </distributionManagement>
107 <finalName>vid-common</finalName>
112 <artifactId>kotlin-maven-plugin</artifactId>
113 <groupId>org.jetbrains.kotlin</groupId>
114 <version>${kotlin.version}</version>
118 <goals> <goal>compile</goal> </goals>
121 <sourceDir>${project.basedir}/src/main/java</sourceDir>
126 <id>test-compile</id>
127 <goals> <goal>test-compile</goal> </goals>
130 <sourceDir>${project.basedir}/src/test/java</sourceDir>
137 <groupId>org.jacoco</groupId>
138 <artifactId>jacoco-maven-plugin</artifactId>
139 <version>0.8.3</version>
142 <id>default-prepare-agent</id>
144 <goal>prepare-agent</goal>
148 <id>default-report</id>
156 <groupId>org.apache.tomcat.maven</groupId>
157 <artifactId>tomcat6-maven-plugin</artifactId>
158 <version>2.2</version>
161 <groupId>org.apache.tomcat.maven</groupId>
162 <artifactId>tomcat7-maven-plugin</artifactId>
163 <version>2.2</version>
167 <groupId>com.github.eirslett</groupId>
168 <artifactId>frontend-maven-plugin</artifactId>
169 <version>${eirslett.version}</version>
172 <id>install node and npm</id>
174 <goal>install-node-and-npm</goal>
176 <phase>generate-resources</phase>
178 <nodeVersion>${node.version}</nodeVersion>
182 <id>npm config list</id>
184 <arguments>config ls -l</arguments>
189 <phase>generate-resources</phase>
194 <arguments>install</arguments>
199 <phase>generate-resources</phase>
202 <id>npm run-script build</id>
204 <arguments>run-script build</arguments>
209 <phase>generate-resources</phase>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-compiler-plugin</artifactId>
217 <version>3.5.1</version>
224 <!-- Replacing default-compile as it is treated specially by maven -->
226 <id>default-compile</id>
229 <!-- Replacing default-testCompile as it is treated specially by maven -->
231 <id>default-testCompile</id>
235 <id>java-compile</id>
236 <phase>compile</phase>
237 <goals> <goal>compile</goal> </goals>
240 <id>java-test-compile</id>
241 <phase>test-compile</phase>
242 <goals> <goal>testCompile</goal> </goals>
249 <groupId>com.google.code.maven-replacer-plugin</groupId>
250 <artifactId>replacer</artifactId>
251 <version>1.5.3</version>
254 <phase>prepare-package</phase>
262 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
265 <token>BUILD_NUMBER</token>
266 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-surefire-plugin</artifactId>
275 <version>${surefire.version}</version>
278 <include>**/Test*.java</include>
279 <include>**/*Test.java</include>
280 <include>**/*TestCase.java</include>
283 <exclude>**/selenium/*.java</exclude>
284 <exclude>**/integrationTest/*.java</exclude>
286 <additionalClasspathElements>
287 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
288 </additionalClasspathElements>
289 <systemPropertyVariables>
290 <container.classpath>classpath:</container.classpath>
291 </systemPropertyVariables>
292 <useSystemClassLoader>false</useSystemClassLoader>
295 <!-- avoid running JUnit tests within surefire-testng provider -->
300 <threadCount>1</threadCount>
303 <!-- Running TestNG and JUnit Tests -->
304 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
306 <groupId>org.apache.maven.surefire</groupId>
307 <artifactId>surefire-junit47</artifactId>
308 <version>${surefire.version}</version>
311 <groupId>org.apache.maven.surefire</groupId>
312 <artifactId>surefire-testng</artifactId>
313 <version>${surefire.version}</version>
319 <artifactId>maven-assembly-plugin</artifactId>
321 <skipAssembly>${skipassembly}</skipAssembly>
323 <descriptor>${basedir}/distribution.xml</descriptor>
328 <id>make-assembly</id>
329 <phase>package</phase>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-war-plugin</artifactId>
341 <version>3.0.0</version>
343 <!-- Build a jar with all the Java classes -->
344 <attachClasses>true</attachClasses>
345 <!-- Do not put any jars in the war -->
346 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-site-plugin</artifactId>
352 <version>3.6</version>
355 <groupId>org.apache.maven.wagon</groupId>
356 <artifactId>wagon-webdav-jackrabbit</artifactId>
357 <version>2.10</version>
362 <groupId>pl.project13.maven</groupId>
363 <artifactId>git-commit-id-plugin</artifactId>
364 <version>2.2.4</version>
367 <id>get-the-git-infos</id>
369 <goal>revision</goal>
374 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
375 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
376 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
377 <generateGitPropertiesFile>true</generateGitPropertiesFile>
378 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
379 <includeOnlyProperties>
380 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
381 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
382 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
383 </includeOnlyProperties>
389 Replace phase "none" with "process-sources" to enable.
390 Set organizationName as desired.
391 Then run `mvn license:check-file-header`, or even `mvn
392 license:update-file-header`.
394 <groupId>org.codehaus.mojo</groupId>
395 <artifactId>license-maven-plugin</artifactId>
396 <version>1.17</version>
402 <goal>update-file-header</goal>
404 <!-- replace phase "none" with "process-sources" to enable -->
410 <canUpdateCopyright>false</canUpdateCopyright>
411 <canUpdateDescription>false</canUpdateDescription>
412 <licenseName>apache_v2</licenseName>
413 <processStartTag>============LICENSE_START=======================================================</processStartTag>
414 <processEndTag>============LICENSE_END=========================================================</processEndTag>
415 <sectionDelimiter>================================================================================</sectionDelimiter>
416 <projectName>VID</projectName>
417 <inceptionYear>2017</inceptionYear>
418 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
419 <canUpdateLicense>true</canUpdateLicense>
420 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
421 <emptyLineAfterHeader>true</emptyLineAfterHeader>
422 <verbose>false</verbose>
425 <include>**/*.java</include>
426 <include>**/*.kt</include>
427 <include>**/*.jsp</include>
428 <include>**/*.xml</include>
429 <include>**/*.js</include>
430 <include>**/*.ts</include>
431 <include>**/*.html</include>
432 <include>**/*.css</include>
433 <include>**/*.sql</include>
441 <root>src/main</root>
442 <root>src/test</root>
446 <exclude>**/app/vid/external/**/*</exclude>
447 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
448 <exclude>**/test/resources/WEB-INF/**/*</exclude>
449 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
461 <groupId>org.apache.maven.plugins</groupId>
462 <artifactId>maven-javadoc-plugin</artifactId>
463 <version>2.10.4</version>
465 <failOnError>false</failOnError>
466 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
468 <groupId>org.umlgraph</groupId>
469 <artifactId>umlgraph</artifactId>
470 <version>5.6</version>
472 <additionalparam>-views</additionalparam>
473 <useStandardDocletOptions>true</useStandardDocletOptions>
482 <groupId>com.opencsv</groupId>
483 <artifactId>opencsv</artifactId>
484 <version>4.1</version>
490 <groupId>io.joshworks.unirest</groupId>
491 <artifactId>unirest-java</artifactId>
492 <version>0.2.1</version>
495 <groupId>org.apache.httpcomponents</groupId>
496 <artifactId>httpclient</artifactId>
499 <groupId>org.apache.httpcomponents</groupId>
500 <artifactId>httpasyncclient</artifactId>
501 <version>4.0.2</version>
504 <groupId>org.apache.httpcomponents</groupId>
505 <artifactId>httpmime</artifactId>
506 <version>4.5.7</version>
509 <groupId>com.xebialabs.restito</groupId>
510 <artifactId>restito</artifactId>
511 <version>0.9.3</version>
515 <groupId>org.jeasy</groupId>
516 <artifactId>easy-random-core</artifactId>
517 <version>4.0.0.RC1</version>
523 <groupId>io.vavr</groupId>
524 <artifactId>vavr</artifactId>
525 <version>0.9.2</version>
528 <!-- SDK overlay war -->
530 <groupId>org.onap.portal.sdk</groupId>
531 <artifactId>epsdk-app-overlay</artifactId>
532 <version>${epsdk.version}</version>
536 <groupId>org.onap.portal.sdk</groupId>
537 <artifactId>epsdk-app-common</artifactId>
538 <version>${epsdk.version}</version>
543 <groupId>org.onap.portal.sdk</groupId>
544 <artifactId>epsdk-core</artifactId>
545 <version>${epsdk.version}</version>
548 <groupId>org.onap.portal.sdk</groupId>
549 <artifactId>epsdk-analytics</artifactId>
550 <version>${epsdk.version}</version>
553 <groupId>com.lowagie</groupId>
554 <artifactId>itext</artifactId>
559 <groupId>org.onap.portal.sdk</groupId>
560 <artifactId>epsdk-workflow</artifactId>
561 <version>${epsdk.version}</version>
564 <groupId>com.att.eelf</groupId>
565 <artifactId>eelf-core</artifactId>
566 <version>1.0.0</version>
569 <artifactId>powermock-api-mockito</artifactId>
570 <groupId>org.powermock</groupId>
575 <groupId>ch.qos.logback</groupId>
576 <artifactId>logback-classic</artifactId>
580 <groupId>org.jetbrains.kotlin</groupId>
581 <artifactId>kotlin-stdlib-jdk8</artifactId>
582 <version>${kotlin.version}</version>
587 <groupId>com.fasterxml.jackson.core</groupId>
588 <artifactId>jackson-annotations</artifactId>
589 <version>${jackson.version}</version>
592 <groupId>com.fasterxml.jackson.core</groupId>
593 <artifactId>jackson-core</artifactId>
594 <version>${jackson.version}</version>
597 <groupId>com.fasterxml.jackson.core</groupId>
598 <artifactId>jackson-databind</artifactId>
599 <version>${jackson.version}</version>
602 <groupId>com.fasterxml.jackson.module</groupId>
603 <artifactId>jackson-module-kotlin</artifactId>
604 <version>${jackson.version}</version>
606 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
608 <groupId>com.mchange</groupId>
609 <artifactId>c3p0</artifactId>
610 <version>0.9.5.4</version>
613 <groupId>io.searchbox</groupId>
614 <artifactId>jest</artifactId>
615 <version>2.0.0</version>
618 <groupId>commons-logging</groupId>
619 <artifactId>commons-logging</artifactId>
624 <groupId>javax.servlet</groupId>
625 <artifactId>javax.servlet-api</artifactId>
626 <version>3.1.0</version>
627 <scope>provided</scope>
630 <groupId>junit</groupId>
631 <artifactId>junit</artifactId>
632 <version>4.12</version>
636 <groupId>commons-io</groupId>
637 <artifactId>commons-io</artifactId>
638 <version>2.4</version>
639 <!--<scope>test</scope>-->
642 <groupId>com.google.code.bean-matchers</groupId>
643 <artifactId>bean-matchers</artifactId>
644 <version>0.11</version>
648 <groupId>org.json</groupId>
649 <artifactId>json</artifactId>
650 <version>20160212</version>
653 <groupId>org.quartz-scheduler</groupId>
654 <artifactId>quartz</artifactId>
655 <version>2.2.1</version>
657 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
659 <groupId>c3p0</groupId>
660 <artifactId>c3p0</artifactId>
664 <!-- bridge to implement commons-logging using slf4j -->
666 <groupId>org.slf4j</groupId>
667 <artifactId>jcl-over-slf4j</artifactId>
668 <version>1.7.12</version>
671 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
673 <groupId>org.springframework</groupId>
674 <artifactId>spring-core</artifactId>
675 <version>${springframework.version}</version>
678 <groupId>commons-logging</groupId>
679 <artifactId>commons-logging</artifactId>
684 <groupId>org.springframework</groupId>
685 <artifactId>spring-test</artifactId>
686 <version>${springframework.version}</version>
689 <groupId>org.springframework</groupId>
690 <artifactId>spring-tx</artifactId>
691 <version>${springframework.version}</version>
694 <groupId>org.springframework</groupId>
695 <artifactId>spring-web</artifactId>
696 <version>${springframework.version}</version>
699 <groupId>org.springframework</groupId>
700 <artifactId>spring-webmvc</artifactId>
701 <version>${springframework.version}</version>
704 <groupId>org.springframework</groupId>
705 <artifactId>spring-context-support</artifactId>
706 <version>${springframework.version}</version>
709 <groupId>org.springframework</groupId>
710 <artifactId>spring-orm</artifactId>
711 <version>${springframework.orm.version}</version>
714 <groupId>org.springframework</groupId>
715 <artifactId>spring-aop</artifactId>
716 <version>${springframework.version}</version>
720 <groupId>org.glassfish.jersey.core</groupId>
721 <artifactId>jersey-client</artifactId>
722 <version>${jersey.version}</version>
725 <groupId>org.glassfish.jersey.connectors</groupId>
726 <artifactId>jersey-jetty-connector</artifactId>
727 <version>${jersey.version}</version>
729 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
731 <groupId>org.glassfish.jersey.inject</groupId>
732 <artifactId>jersey-hk2</artifactId>
733 <version>${jersey.version}</version>
736 <groupId>com.fasterxml.jackson.jaxrs</groupId>
737 <artifactId>jackson-jaxrs-json-provider</artifactId>
738 <version>${jackson.version}</version>
741 <groupId>commons-beanutils</groupId>
742 <artifactId>commons-beanutils</artifactId>
745 <groupId>com.googlecode.json-simple</groupId>
746 <artifactId>json-simple</artifactId>
747 <version>1.1.1</version>
750 <groupId>org.seleniumhq.selenium</groupId>
751 <artifactId>selenium-java</artifactId>
752 <version>2.53.1</version>
756 <groupId>org.seleniumhq.selenium</groupId>
757 <artifactId>selenium-api</artifactId>
758 <version>2.53.1</version>
762 <groupId>org.testng</groupId>
763 <artifactId>testng</artifactId>
764 <version>6.14.3</version>
768 <groupId>org.mockito</groupId>
769 <artifactId>mockito-core</artifactId>
770 <version>2.23.0</version>
774 <groupId>org.seleniumhq.selenium</groupId>
775 <artifactId>selenium-firefox-driver</artifactId>
776 <version>2.53.1</version>
779 <groupId>xml-apis</groupId>
780 <artifactId>xml-apis</artifactId>
781 <version>1.4.01</version>
784 <groupId>org.yaml</groupId>
785 <artifactId>snakeyaml</artifactId>
786 <version>1.16</version>
789 <groupId>org.skyscreamer</groupId>
790 <artifactId>jsonassert</artifactId>
791 <version>1.5.0</version>
795 <groupId>org.onap.sdc.sdc-tosca</groupId>
796 <artifactId>sdc-tosca</artifactId>
797 <version>1.5.1</version>
798 <scope>compile</scope>
801 <groupId>net.javacrumbs.json-unit</groupId>
802 <artifactId>json-unit</artifactId>
803 <version>1.23.0</version>
807 <groupId>org.glassfish.jersey.media</groupId>
808 <artifactId>jersey-media-json-jackson</artifactId>
809 <version>${jersey.version}</version>
813 <groupId>org.apache.commons</groupId>
814 <artifactId>commons-lang3</artifactId>
815 <version>3.6</version>
818 <groupId>org.apache.commons</groupId>
819 <artifactId>commons-text</artifactId>
820 <version>1.1</version>
823 <groupId>org.apache.commons</groupId>
824 <artifactId>commons-proxy</artifactId>
825 <version>1.0</version>
828 <groupId>org.hamcrest</groupId>
829 <artifactId>java-hamcrest</artifactId>
830 <version>2.0.0.0</version>
834 <groupId>org.togglz</groupId>
835 <artifactId>togglz-spring-core</artifactId>
836 <version>2.5.0.Final</version>
839 <groupId>com.h2database</groupId>
840 <artifactId>h2</artifactId>
841 <version>1.4.196</version>
845 <groupId>javax.xml.bind</groupId>
846 <artifactId>jaxb-api</artifactId>
847 <version>2.2.11</version>
851 <groupId>org.assertj</groupId>
852 <artifactId>assertj-core</artifactId>
853 <version>3.10.0</version>
857 <groupId>com.google.guava</groupId>
858 <artifactId>guava</artifactId>
861 <groupId>io.springfox</groupId>
862 <artifactId>springfox-swagger2</artifactId>
863 <version>2.9.2</version>