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.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.5.0</epsdk.version>
29 <springframework.version>5.2.0.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.10.1</jackson.version>
36 <jackson.databind.version>2.10.1</jackson.databind.version>
37 <onap.logging.version>1.6.1</onap.logging.version>
38 <jersey.version>2.29.1</jersey.version>
39 <surefire.version>2.22.1</surefire.version>
40 <selenium.version>3.141.59</selenium.version>
41 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
43 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
44 <sonar.coverage.jacoco.xmlReportPaths>
45 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
46 </sonar.coverage.jacoco.xmlReportPaths>
48 <!-- Skip assembling the zip by default -->
49 <skipassembly>true</skipassembly>
50 <nexusproxy>https://nexus.onap.org</nexusproxy>
51 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
52 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
53 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
54 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
56 <aspectj.version>1.8.9</aspectj.version>
57 <kotlin.version>1.3.60</kotlin.version>
58 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
60 <eirslett.version>1.6</eirslett.version>
61 <node.version>v8.9.4</node.version>
62 <npm.version>5.6.0</npm.version>
64 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
65 <release_version>${env.release_version}</release_version>
68 <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>
69 <frontendTestsPhase>generate-resources</frontendTestsPhase>
75 <id>no-frontend-tests</id>
77 <frontendTestsPhase>none</frontendTestsPhase>
83 <!-- this should be commented for local debugging -->
84 <!-- <deployenv>local</deployenv> -->
88 <id>ecomp-releases</id>
89 <name>VID Release Repository</name>
90 <url>${nexusproxy}/${releaseNexusPath}</url>
93 <id>ecomp-snapshots</id>
94 <name>VID Snapshot Repository</name>
95 <url>${nexusproxy}/${snapshotNexusPath}</url>
98 <id>ecomp-staging</id>
99 <name>VID Staging Repository</name>
100 <url>${nexusproxy}/${stagingNexusPath}</url>
103 <!-- Snapshots repository has ECOMP snapshot artifacts -->
104 <id>oss-snapshots</id>
105 <name>oss Central - Snapshots</name>
106 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
110 <distributionManagement>
112 <id>ecomp-releases</id>
113 <name>VID Release Repository</name>
114 <url>${nexusproxy}/${releaseNexusPath}</url>
117 <id>ecomp-snapshots</id>
118 <name>VID Snapshot Repository</name>
119 <url>${nexusproxy}/${snapshotNexusPath}</url>
120 </snapshotRepository>
121 <!-- added for javadoc -->
124 <url>dav:${nexusproxy}/${sitePath}</url>
126 </distributionManagement>
129 <finalName>vid-common</finalName>
134 <artifactId>kotlin-maven-plugin</artifactId>
135 <groupId>org.jetbrains.kotlin</groupId>
136 <version>${kotlin.version}</version>
140 <goals> <goal>compile</goal> </goals>
143 <sourceDir>${project.basedir}/src/main/java</sourceDir>
148 <id>test-compile</id>
149 <goals> <goal>test-compile</goal> </goals>
152 <sourceDir>${project.basedir}/src/test/java</sourceDir>
159 <groupId>org.sonarsource.scanner.maven</groupId>
160 <artifactId>sonar-maven-plugin</artifactId>
161 <version>3.6.0.1398</version>
164 <groupId>org.jacoco</groupId>
165 <artifactId>jacoco-maven-plugin</artifactId>
166 <version>0.8.4</version>
169 <id>default-prepare-agent</id>
171 <goal>prepare-agent</goal>
175 <id>default-report</id>
183 <groupId>org.apache.tomcat.maven</groupId>
184 <artifactId>tomcat6-maven-plugin</artifactId>
185 <version>2.2</version>
188 <groupId>org.apache.tomcat.maven</groupId>
189 <artifactId>tomcat7-maven-plugin</artifactId>
190 <version>2.2</version>
194 <groupId>com.github.eirslett</groupId>
195 <artifactId>frontend-maven-plugin</artifactId>
196 <version>${eirslett.version}</version>
199 <id>install node and npm</id>
201 <goal>install-node-and-npm</goal>
203 <phase>${frontendTestsPhase}</phase>
205 <npmVersion>${npm.version}</npmVersion>
206 <nodeVersion>${node.version}</nodeVersion>
210 <id>npm config list</id>
212 <arguments>config ls -l</arguments>
217 <phase>${frontendTestsPhase}</phase>
222 <arguments>install</arguments>
227 <phase>${frontendTestsPhase}</phase>
230 <id>npm run-script build</id>
232 <arguments>run-script build</arguments>
237 <phase>${frontendTestsPhase}</phase>
243 <groupId>org.apache.maven.plugins</groupId>
244 <artifactId>maven-compiler-plugin</artifactId>
245 <version>3.5.1</version>
252 <!-- Replacing default-compile as it is treated specially by maven -->
254 <id>default-compile</id>
257 <!-- Replacing default-testCompile as it is treated specially by maven -->
259 <id>default-testCompile</id>
263 <id>java-compile</id>
264 <phase>compile</phase>
265 <goals> <goal>compile</goal> </goals>
268 <id>java-test-compile</id>
269 <phase>test-compile</phase>
270 <goals> <goal>testCompile</goal> </goals>
277 <groupId>com.google.code.maven-replacer-plugin</groupId>
278 <artifactId>replacer</artifactId>
279 <version>1.5.3</version>
282 <phase>prepare-package</phase>
290 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
293 <token>BUILD_NUMBER</token>
294 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-surefire-plugin</artifactId>
303 <version>${surefire.version}</version>
306 <include>**/Test*.java</include>
307 <include>**/*Test.java</include>
308 <include>**/*TestCase.java</include>
311 <exclude>**/selenium/*.java</exclude>
312 <exclude>**/integrationTest/*.java</exclude>
314 <additionalClasspathElements>
315 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
316 </additionalClasspathElements>
317 <systemPropertyVariables>
318 <container.classpath>classpath:</container.classpath>
319 </systemPropertyVariables>
320 <useSystemClassLoader>false</useSystemClassLoader>
323 <!-- avoid running JUnit tests within surefire-testng provider -->
328 <name>usedefaultlisteners</name>
332 <threadCount>1</threadCount>
335 <!-- Running TestNG and JUnit Tests -->
336 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
338 <groupId>org.apache.maven.surefire</groupId>
339 <artifactId>surefire-junit47</artifactId>
340 <version>${surefire.version}</version>
343 <groupId>org.apache.maven.surefire</groupId>
344 <artifactId>surefire-testng</artifactId>
345 <version>${surefire.version}</version>
351 <artifactId>maven-assembly-plugin</artifactId>
353 <skipAssembly>${skipassembly}</skipAssembly>
355 <descriptor>${basedir}/distribution.xml</descriptor>
360 <id>make-assembly</id>
361 <phase>package</phase>
371 <groupId>org.apache.maven.plugins</groupId>
372 <artifactId>maven-war-plugin</artifactId>
373 <version>3.0.0</version>
375 <!-- Build a jar with all the Java classes -->
376 <attachClasses>true</attachClasses>
377 <!-- Do not put any jars in the war -->
378 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-site-plugin</artifactId>
384 <version>3.6</version>
387 <groupId>org.apache.maven.wagon</groupId>
388 <artifactId>wagon-webdav-jackrabbit</artifactId>
389 <version>2.10</version>
394 <groupId>pl.project13.maven</groupId>
395 <artifactId>git-commit-id-plugin</artifactId>
396 <version>2.2.4</version>
399 <id>get-the-git-infos</id>
401 <goal>revision</goal>
406 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
407 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
408 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
409 <generateGitPropertiesFile>true</generateGitPropertiesFile>
410 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
411 <includeOnlyProperties>
412 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
413 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
414 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
415 </includeOnlyProperties>
421 Replace phase "none" with "process-sources" to enable.
422 Set organizationName as desired.
423 Then run `mvn license:check-file-header`, or even `mvn
424 license:update-file-header`.
426 <groupId>org.codehaus.mojo</groupId>
427 <artifactId>license-maven-plugin</artifactId>
428 <version>1.17</version>
434 <goal>update-file-header</goal>
436 <!-- replace phase "none" with "process-sources" to enable -->
442 <canUpdateCopyright>false</canUpdateCopyright>
443 <canUpdateDescription>false</canUpdateDescription>
444 <licenseName>apache_v2</licenseName>
445 <processStartTag>============LICENSE_START=======================================================</processStartTag>
446 <processEndTag>============LICENSE_END=========================================================</processEndTag>
447 <sectionDelimiter>================================================================================</sectionDelimiter>
448 <projectName>VID</projectName>
449 <inceptionYear>2017</inceptionYear>
450 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
451 <canUpdateLicense>true</canUpdateLicense>
452 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
453 <emptyLineAfterHeader>true</emptyLineAfterHeader>
454 <verbose>false</verbose>
457 <include>**/*.java</include>
458 <include>**/*.kt</include>
459 <include>**/*.jsp</include>
460 <include>**/*.xml</include>
461 <include>**/*.js</include>
462 <include>**/*.ts</include>
463 <include>**/*.html</include>
464 <include>**/*.css</include>
465 <include>**/*.sql</include>
473 <root>src/main</root>
474 <root>src/test</root>
478 <exclude>**/app/vid/external/**/*</exclude>
479 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
480 <exclude>**/test/resources/WEB-INF/**/*</exclude>
481 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
493 <groupId>org.apache.maven.plugins</groupId>
494 <artifactId>maven-javadoc-plugin</artifactId>
495 <version>2.10.4</version>
497 <failOnError>false</failOnError>
498 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
500 <groupId>org.umlgraph</groupId>
501 <artifactId>umlgraph</artifactId>
502 <version>5.6</version>
504 <additionalparam>-views</additionalparam>
505 <useStandardDocletOptions>true</useStandardDocletOptions>
514 <groupId>com.opencsv</groupId>
515 <artifactId>opencsv</artifactId>
516 <version>4.6</version>
522 <groupId>io.joshworks.unirest</groupId>
523 <artifactId>unirest-java</artifactId>
524 <version>0.2.1</version>
527 <groupId>org.apache.httpcomponents</groupId>
528 <artifactId>httpclient</artifactId>
529 <version>4.5.9</version>
532 <groupId>org.apache.httpcomponents</groupId>
533 <artifactId>httpasyncclient</artifactId>
534 <version>4.1.4</version>
537 <groupId>org.apache.httpcomponents</groupId>
538 <artifactId>httpmime</artifactId>
539 <version>4.5.9</version>
542 <groupId>com.xebialabs.restito</groupId>
543 <artifactId>restito</artifactId>
544 <version>0.9.3</version>
548 <groupId>org.jeasy</groupId>
549 <artifactId>easy-random-core</artifactId>
550 <version>4.0.0</version>
556 <groupId>io.vavr</groupId>
557 <artifactId>vavr</artifactId>
558 <version>0.10.2</version>
561 <!-- SDK overlay war -->
563 <groupId>org.onap.portal.sdk</groupId>
564 <artifactId>epsdk-app-overlay</artifactId>
565 <version>${epsdk.version}</version>
569 <groupId>org.onap.portal.sdk</groupId>
570 <artifactId>epsdk-app-common</artifactId>
571 <version>${epsdk.version}</version>
576 <groupId>org.onap.portal.sdk</groupId>
577 <artifactId>epsdk-core</artifactId>
578 <version>${epsdk.version}</version>
581 <groupId>org.onap.portal.sdk</groupId>
582 <artifactId>epsdk-analytics</artifactId>
583 <version>${epsdk.version}</version>
586 <groupId>com.lowagie</groupId>
587 <artifactId>itext</artifactId>
592 <groupId>org.onap.portal.sdk</groupId>
593 <artifactId>epsdk-workflow</artifactId>
594 <version>${epsdk.version}</version>
597 <groupId>com.att.eelf</groupId>
598 <artifactId>eelf-core</artifactId>
599 <version>1.0.0</version>
602 <artifactId>powermock-api-mockito</artifactId>
603 <groupId>org.powermock</groupId>
608 <groupId>ch.qos.logback</groupId>
609 <artifactId>logback-classic</artifactId>
612 <groupId>org.onap.logging-analytics</groupId>
613 <artifactId>logging-filter-base</artifactId>
614 <version>${onap.logging.version}</version>
617 <groupId>org.onap.logging-analytics</groupId>
618 <artifactId>logging-filter-spring</artifactId>
619 <version>${onap.logging.version}</version>
623 <groupId>org.jetbrains.kotlin</groupId>
624 <artifactId>kotlin-stdlib-jdk8</artifactId>
625 <version>${kotlin.version}</version>
630 <groupId>com.fasterxml.jackson.core</groupId>
631 <artifactId>jackson-annotations</artifactId>
632 <version>${jackson.version}</version>
635 <groupId>com.fasterxml.jackson.core</groupId>
636 <artifactId>jackson-core</artifactId>
637 <version>${jackson.version}</version>
640 <groupId>com.fasterxml.jackson.core</groupId>
641 <artifactId>jackson-databind</artifactId>
642 <version>${jackson.databind.version}</version>
645 <groupId>com.fasterxml.jackson.module</groupId>
646 <artifactId>jackson-module-kotlin</artifactId>
647 <version>${jackson.version}</version>
649 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
651 <groupId>com.mchange</groupId>
652 <artifactId>c3p0</artifactId>
653 <version>0.9.5.4</version>
656 <groupId>io.searchbox</groupId>
657 <artifactId>jest</artifactId>
658 <version>6.3.1</version>
661 <groupId>commons-logging</groupId>
662 <artifactId>commons-logging</artifactId>
667 <groupId>javax.servlet</groupId>
668 <artifactId>javax.servlet-api</artifactId>
669 <version>4.0.1</version>
670 <scope>provided</scope>
673 <groupId>junit</groupId>
674 <artifactId>junit</artifactId>
675 <version>4.12</version>
679 <groupId>commons-io</groupId>
680 <artifactId>commons-io</artifactId>
681 <version>2.6</version>
682 <!--<scope>test</scope>-->
685 <groupId>com.google.code.bean-matchers</groupId>
686 <artifactId>bean-matchers</artifactId>
687 <version>0.11</version>
691 <groupId>org.json</groupId>
692 <artifactId>json</artifactId>
693 <version>20190722</version>
696 <groupId>org.quartz-scheduler</groupId>
697 <artifactId>quartz</artifactId>
698 <version>2.3.1</version>
700 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
702 <groupId>c3p0</groupId>
703 <artifactId>c3p0</artifactId>
707 <!-- bridge to implement commons-logging using slf4j -->
709 <groupId>org.slf4j</groupId>
710 <artifactId>jcl-over-slf4j</artifactId>
711 <version>1.7.27</version>
714 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
716 <groupId>org.springframework</groupId>
717 <artifactId>spring-core</artifactId>
718 <version>${springframework.version}</version>
721 <groupId>commons-logging</groupId>
722 <artifactId>commons-logging</artifactId>
727 <groupId>org.springframework</groupId>
728 <artifactId>spring-test</artifactId>
729 <version>${springframework.version}</version>
732 <groupId>org.springframework</groupId>
733 <artifactId>spring-tx</artifactId>
734 <version>${springframework.version}</version>
737 <groupId>org.springframework</groupId>
738 <artifactId>spring-web</artifactId>
739 <version>${springframework.version}</version>
742 <groupId>org.springframework</groupId>
743 <artifactId>spring-webmvc</artifactId>
744 <version>${springframework.version}</version>
747 <groupId>org.springframework</groupId>
748 <artifactId>spring-context-support</artifactId>
749 <version>${springframework.version}</version>
752 <groupId>org.springframework</groupId>
753 <artifactId>spring-orm</artifactId>
754 <version>${springframework.orm.version}</version>
757 <groupId>org.springframework</groupId>
758 <artifactId>spring-aop</artifactId>
759 <version>${springframework.version}</version>
763 <groupId>org.glassfish.jersey.core</groupId>
764 <artifactId>jersey-client</artifactId>
765 <version>${jersey.version}</version>
768 <groupId>org.glassfish.jersey.connectors</groupId>
769 <artifactId>jersey-jetty-connector</artifactId>
770 <version>${jersey.version}</version>
772 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
774 <groupId>org.glassfish.jersey.inject</groupId>
775 <artifactId>jersey-hk2</artifactId>
776 <version>${jersey.version}</version>
779 <groupId>com.fasterxml.jackson.jaxrs</groupId>
780 <artifactId>jackson-jaxrs-json-provider</artifactId>
781 <version>${jackson.version}</version>
784 <groupId>commons-beanutils</groupId>
785 <artifactId>commons-beanutils</artifactId>
788 <groupId>com.googlecode.json-simple</groupId>
789 <artifactId>json-simple</artifactId>
790 <version>1.1.1</version>
793 <groupId>org.seleniumhq.selenium</groupId>
794 <artifactId>selenium-java</artifactId>
795 <version>${selenium.version}</version>
799 <groupId>org.seleniumhq.selenium</groupId>
800 <artifactId>selenium-api</artifactId>
801 <version>${selenium.version}</version>
805 <groupId>org.testng</groupId>
806 <artifactId>testng</artifactId>
807 <version>6.14.3</version>
811 <groupId>org.mockito</groupId>
812 <artifactId>mockito-core</artifactId>
813 <version>2.23.0</version>
817 <groupId>org.seleniumhq.selenium</groupId>
818 <artifactId>selenium-firefox-driver</artifactId>
819 <version>${selenium.version}</version>
822 <groupId>xml-apis</groupId>
823 <artifactId>xml-apis</artifactId>
824 <version>2.0.2</version>
827 <groupId>org.yaml</groupId>
828 <artifactId>snakeyaml</artifactId>
829 <version>1.24</version>
832 <groupId>org.skyscreamer</groupId>
833 <artifactId>jsonassert</artifactId>
834 <version>1.5.0</version>
838 <groupId>org.onap.sdc.sdc-tosca</groupId>
839 <artifactId>sdc-tosca</artifactId>
840 <version>1.6.0</version>
841 <scope>compile</scope>
844 <groupId>net.javacrumbs.json-unit</groupId>
845 <artifactId>json-unit</artifactId>
846 <version>2.8.0</version>
850 <groupId>org.glassfish.jersey.media</groupId>
851 <artifactId>jersey-media-json-jackson</artifactId>
852 <version>${jersey.version}</version>
856 <groupId>org.apache.commons</groupId>
857 <artifactId>commons-lang3</artifactId>
858 <version>3.9</version>
861 <groupId>org.apache.commons</groupId>
862 <artifactId>commons-text</artifactId>
863 <version>1.7</version>
866 <groupId>org.apache.commons</groupId>
867 <artifactId>commons-proxy</artifactId>
868 <version>1.0</version>
871 <groupId>org.apache.commons</groupId>
872 <artifactId>commons-collections4</artifactId>
873 <version>4.4</version>
876 <groupId>org.hamcrest</groupId>
877 <artifactId>java-hamcrest</artifactId>
878 <version>2.0.0.0</version>
882 <groupId>org.togglz</groupId>
883 <artifactId>togglz-spring-core</artifactId>
884 <version>2.6.1.Final</version>
887 <groupId>com.h2database</groupId>
888 <artifactId>h2</artifactId>
889 <version>1.4.199</version>
893 <groupId>javax.xml.bind</groupId>
894 <artifactId>jaxb-api</artifactId>
895 <version>2.3.1</version>
899 <groupId>org.assertj</groupId>
900 <artifactId>assertj-core</artifactId>
901 <version>3.13.2</version>
905 <groupId>com.google.guava</groupId>
906 <artifactId>guava</artifactId>
907 <version>28.0-jre</version>
910 <groupId>io.springfox</groupId>
911 <artifactId>springfox-swagger2</artifactId>
912 <version>2.9.2</version>
915 <groupId>org.apache.maven</groupId>
916 <artifactId>maven-artifact</artifactId>
917 <version>3.6.1</version>