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.0.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 <jackson.version>2.10.1</jackson.version>
37 <jackson.databind.version>2.10.1</jackson.databind.version>
38 <onap.logging.version>1.6.1</onap.logging.version>
39 <jersey.version>2.29.1</jersey.version>
40 <surefire.version>2.22.1</surefire.version>
41 <selenium.version>3.141.59</selenium.version>
42 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
44 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
45 <sonar.coverage.jacoco.xmlReportPaths>
46 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
47 </sonar.coverage.jacoco.xmlReportPaths>
49 <!-- Skip assembling the zip by default -->
50 <skipassembly>true</skipassembly>
51 <nexusproxy>https://nexus.onap.org</nexusproxy>
52 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
53 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
54 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
55 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
57 <aspectj.version>1.8.9</aspectj.version>
58 <kotlin.version>1.3.60</kotlin.version>
59 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
61 <eirslett.version>1.6</eirslett.version>
62 <node.version>v8.9.4</node.version>
63 <npm.version>5.6.0</npm.version>
65 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
66 <release_version>${env.release_version}</release_version>
69 <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>
70 <frontendTestsPhase>generate-resources</frontendTestsPhase>
76 <id>no-frontend-tests</id>
78 <frontendTestsPhase>none</frontendTestsPhase>
84 <!-- this should be commented for local debugging -->
85 <!-- <deployenv>local</deployenv> -->
89 <id>ecomp-releases</id>
90 <name>VID Release Repository</name>
91 <url>${nexusproxy}/${releaseNexusPath}</url>
94 <id>ecomp-snapshots</id>
95 <name>VID Snapshot Repository</name>
96 <url>${nexusproxy}/${snapshotNexusPath}</url>
99 <id>ecomp-staging</id>
100 <name>VID Staging Repository</name>
101 <url>${nexusproxy}/${stagingNexusPath}</url>
104 <!-- Snapshots repository has ECOMP snapshot artifacts -->
105 <id>oss-snapshots</id>
106 <name>oss Central - Snapshots</name>
107 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
111 <distributionManagement>
113 <id>ecomp-releases</id>
114 <name>VID Release Repository</name>
115 <url>${nexusproxy}/${releaseNexusPath}</url>
118 <id>ecomp-snapshots</id>
119 <name>VID Snapshot Repository</name>
120 <url>${nexusproxy}/${snapshotNexusPath}</url>
121 </snapshotRepository>
122 <!-- added for javadoc -->
125 <url>dav:${nexusproxy}/${sitePath}</url>
127 </distributionManagement>
130 <finalName>vid-common</finalName>
135 <artifactId>kotlin-maven-plugin</artifactId>
136 <groupId>org.jetbrains.kotlin</groupId>
137 <version>${kotlin.version}</version>
141 <goals> <goal>compile</goal> </goals>
144 <sourceDir>${project.basedir}/src/main/java</sourceDir>
149 <id>test-compile</id>
150 <goals> <goal>test-compile</goal> </goals>
153 <sourceDir>${project.basedir}/src/test/java</sourceDir>
160 <groupId>org.sonarsource.scanner.maven</groupId>
161 <artifactId>sonar-maven-plugin</artifactId>
162 <version>3.6.0.1398</version>
165 <groupId>org.jacoco</groupId>
166 <artifactId>jacoco-maven-plugin</artifactId>
167 <version>0.8.4</version>
170 <id>default-prepare-agent</id>
172 <goal>prepare-agent</goal>
176 <id>default-report</id>
184 <groupId>org.apache.tomcat.maven</groupId>
185 <artifactId>tomcat6-maven-plugin</artifactId>
186 <version>2.2</version>
189 <groupId>org.apache.tomcat.maven</groupId>
190 <artifactId>tomcat7-maven-plugin</artifactId>
191 <version>2.2</version>
195 <groupId>com.github.eirslett</groupId>
196 <artifactId>frontend-maven-plugin</artifactId>
197 <version>${eirslett.version}</version>
200 <id>install node and npm</id>
202 <goal>install-node-and-npm</goal>
204 <phase>${frontendTestsPhase}</phase>
206 <npmVersion>${npm.version}</npmVersion>
207 <nodeVersion>${node.version}</nodeVersion>
211 <id>npm config list</id>
213 <arguments>config ls -l</arguments>
218 <phase>${frontendTestsPhase}</phase>
223 <arguments>install</arguments>
228 <phase>${frontendTestsPhase}</phase>
231 <id>npm run-script build</id>
233 <arguments>run-script build</arguments>
238 <phase>${frontendTestsPhase}</phase>
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-compiler-plugin</artifactId>
246 <version>3.5.1</version>
253 <!-- Replacing default-compile as it is treated specially by maven -->
255 <id>default-compile</id>
258 <!-- Replacing default-testCompile as it is treated specially by maven -->
260 <id>default-testCompile</id>
264 <id>java-compile</id>
265 <phase>compile</phase>
266 <goals> <goal>compile</goal> </goals>
269 <id>java-test-compile</id>
270 <phase>test-compile</phase>
271 <goals> <goal>testCompile</goal> </goals>
278 <groupId>com.google.code.maven-replacer-plugin</groupId>
279 <artifactId>replacer</artifactId>
280 <version>1.5.3</version>
283 <phase>prepare-package</phase>
291 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
294 <token>BUILD_NUMBER</token>
295 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-surefire-plugin</artifactId>
304 <version>${surefire.version}</version>
307 <include>**/Test*.java</include>
308 <include>**/*Test.java</include>
309 <include>**/*TestCase.java</include>
312 <exclude>**/selenium/*.java</exclude>
313 <exclude>**/integrationTest/*.java</exclude>
315 <additionalClasspathElements>
316 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
317 </additionalClasspathElements>
318 <systemPropertyVariables>
319 <container.classpath>classpath:</container.classpath>
320 </systemPropertyVariables>
321 <useSystemClassLoader>false</useSystemClassLoader>
324 <!-- avoid running JUnit tests within surefire-testng provider -->
329 <name>usedefaultlisteners</name>
333 <threadCount>1</threadCount>
336 <!-- Running TestNG and JUnit Tests -->
337 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
339 <groupId>org.apache.maven.surefire</groupId>
340 <artifactId>surefire-junit47</artifactId>
341 <version>${surefire.version}</version>
344 <groupId>org.apache.maven.surefire</groupId>
345 <artifactId>surefire-testng</artifactId>
346 <version>${surefire.version}</version>
352 <artifactId>maven-assembly-plugin</artifactId>
354 <skipAssembly>${skipassembly}</skipAssembly>
356 <descriptor>${basedir}/distribution.xml</descriptor>
361 <id>make-assembly</id>
362 <phase>package</phase>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-war-plugin</artifactId>
374 <version>3.0.0</version>
376 <!-- Build a jar with all the Java classes -->
377 <attachClasses>true</attachClasses>
378 <!-- Do not put any jars in the war -->
379 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-site-plugin</artifactId>
385 <version>3.6</version>
388 <groupId>org.apache.maven.wagon</groupId>
389 <artifactId>wagon-webdav-jackrabbit</artifactId>
390 <version>2.10</version>
395 <groupId>pl.project13.maven</groupId>
396 <artifactId>git-commit-id-plugin</artifactId>
397 <version>2.2.4</version>
400 <id>get-the-git-infos</id>
402 <goal>revision</goal>
407 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
408 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
409 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
410 <generateGitPropertiesFile>true</generateGitPropertiesFile>
411 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
412 <includeOnlyProperties>
413 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
414 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
415 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
416 </includeOnlyProperties>
422 Replace phase "none" with "process-sources" to enable.
423 Set organizationName as desired.
424 Then run `mvn license:check-file-header`, or even `mvn
425 license:update-file-header`.
427 <groupId>org.codehaus.mojo</groupId>
428 <artifactId>license-maven-plugin</artifactId>
429 <version>1.17</version>
435 <goal>update-file-header</goal>
437 <!-- replace phase "none" with "process-sources" to enable -->
443 <canUpdateCopyright>false</canUpdateCopyright>
444 <canUpdateDescription>false</canUpdateDescription>
445 <licenseName>apache_v2</licenseName>
446 <processStartTag>============LICENSE_START=======================================================</processStartTag>
447 <processEndTag>============LICENSE_END=========================================================</processEndTag>
448 <sectionDelimiter>================================================================================</sectionDelimiter>
449 <projectName>VID</projectName>
450 <inceptionYear>2017</inceptionYear>
451 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
452 <canUpdateLicense>true</canUpdateLicense>
453 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
454 <emptyLineAfterHeader>true</emptyLineAfterHeader>
455 <verbose>false</verbose>
458 <include>**/*.java</include>
459 <include>**/*.kt</include>
460 <include>**/*.jsp</include>
461 <include>**/*.xml</include>
462 <include>**/*.js</include>
463 <include>**/*.ts</include>
464 <include>**/*.html</include>
465 <include>**/*.css</include>
466 <include>**/*.sql</include>
474 <root>src/main</root>
475 <root>src/test</root>
479 <exclude>**/app/vid/external/**/*</exclude>
480 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
481 <exclude>**/test/resources/WEB-INF/**/*</exclude>
482 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
494 <groupId>org.apache.maven.plugins</groupId>
495 <artifactId>maven-javadoc-plugin</artifactId>
496 <version>2.10.4</version>
498 <failOnError>false</failOnError>
499 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
501 <groupId>org.umlgraph</groupId>
502 <artifactId>umlgraph</artifactId>
503 <version>5.6</version>
505 <additionalparam>-views</additionalparam>
506 <useStandardDocletOptions>true</useStandardDocletOptions>
515 <groupId>com.opencsv</groupId>
516 <artifactId>opencsv</artifactId>
517 <version>4.6</version>
523 <groupId>io.joshworks.unirest</groupId>
524 <artifactId>unirest-java</artifactId>
525 <version>0.2.1</version>
528 <groupId>org.apache.httpcomponents</groupId>
529 <artifactId>httpclient</artifactId>
530 <version>4.5.9</version>
533 <groupId>org.apache.httpcomponents</groupId>
534 <artifactId>httpasyncclient</artifactId>
535 <version>4.1.4</version>
538 <groupId>org.apache.httpcomponents</groupId>
539 <artifactId>httpmime</artifactId>
540 <version>4.5.9</version>
543 <groupId>com.xebialabs.restito</groupId>
544 <artifactId>restito</artifactId>
545 <version>0.9.3</version>
549 <groupId>org.jeasy</groupId>
550 <artifactId>easy-random-core</artifactId>
551 <version>4.0.0</version>
557 <groupId>io.vavr</groupId>
558 <artifactId>vavr</artifactId>
559 <version>0.10.2</version>
562 <!-- SDK overlay war -->
564 <groupId>org.onap.portal.sdk</groupId>
565 <artifactId>epsdk-app-overlay</artifactId>
566 <version>${epsdk.overlay.version}</version>
570 <groupId>org.onap.portal.sdk</groupId>
571 <artifactId>epsdk-app-common</artifactId>
572 <version>${epsdk.version}</version>
577 <groupId>org.onap.portal.sdk</groupId>
578 <artifactId>epsdk-core</artifactId>
579 <version>${epsdk.version}</version>
582 <groupId>org.onap.portal.sdk</groupId>
583 <artifactId>epsdk-analytics</artifactId>
584 <version>${epsdk.version}</version>
587 <groupId>com.lowagie</groupId>
588 <artifactId>itext</artifactId>
593 <groupId>org.onap.portal.sdk</groupId>
594 <artifactId>epsdk-workflow</artifactId>
595 <version>${epsdk.version}</version>
598 <groupId>com.att.eelf</groupId>
599 <artifactId>eelf-core</artifactId>
600 <version>1.0.0</version>
603 <artifactId>powermock-api-mockito</artifactId>
604 <groupId>org.powermock</groupId>
609 <groupId>ch.qos.logback</groupId>
610 <artifactId>logback-classic</artifactId>
613 <groupId>org.onap.logging-analytics</groupId>
614 <artifactId>logging-filter-base</artifactId>
615 <version>${onap.logging.version}</version>
618 <groupId>org.onap.logging-analytics</groupId>
619 <artifactId>logging-filter-spring</artifactId>
620 <version>${onap.logging.version}</version>
624 <groupId>org.jetbrains.kotlin</groupId>
625 <artifactId>kotlin-stdlib-jdk8</artifactId>
626 <version>${kotlin.version}</version>
631 <groupId>com.fasterxml.jackson.core</groupId>
632 <artifactId>jackson-annotations</artifactId>
633 <version>${jackson.version}</version>
636 <groupId>com.fasterxml.jackson.core</groupId>
637 <artifactId>jackson-core</artifactId>
638 <version>${jackson.version}</version>
641 <groupId>com.fasterxml.jackson.core</groupId>
642 <artifactId>jackson-databind</artifactId>
643 <version>${jackson.databind.version}</version>
646 <groupId>com.fasterxml.jackson.module</groupId>
647 <artifactId>jackson-module-kotlin</artifactId>
648 <version>${jackson.version}</version>
650 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
652 <groupId>com.mchange</groupId>
653 <artifactId>c3p0</artifactId>
654 <version>0.9.5.4</version>
657 <groupId>io.searchbox</groupId>
658 <artifactId>jest</artifactId>
659 <version>6.3.1</version>
662 <groupId>commons-logging</groupId>
663 <artifactId>commons-logging</artifactId>
668 <groupId>javax.servlet</groupId>
669 <artifactId>javax.servlet-api</artifactId>
670 <version>4.0.1</version>
671 <scope>provided</scope>
674 <groupId>junit</groupId>
675 <artifactId>junit</artifactId>
676 <version>4.12</version>
680 <groupId>commons-io</groupId>
681 <artifactId>commons-io</artifactId>
682 <version>2.6</version>
683 <!--<scope>test</scope>-->
686 <groupId>com.google.code.bean-matchers</groupId>
687 <artifactId>bean-matchers</artifactId>
688 <version>0.11</version>
692 <groupId>org.json</groupId>
693 <artifactId>json</artifactId>
694 <version>20190722</version>
697 <groupId>org.quartz-scheduler</groupId>
698 <artifactId>quartz</artifactId>
699 <version>2.3.1</version>
701 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
703 <groupId>c3p0</groupId>
704 <artifactId>c3p0</artifactId>
708 <!-- bridge to implement commons-logging using slf4j -->
710 <groupId>org.slf4j</groupId>
711 <artifactId>jcl-over-slf4j</artifactId>
712 <version>1.7.27</version>
715 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
717 <groupId>org.springframework</groupId>
718 <artifactId>spring-core</artifactId>
719 <version>${springframework.version}</version>
722 <groupId>commons-logging</groupId>
723 <artifactId>commons-logging</artifactId>
728 <groupId>org.springframework</groupId>
729 <artifactId>spring-test</artifactId>
730 <version>${springframework.version}</version>
733 <groupId>org.springframework</groupId>
734 <artifactId>spring-tx</artifactId>
735 <version>${springframework.version}</version>
738 <groupId>org.springframework</groupId>
739 <artifactId>spring-web</artifactId>
740 <version>${springframework.version}</version>
743 <groupId>org.springframework</groupId>
744 <artifactId>spring-webmvc</artifactId>
745 <version>${springframework.version}</version>
748 <groupId>org.springframework</groupId>
749 <artifactId>spring-context-support</artifactId>
750 <version>${springframework.version}</version>
753 <groupId>org.springframework</groupId>
754 <artifactId>spring-orm</artifactId>
755 <version>${springframework.orm.version}</version>
758 <groupId>org.springframework</groupId>
759 <artifactId>spring-aop</artifactId>
760 <version>${springframework.version}</version>
764 <groupId>org.glassfish.jersey.core</groupId>
765 <artifactId>jersey-client</artifactId>
766 <version>${jersey.version}</version>
769 <groupId>org.glassfish.jersey.connectors</groupId>
770 <artifactId>jersey-jetty-connector</artifactId>
771 <version>${jersey.version}</version>
773 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
775 <groupId>org.glassfish.jersey.inject</groupId>
776 <artifactId>jersey-hk2</artifactId>
777 <version>${jersey.version}</version>
780 <groupId>com.fasterxml.jackson.jaxrs</groupId>
781 <artifactId>jackson-jaxrs-json-provider</artifactId>
782 <version>${jackson.version}</version>
785 <groupId>commons-beanutils</groupId>
786 <artifactId>commons-beanutils</artifactId>
789 <groupId>com.googlecode.json-simple</groupId>
790 <artifactId>json-simple</artifactId>
791 <version>1.1.1</version>
794 <groupId>org.seleniumhq.selenium</groupId>
795 <artifactId>selenium-java</artifactId>
796 <version>${selenium.version}</version>
800 <groupId>org.seleniumhq.selenium</groupId>
801 <artifactId>selenium-api</artifactId>
802 <version>${selenium.version}</version>
806 <groupId>org.testng</groupId>
807 <artifactId>testng</artifactId>
808 <version>6.14.3</version>
812 <groupId>org.mockito</groupId>
813 <artifactId>mockito-core</artifactId>
814 <version>2.23.0</version>
818 <groupId>org.seleniumhq.selenium</groupId>
819 <artifactId>selenium-firefox-driver</artifactId>
820 <version>${selenium.version}</version>
823 <groupId>xml-apis</groupId>
824 <artifactId>xml-apis</artifactId>
825 <version>2.0.2</version>
828 <groupId>org.yaml</groupId>
829 <artifactId>snakeyaml</artifactId>
830 <version>1.24</version>
833 <groupId>org.skyscreamer</groupId>
834 <artifactId>jsonassert</artifactId>
835 <version>1.5.0</version>
839 <groupId>org.onap.sdc.sdc-tosca</groupId>
840 <artifactId>sdc-tosca</artifactId>
841 <version>1.6.0</version>
842 <scope>compile</scope>
845 <groupId>net.javacrumbs.json-unit</groupId>
846 <artifactId>json-unit</artifactId>
847 <version>2.8.0</version>
851 <groupId>org.glassfish.jersey.media</groupId>
852 <artifactId>jersey-media-json-jackson</artifactId>
853 <version>${jersey.version}</version>
857 <groupId>org.apache.commons</groupId>
858 <artifactId>commons-lang3</artifactId>
859 <version>3.9</version>
862 <groupId>org.apache.commons</groupId>
863 <artifactId>commons-text</artifactId>
864 <version>1.7</version>
867 <groupId>org.apache.commons</groupId>
868 <artifactId>commons-proxy</artifactId>
869 <version>1.0</version>
872 <groupId>org.apache.commons</groupId>
873 <artifactId>commons-collections4</artifactId>
874 <version>4.4</version>
877 <groupId>commons-cli</groupId>
878 <artifactId>commons-cli</artifactId>
879 <version>1.4</version>
882 <groupId>org.hamcrest</groupId>
883 <artifactId>java-hamcrest</artifactId>
884 <version>2.0.0.0</version>
888 <groupId>org.togglz</groupId>
889 <artifactId>togglz-spring-core</artifactId>
890 <version>2.6.1.Final</version>
893 <groupId>com.h2database</groupId>
894 <artifactId>h2</artifactId>
895 <version>1.4.199</version>
899 <groupId>javax.xml.bind</groupId>
900 <artifactId>jaxb-api</artifactId>
901 <version>2.3.1</version>
905 <groupId>org.assertj</groupId>
906 <artifactId>assertj-core</artifactId>
907 <version>3.13.2</version>
911 <groupId>com.google.guava</groupId>
912 <artifactId>guava</artifactId>
913 <version>28.0-jre</version>
916 <groupId>io.springfox</groupId>
917 <artifactId>springfox-swagger2</artifactId>
918 <version>2.9.2</version>
921 <groupId>org.apache.maven</groupId>
922 <artifactId>maven-artifact</artifactId>
923 <version>3.6.1</version>