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>6.0.3-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.1.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.6.0</epsdk.version>
29 <epsdk.overlay.version>2.5.0</epsdk.overlay.version>
30 <springframework.version>5.2.3.RELEASE</springframework.version>
31 <springframework.orm.version>4.3.22.RELEASE</springframework.orm.version>
32 <!-- epsdk-core is importing this class, which is only on spring-orm 4 but not in orm 5:
33 org.springframework.orm.hibernate4.HibernateTransactionManager
34 so following orm.version lets epsdk-core find it -->
35 <hibernate.version>4.3.11.Final</hibernate.version>
36 <jaxb.version>2.3.2</jaxb.version>
37 <jackson.version>2.10.2</jackson.version>
38 <jackson.databind.version>2.10.2</jackson.databind.version>
39 <onap.logging.version>1.6.1</onap.logging.version>
40 <jersey.version>2.29.1</jersey.version>
41 <surefire.version>2.22.2</surefire.version>
42 <selenium.version>3.141.59</selenium.version>
43 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
45 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
46 <sonar.coverage.jacoco.xmlReportPaths>
47 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
48 </sonar.coverage.jacoco.xmlReportPaths>
50 <!-- Skip assembling the zip by default -->
51 <skipassembly>true</skipassembly>
52 <nexusproxy>https://nexus.onap.org</nexusproxy>
53 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
54 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
55 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
56 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
58 <aspectj.version>1.8.9</aspectj.version>
59 <kotlin.version>1.3.60</kotlin.version>
60 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
62 <eirslett.version>1.6</eirslett.version>
63 <node.version>v8.9.4</node.version>
64 <npm.version>5.6.0</npm.version>
66 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
67 <release_version>${env.release_version}</release_version>
70 <reportportal.argline>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar -Drp.enable=true -Drp.mode=DEFAULT -Drp.tags="CICD;BE_UNIT;BUILD_${env.BUILD_NUMBER}"</reportportal.argline>
71 <frontendTestsPhase>generate-resources</frontendTestsPhase>
77 <id>no-frontend-tests</id>
79 <frontendTestsPhase>none</frontendTestsPhase>
85 <!-- this should be commented for local debugging -->
86 <!-- <deployenv>local</deployenv> -->
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>
100 <id>ecomp-staging</id>
101 <name>VID Staging Repository</name>
102 <url>${nexusproxy}/${stagingNexusPath}</url>
105 <!-- Snapshots repository has ECOMP snapshot artifacts -->
106 <id>oss-snapshots</id>
107 <name>oss Central - Snapshots</name>
108 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
112 <distributionManagement>
114 <id>ecomp-releases</id>
115 <name>VID Release Repository</name>
116 <url>${nexusproxy}/${releaseNexusPath}</url>
119 <id>ecomp-snapshots</id>
120 <name>VID Snapshot Repository</name>
121 <url>${nexusproxy}/${snapshotNexusPath}</url>
122 </snapshotRepository>
123 <!-- added for javadoc -->
126 <url>dav:${nexusproxy}/${sitePath}</url>
128 </distributionManagement>
131 <finalName>vid-common</finalName>
136 <artifactId>kotlin-maven-plugin</artifactId>
137 <groupId>org.jetbrains.kotlin</groupId>
138 <version>${kotlin.version}</version>
142 <goals> <goal>compile</goal> </goals>
145 <sourceDir>${project.basedir}/src/main/java</sourceDir>
150 <id>test-compile</id>
151 <goals> <goal>test-compile</goal> </goals>
154 <sourceDir>${project.basedir}/src/test/java</sourceDir>
161 <groupId>org.sonarsource.scanner.maven</groupId>
162 <artifactId>sonar-maven-plugin</artifactId>
163 <version>3.6.0.1398</version>
166 <groupId>org.jacoco</groupId>
167 <artifactId>jacoco-maven-plugin</artifactId>
168 <version>0.8.4</version>
171 <id>default-prepare-agent</id>
173 <goal>prepare-agent</goal>
177 <id>default-report</id>
185 <groupId>org.apache.tomcat.maven</groupId>
186 <artifactId>tomcat6-maven-plugin</artifactId>
187 <version>2.2</version>
190 <groupId>org.apache.tomcat.maven</groupId>
191 <artifactId>tomcat7-maven-plugin</artifactId>
192 <version>2.2</version>
196 <groupId>com.github.eirslett</groupId>
197 <artifactId>frontend-maven-plugin</artifactId>
198 <version>${eirslett.version}</version>
201 <id>install node and npm</id>
203 <goal>install-node-and-npm</goal>
205 <phase>${frontendTestsPhase}</phase>
207 <npmVersion>${npm.version}</npmVersion>
208 <nodeVersion>${node.version}</nodeVersion>
212 <id>npm config list</id>
214 <arguments>config ls -l</arguments>
219 <phase>${frontendTestsPhase}</phase>
224 <arguments>install</arguments>
229 <phase>${frontendTestsPhase}</phase>
232 <id>npm run-script build</id>
234 <arguments>run-script build</arguments>
239 <phase>${frontendTestsPhase}</phase>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-compiler-plugin</artifactId>
247 <version>3.8.1</version>
254 <!-- Replacing default-compile as it is treated specially by maven -->
256 <id>default-compile</id>
259 <!-- Replacing default-testCompile as it is treated specially by maven -->
261 <id>default-testCompile</id>
265 <id>java-compile</id>
266 <phase>compile</phase>
267 <goals> <goal>compile</goal> </goals>
270 <id>java-test-compile</id>
271 <phase>test-compile</phase>
272 <goals> <goal>testCompile</goal> </goals>
279 <groupId>com.google.code.maven-replacer-plugin</groupId>
280 <artifactId>replacer</artifactId>
281 <version>1.5.3</version>
284 <phase>prepare-package</phase>
292 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
295 <token>BUILD_NUMBER</token>
296 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-surefire-plugin</artifactId>
305 <version>${surefire.version}</version>
308 <include>**/Test*.java</include>
309 <include>**/*Test.java</include>
310 <include>**/*TestCase.java</include>
313 <exclude>**/selenium/*.java</exclude>
314 <exclude>**/integrationTest/*.java</exclude>
316 <additionalClasspathElements>
317 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
318 </additionalClasspathElements>
319 <systemPropertyVariables>
320 <container.classpath>classpath:</container.classpath>
321 </systemPropertyVariables>
322 <useSystemClassLoader>false</useSystemClassLoader>
325 <!-- avoid running JUnit tests within surefire-testng provider -->
330 <name>usedefaultlisteners</name>
334 <threadCount>1</threadCount>
337 <!-- Running TestNG and JUnit Tests -->
338 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
340 <groupId>org.apache.maven.surefire</groupId>
341 <artifactId>surefire-junit47</artifactId>
342 <version>${surefire.version}</version>
345 <groupId>org.apache.maven.surefire</groupId>
346 <artifactId>surefire-testng</artifactId>
347 <version>${surefire.version}</version>
353 <artifactId>maven-assembly-plugin</artifactId>
355 <skipAssembly>${skipassembly}</skipAssembly>
357 <descriptor>${basedir}/distribution.xml</descriptor>
362 <id>make-assembly</id>
363 <phase>package</phase>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-war-plugin</artifactId>
375 <version>3.2.3</version>
377 <!-- Build a jar with all the Java classes -->
378 <attachClasses>true</attachClasses>
379 <!-- Do not put any jars in the war -->
380 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-site-plugin</artifactId>
386 <version>3.6</version>
389 <groupId>org.apache.maven.wagon</groupId>
390 <artifactId>wagon-webdav-jackrabbit</artifactId>
391 <version>2.10</version>
396 <groupId>pl.project13.maven</groupId>
397 <artifactId>git-commit-id-plugin</artifactId>
398 <version>2.2.4</version>
401 <id>get-the-git-infos</id>
403 <goal>revision</goal>
408 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
409 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
410 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
411 <generateGitPropertiesFile>true</generateGitPropertiesFile>
412 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
413 <includeOnlyProperties>
414 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
415 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
416 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
417 </includeOnlyProperties>
423 Replace phase "none" with "process-sources" to enable.
424 Set organizationName as desired.
425 Then run `mvn license:check-file-header`, or even `mvn
426 license:update-file-header`.
428 <groupId>org.codehaus.mojo</groupId>
429 <artifactId>license-maven-plugin</artifactId>
430 <version>1.17</version>
436 <goal>update-file-header</goal>
438 <!-- replace phase "none" with "process-sources" to enable -->
444 <canUpdateCopyright>false</canUpdateCopyright>
445 <canUpdateDescription>false</canUpdateDescription>
446 <licenseName>apache_v2</licenseName>
447 <processStartTag>============LICENSE_START=======================================================</processStartTag>
448 <processEndTag>============LICENSE_END=========================================================</processEndTag>
449 <sectionDelimiter>================================================================================</sectionDelimiter>
450 <projectName>VID</projectName>
451 <inceptionYear>2017</inceptionYear>
452 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
453 <canUpdateLicense>true</canUpdateLicense>
454 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
455 <emptyLineAfterHeader>true</emptyLineAfterHeader>
456 <verbose>false</verbose>
459 <include>**/*.java</include>
460 <include>**/*.kt</include>
461 <include>**/*.jsp</include>
462 <include>**/*.xml</include>
463 <include>**/*.js</include>
464 <include>**/*.ts</include>
465 <include>**/*.html</include>
466 <include>**/*.css</include>
467 <include>**/*.sql</include>
475 <root>src/main</root>
476 <root>src/test</root>
480 <exclude>**/app/vid/external/**/*</exclude>
481 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
482 <exclude>**/test/resources/WEB-INF/**/*</exclude>
483 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
495 <groupId>org.apache.maven.plugins</groupId>
496 <artifactId>maven-javadoc-plugin</artifactId>
497 <version>2.10.4</version>
499 <failOnError>false</failOnError>
500 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
502 <groupId>org.umlgraph</groupId>
503 <artifactId>umlgraph</artifactId>
504 <version>5.6</version>
506 <additionalparam>-views</additionalparam>
507 <useStandardDocletOptions>true</useStandardDocletOptions>
516 <groupId>com.opencsv</groupId>
517 <artifactId>opencsv</artifactId>
518 <version>5.0</version>
524 <groupId>io.joshworks.unirest</groupId>
525 <artifactId>unirest-java</artifactId>
526 <version>0.2.1</version>
529 <groupId>org.apache.httpcomponents</groupId>
530 <artifactId>httpclient</artifactId>
531 <version>4.5.11</version>
534 <groupId>org.apache.httpcomponents</groupId>
535 <artifactId>httpasyncclient</artifactId>
536 <version>4.1.4</version>
539 <groupId>org.apache.httpcomponents</groupId>
540 <artifactId>httpmime</artifactId>
541 <version>4.5.11</version>
544 <groupId>com.xebialabs.restito</groupId>
545 <artifactId>restito</artifactId>
546 <version>0.9.3</version>
550 <groupId>org.jeasy</groupId>
551 <artifactId>easy-random-core</artifactId>
552 <version>4.0.0</version>
558 <groupId>io.vavr</groupId>
559 <artifactId>vavr</artifactId>
560 <version>0.10.2</version>
563 <!-- SDK overlay war -->
565 <groupId>org.onap.portal.sdk</groupId>
566 <artifactId>epsdk-app-overlay</artifactId>
567 <version>${epsdk.overlay.version}</version>
571 <groupId>org.onap.portal.sdk</groupId>
572 <artifactId>epsdk-app-common</artifactId>
573 <version>${epsdk.version}</version>
578 <groupId>org.onap.portal.sdk</groupId>
579 <artifactId>epsdk-core</artifactId>
580 <version>${epsdk.version}</version>
583 <groupId>org.onap.portal.sdk</groupId>
584 <artifactId>epsdk-analytics</artifactId>
585 <version>${epsdk.version}</version>
588 <groupId>com.lowagie</groupId>
589 <artifactId>itext</artifactId>
594 <groupId>org.onap.portal.sdk</groupId>
595 <artifactId>epsdk-workflow</artifactId>
596 <version>${epsdk.version}</version>
599 <groupId>com.att.eelf</groupId>
600 <artifactId>eelf-core</artifactId>
601 <version>1.0.0</version>
604 <artifactId>powermock-api-mockito</artifactId>
605 <groupId>org.powermock</groupId>
610 <groupId>ch.qos.logback</groupId>
611 <artifactId>logback-classic</artifactId>
614 <groupId>org.onap.logging-analytics</groupId>
615 <artifactId>logging-filter-base</artifactId>
616 <version>${onap.logging.version}</version>
619 <groupId>org.onap.logging-analytics</groupId>
620 <artifactId>logging-filter-spring</artifactId>
621 <version>${onap.logging.version}</version>
625 <groupId>org.jetbrains.kotlin</groupId>
626 <artifactId>kotlin-stdlib-jdk8</artifactId>
627 <version>${kotlin.version}</version>
632 <groupId>com.fasterxml.jackson.core</groupId>
633 <artifactId>jackson-annotations</artifactId>
634 <version>${jackson.version}</version>
637 <groupId>com.fasterxml.jackson.core</groupId>
638 <artifactId>jackson-core</artifactId>
639 <version>${jackson.version}</version>
642 <groupId>com.fasterxml.jackson.core</groupId>
643 <artifactId>jackson-databind</artifactId>
644 <version>${jackson.databind.version}</version>
647 <groupId>com.fasterxml.jackson.module</groupId>
648 <artifactId>jackson-module-kotlin</artifactId>
649 <version>${jackson.version}</version>
651 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
653 <groupId>com.mchange</groupId>
654 <artifactId>c3p0</artifactId>
655 <version>0.9.5.5</version>
658 <groupId>io.searchbox</groupId>
659 <artifactId>jest</artifactId>
660 <version>6.3.1</version>
663 <groupId>commons-logging</groupId>
664 <artifactId>commons-logging</artifactId>
669 <groupId>javax.servlet</groupId>
670 <artifactId>javax.servlet-api</artifactId>
671 <version>4.0.1</version>
672 <scope>provided</scope>
675 <groupId>junit</groupId>
676 <artifactId>junit</artifactId>
677 <version>4.12</version>
681 <groupId>commons-io</groupId>
682 <artifactId>commons-io</artifactId>
683 <version>2.6</version>
684 <!--<scope>test</scope>-->
687 <groupId>com.google.code.bean-matchers</groupId>
688 <artifactId>bean-matchers</artifactId>
689 <version>0.11</version>
693 <groupId>org.json</groupId>
694 <artifactId>json</artifactId>
695 <version>20190722</version>
698 <groupId>org.quartz-scheduler</groupId>
699 <artifactId>quartz</artifactId>
700 <version>2.3.1</version>
702 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
704 <groupId>c3p0</groupId>
705 <artifactId>c3p0</artifactId>
709 <!-- bridge to implement commons-logging using slf4j -->
711 <groupId>org.slf4j</groupId>
712 <artifactId>jcl-over-slf4j</artifactId>
713 <version>1.7.27</version>
716 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
718 <groupId>org.springframework</groupId>
719 <artifactId>spring-core</artifactId>
720 <version>${springframework.version}</version>
723 <groupId>commons-logging</groupId>
724 <artifactId>commons-logging</artifactId>
729 <groupId>org.springframework</groupId>
730 <artifactId>spring-test</artifactId>
731 <version>${springframework.version}</version>
734 <groupId>org.springframework</groupId>
735 <artifactId>spring-tx</artifactId>
736 <version>${springframework.version}</version>
739 <groupId>org.springframework</groupId>
740 <artifactId>spring-web</artifactId>
741 <version>${springframework.version}</version>
744 <groupId>org.springframework</groupId>
745 <artifactId>spring-webmvc</artifactId>
746 <version>${springframework.version}</version>
749 <groupId>org.springframework</groupId>
750 <artifactId>spring-context-support</artifactId>
751 <version>${springframework.version}</version>
754 <groupId>org.springframework</groupId>
755 <artifactId>spring-orm</artifactId>
756 <version>${springframework.orm.version}</version>
759 <groupId>org.springframework</groupId>
760 <artifactId>spring-aop</artifactId>
761 <version>${springframework.version}</version>
765 <groupId>org.glassfish.jersey.core</groupId>
766 <artifactId>jersey-client</artifactId>
767 <version>${jersey.version}</version>
770 <groupId>org.glassfish.jersey.connectors</groupId>
771 <artifactId>jersey-jetty-connector</artifactId>
772 <version>${jersey.version}</version>
774 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
776 <groupId>org.glassfish.jersey.inject</groupId>
777 <artifactId>jersey-hk2</artifactId>
778 <version>${jersey.version}</version>
781 <groupId>com.fasterxml.jackson.jaxrs</groupId>
782 <artifactId>jackson-jaxrs-json-provider</artifactId>
783 <version>${jackson.version}</version>
786 <groupId>commons-beanutils</groupId>
787 <artifactId>commons-beanutils</artifactId>
790 <groupId>com.googlecode.json-simple</groupId>
791 <artifactId>json-simple</artifactId>
792 <version>1.1.1</version>
795 <groupId>org.seleniumhq.selenium</groupId>
796 <artifactId>selenium-java</artifactId>
797 <version>${selenium.version}</version>
801 <groupId>org.seleniumhq.selenium</groupId>
802 <artifactId>selenium-api</artifactId>
803 <version>${selenium.version}</version>
807 <groupId>org.testng</groupId>
808 <artifactId>testng</artifactId>
809 <version>6.14.3</version>
813 <groupId>org.mockito</groupId>
814 <artifactId>mockito-core</artifactId>
815 <version>2.23.0</version>
819 <groupId>org.seleniumhq.selenium</groupId>
820 <artifactId>selenium-firefox-driver</artifactId>
821 <version>${selenium.version}</version>
824 <groupId>xml-apis</groupId>
825 <artifactId>xml-apis</artifactId>
826 <version>2.0.2</version>
829 <groupId>org.yaml</groupId>
830 <artifactId>snakeyaml</artifactId>
831 <version>1.25</version>
834 <groupId>org.skyscreamer</groupId>
835 <artifactId>jsonassert</artifactId>
836 <version>1.5.0</version>
840 <groupId>org.onap.sdc.sdc-tosca</groupId>
841 <artifactId>sdc-tosca</artifactId>
842 <version>1.6.0</version>
843 <scope>compile</scope>
846 <groupId>net.javacrumbs.json-unit</groupId>
847 <artifactId>json-unit</artifactId>
848 <version>2.8.0</version>
852 <groupId>org.glassfish.jersey.media</groupId>
853 <artifactId>jersey-media-json-jackson</artifactId>
854 <version>${jersey.version}</version>
858 <groupId>org.apache.commons</groupId>
859 <artifactId>commons-lang3</artifactId>
860 <version>3.9</version>
863 <groupId>org.apache.commons</groupId>
864 <artifactId>commons-text</artifactId>
865 <version>1.8</version>
868 <groupId>org.apache.commons</groupId>
869 <artifactId>commons-proxy</artifactId>
870 <version>1.0</version>
873 <groupId>org.apache.commons</groupId>
874 <artifactId>commons-collections4</artifactId>
875 <version>4.4</version>
878 <groupId>commons-cli</groupId>
879 <artifactId>commons-cli</artifactId>
880 <version>1.4</version>
883 <groupId>org.hamcrest</groupId>
884 <artifactId>java-hamcrest</artifactId>
885 <version>2.0.0.0</version>
889 <groupId>org.togglz</groupId>
890 <artifactId>togglz-spring-core</artifactId>
891 <version>2.6.1.Final</version>
894 <groupId>com.h2database</groupId>
895 <artifactId>h2</artifactId>
896 <version>1.4.200</version>
900 <groupId>jakarta.xml.bind</groupId>
901 <artifactId>jakarta.xml.bind-api</artifactId>
902 <version>${jaxb.version}</version>
906 <groupId>org.assertj</groupId>
907 <artifactId>assertj-core</artifactId>
908 <version>3.13.2</version>
912 <groupId>com.google.guava</groupId>
913 <artifactId>guava</artifactId>
914 <version>28.2-jre</version>
917 <groupId>io.springfox</groupId>
918 <artifactId>springfox-swagger2</artifactId>
919 <version>2.9.2</version>
922 <groupId>org.apache.maven</groupId>
923 <artifactId>maven-artifact</artifactId>
924 <version>3.6.3</version>