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.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.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.1.9.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.9</jackson.version>
36 <jackson.databind.version>2.9.9.3</jackson.databind.version>
37 <jersey.version>2.29</jersey.version>
38 <surefire.version>2.22.1</surefire.version>
39 <selenium.version>3.141.59</selenium.version>
40 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
42 <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
43 <sonar.coverage.jacoco.xmlReportPaths>
44 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
45 </sonar.coverage.jacoco.xmlReportPaths>
47 <!-- Skip assembling the zip by default -->
48 <skipassembly>true</skipassembly>
49 <nexusproxy>https://nexus.onap.org</nexusproxy>
50 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
51 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
52 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
53 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
55 <aspectj.version>1.8.9</aspectj.version>
56 <kotlin.version>1.3.30</kotlin.version>
57 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
59 <eirslett.version>1.6</eirslett.version>
60 <node.version>v8.9.4</node.version>
61 <npm.version>5.6.0</npm.version>
63 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
64 <release_version>${env.release_version}</release_version>
67 <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>
72 <!-- this should be commented for local debugging -->
73 <!-- <deployenv>local</deployenv> -->
77 <id>ecomp-releases</id>
78 <name>VID Release Repository</name>
79 <url>${nexusproxy}/${releaseNexusPath}</url>
82 <id>ecomp-snapshots</id>
83 <name>VID Snapshot Repository</name>
84 <url>${nexusproxy}/${snapshotNexusPath}</url>
87 <id>ecomp-staging</id>
88 <name>VID Staging Repository</name>
89 <url>${nexusproxy}/${stagingNexusPath}</url>
92 <!-- Snapshots repository has ECOMP snapshot artifacts -->
93 <id>oss-snapshots</id>
94 <name>oss Central - Snapshots</name>
95 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
99 <distributionManagement>
101 <id>ecomp-releases</id>
102 <name>VID Release Repository</name>
103 <url>${nexusproxy}/${releaseNexusPath}</url>
106 <id>ecomp-snapshots</id>
107 <name>VID Snapshot Repository</name>
108 <url>${nexusproxy}/${snapshotNexusPath}</url>
109 </snapshotRepository>
110 <!-- added for javadoc -->
113 <url>dav:${nexusproxy}/${sitePath}</url>
115 </distributionManagement>
118 <finalName>vid-common</finalName>
123 <artifactId>kotlin-maven-plugin</artifactId>
124 <groupId>org.jetbrains.kotlin</groupId>
125 <version>${kotlin.version}</version>
129 <goals> <goal>compile</goal> </goals>
132 <sourceDir>${project.basedir}/src/main/java</sourceDir>
137 <id>test-compile</id>
138 <goals> <goal>test-compile</goal> </goals>
141 <sourceDir>${project.basedir}/src/test/java</sourceDir>
148 <groupId>org.sonarsource.scanner.maven</groupId>
149 <artifactId>sonar-maven-plugin</artifactId>
150 <version>3.6.0.1398</version>
153 <groupId>org.jacoco</groupId>
154 <artifactId>jacoco-maven-plugin</artifactId>
155 <version>0.8.4</version>
158 <id>default-prepare-agent</id>
160 <goal>prepare-agent</goal>
164 <id>default-report</id>
172 <groupId>org.apache.tomcat.maven</groupId>
173 <artifactId>tomcat6-maven-plugin</artifactId>
174 <version>2.2</version>
177 <groupId>org.apache.tomcat.maven</groupId>
178 <artifactId>tomcat7-maven-plugin</artifactId>
179 <version>2.2</version>
183 <groupId>com.github.eirslett</groupId>
184 <artifactId>frontend-maven-plugin</artifactId>
185 <version>${eirslett.version}</version>
188 <id>install node and npm</id>
190 <goal>install-node-and-npm</goal>
192 <phase>generate-resources</phase>
194 <npmVersion>${npm.version}</npmVersion>
195 <nodeVersion>${node.version}</nodeVersion>
199 <id>npm config list</id>
201 <arguments>config ls -l</arguments>
206 <phase>generate-resources</phase>
211 <arguments>install</arguments>
216 <phase>generate-resources</phase>
219 <id>npm run-script build</id>
221 <arguments>run-script build</arguments>
226 <phase>generate-resources</phase>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-compiler-plugin</artifactId>
234 <version>3.5.1</version>
241 <!-- Replacing default-compile as it is treated specially by maven -->
243 <id>default-compile</id>
246 <!-- Replacing default-testCompile as it is treated specially by maven -->
248 <id>default-testCompile</id>
252 <id>java-compile</id>
253 <phase>compile</phase>
254 <goals> <goal>compile</goal> </goals>
257 <id>java-test-compile</id>
258 <phase>test-compile</phase>
259 <goals> <goal>testCompile</goal> </goals>
266 <groupId>com.google.code.maven-replacer-plugin</groupId>
267 <artifactId>replacer</artifactId>
268 <version>1.5.3</version>
271 <phase>prepare-package</phase>
279 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
282 <token>BUILD_NUMBER</token>
283 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-surefire-plugin</artifactId>
292 <version>${surefire.version}</version>
295 <include>**/Test*.java</include>
296 <include>**/*Test.java</include>
297 <include>**/*TestCase.java</include>
300 <exclude>**/selenium/*.java</exclude>
301 <exclude>**/integrationTest/*.java</exclude>
303 <additionalClasspathElements>
304 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
305 </additionalClasspathElements>
306 <systemPropertyVariables>
307 <container.classpath>classpath:</container.classpath>
308 </systemPropertyVariables>
309 <useSystemClassLoader>false</useSystemClassLoader>
312 <!-- avoid running JUnit tests within surefire-testng provider -->
317 <name>usedefaultlisteners</name>
321 <threadCount>1</threadCount>
324 <!-- Running TestNG and JUnit Tests -->
325 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
327 <groupId>org.apache.maven.surefire</groupId>
328 <artifactId>surefire-junit47</artifactId>
329 <version>${surefire.version}</version>
332 <groupId>org.apache.maven.surefire</groupId>
333 <artifactId>surefire-testng</artifactId>
334 <version>${surefire.version}</version>
340 <artifactId>maven-assembly-plugin</artifactId>
342 <skipAssembly>${skipassembly}</skipAssembly>
344 <descriptor>${basedir}/distribution.xml</descriptor>
349 <id>make-assembly</id>
350 <phase>package</phase>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-war-plugin</artifactId>
362 <version>3.0.0</version>
364 <!-- Build a jar with all the Java classes -->
365 <attachClasses>true</attachClasses>
366 <!-- Do not put any jars in the war -->
367 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
371 <groupId>org.apache.maven.plugins</groupId>
372 <artifactId>maven-site-plugin</artifactId>
373 <version>3.6</version>
376 <groupId>org.apache.maven.wagon</groupId>
377 <artifactId>wagon-webdav-jackrabbit</artifactId>
378 <version>2.10</version>
383 <groupId>pl.project13.maven</groupId>
384 <artifactId>git-commit-id-plugin</artifactId>
385 <version>2.2.4</version>
388 <id>get-the-git-infos</id>
390 <goal>revision</goal>
395 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
396 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
397 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
398 <generateGitPropertiesFile>true</generateGitPropertiesFile>
399 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
400 <includeOnlyProperties>
401 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
402 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
403 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
404 </includeOnlyProperties>
410 Replace phase "none" with "process-sources" to enable.
411 Set organizationName as desired.
412 Then run `mvn license:check-file-header`, or even `mvn
413 license:update-file-header`.
415 <groupId>org.codehaus.mojo</groupId>
416 <artifactId>license-maven-plugin</artifactId>
417 <version>1.17</version>
423 <goal>update-file-header</goal>
425 <!-- replace phase "none" with "process-sources" to enable -->
431 <canUpdateCopyright>false</canUpdateCopyright>
432 <canUpdateDescription>false</canUpdateDescription>
433 <licenseName>apache_v2</licenseName>
434 <processStartTag>============LICENSE_START=======================================================</processStartTag>
435 <processEndTag>============LICENSE_END=========================================================</processEndTag>
436 <sectionDelimiter>================================================================================</sectionDelimiter>
437 <projectName>VID</projectName>
438 <inceptionYear>2017</inceptionYear>
439 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
440 <canUpdateLicense>true</canUpdateLicense>
441 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
442 <emptyLineAfterHeader>true</emptyLineAfterHeader>
443 <verbose>false</verbose>
446 <include>**/*.java</include>
447 <include>**/*.kt</include>
448 <include>**/*.jsp</include>
449 <include>**/*.xml</include>
450 <include>**/*.js</include>
451 <include>**/*.ts</include>
452 <include>**/*.html</include>
453 <include>**/*.css</include>
454 <include>**/*.sql</include>
462 <root>src/main</root>
463 <root>src/test</root>
467 <exclude>**/app/vid/external/**/*</exclude>
468 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
469 <exclude>**/test/resources/WEB-INF/**/*</exclude>
470 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
482 <groupId>org.apache.maven.plugins</groupId>
483 <artifactId>maven-javadoc-plugin</artifactId>
484 <version>2.10.4</version>
486 <failOnError>false</failOnError>
487 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
489 <groupId>org.umlgraph</groupId>
490 <artifactId>umlgraph</artifactId>
491 <version>5.6</version>
493 <additionalparam>-views</additionalparam>
494 <useStandardDocletOptions>true</useStandardDocletOptions>
503 <groupId>com.opencsv</groupId>
504 <artifactId>opencsv</artifactId>
505 <version>4.6</version>
511 <groupId>io.joshworks.unirest</groupId>
512 <artifactId>unirest-java</artifactId>
513 <version>0.2.1</version>
516 <groupId>org.apache.httpcomponents</groupId>
517 <artifactId>httpclient</artifactId>
518 <version>4.5.9</version>
521 <groupId>org.apache.httpcomponents</groupId>
522 <artifactId>httpasyncclient</artifactId>
523 <version>4.1.4</version>
526 <groupId>org.apache.httpcomponents</groupId>
527 <artifactId>httpmime</artifactId>
528 <version>4.5.9</version>
531 <groupId>com.xebialabs.restito</groupId>
532 <artifactId>restito</artifactId>
533 <version>0.9.3</version>
537 <groupId>org.jeasy</groupId>
538 <artifactId>easy-random-core</artifactId>
539 <version>4.0.0</version>
545 <groupId>io.vavr</groupId>
546 <artifactId>vavr</artifactId>
547 <version>0.10.2</version>
550 <!-- SDK overlay war -->
552 <groupId>org.onap.portal.sdk</groupId>
553 <artifactId>epsdk-app-overlay</artifactId>
554 <version>${epsdk.version}</version>
558 <groupId>org.onap.portal.sdk</groupId>
559 <artifactId>epsdk-app-common</artifactId>
560 <version>${epsdk.version}</version>
565 <groupId>org.onap.portal.sdk</groupId>
566 <artifactId>epsdk-core</artifactId>
567 <version>${epsdk.version}</version>
570 <groupId>org.onap.portal.sdk</groupId>
571 <artifactId>epsdk-analytics</artifactId>
572 <version>${epsdk.version}</version>
575 <groupId>com.lowagie</groupId>
576 <artifactId>itext</artifactId>
581 <groupId>org.onap.portal.sdk</groupId>
582 <artifactId>epsdk-workflow</artifactId>
583 <version>${epsdk.version}</version>
586 <groupId>com.att.eelf</groupId>
587 <artifactId>eelf-core</artifactId>
588 <version>1.0.0</version>
591 <artifactId>powermock-api-mockito</artifactId>
592 <groupId>org.powermock</groupId>
597 <groupId>ch.qos.logback</groupId>
598 <artifactId>logback-classic</artifactId>
602 <groupId>org.jetbrains.kotlin</groupId>
603 <artifactId>kotlin-stdlib-jdk8</artifactId>
604 <version>${kotlin.version}</version>
609 <groupId>com.fasterxml.jackson.core</groupId>
610 <artifactId>jackson-annotations</artifactId>
611 <version>${jackson.version}</version>
614 <groupId>com.fasterxml.jackson.core</groupId>
615 <artifactId>jackson-core</artifactId>
616 <version>${jackson.version}</version>
619 <groupId>com.fasterxml.jackson.core</groupId>
620 <artifactId>jackson-databind</artifactId>
621 <version>${jackson.databind.version}</version>
624 <groupId>com.fasterxml.jackson.module</groupId>
625 <artifactId>jackson-module-kotlin</artifactId>
626 <version>${jackson.version}</version>
628 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
630 <groupId>com.mchange</groupId>
631 <artifactId>c3p0</artifactId>
632 <version>0.9.5.4</version>
635 <groupId>io.searchbox</groupId>
636 <artifactId>jest</artifactId>
637 <version>6.3.1</version>
640 <groupId>commons-logging</groupId>
641 <artifactId>commons-logging</artifactId>
646 <groupId>javax.servlet</groupId>
647 <artifactId>javax.servlet-api</artifactId>
648 <version>4.0.1</version>
649 <scope>provided</scope>
652 <groupId>junit</groupId>
653 <artifactId>junit</artifactId>
654 <version>4.12</version>
658 <groupId>commons-io</groupId>
659 <artifactId>commons-io</artifactId>
660 <version>2.6</version>
661 <!--<scope>test</scope>-->
664 <groupId>com.google.code.bean-matchers</groupId>
665 <artifactId>bean-matchers</artifactId>
666 <version>0.11</version>
670 <groupId>org.json</groupId>
671 <artifactId>json</artifactId>
672 <version>20190722</version>
675 <groupId>org.quartz-scheduler</groupId>
676 <artifactId>quartz</artifactId>
677 <version>2.3.1</version>
679 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
681 <groupId>c3p0</groupId>
682 <artifactId>c3p0</artifactId>
686 <!-- bridge to implement commons-logging using slf4j -->
688 <groupId>org.slf4j</groupId>
689 <artifactId>jcl-over-slf4j</artifactId>
690 <version>1.7.27</version>
693 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
695 <groupId>org.springframework</groupId>
696 <artifactId>spring-core</artifactId>
697 <version>${springframework.version}</version>
700 <groupId>commons-logging</groupId>
701 <artifactId>commons-logging</artifactId>
706 <groupId>org.springframework</groupId>
707 <artifactId>spring-test</artifactId>
708 <version>${springframework.version}</version>
711 <groupId>org.springframework</groupId>
712 <artifactId>spring-tx</artifactId>
713 <version>${springframework.version}</version>
716 <groupId>org.springframework</groupId>
717 <artifactId>spring-web</artifactId>
718 <version>${springframework.version}</version>
721 <groupId>org.springframework</groupId>
722 <artifactId>spring-webmvc</artifactId>
723 <version>${springframework.version}</version>
726 <groupId>org.springframework</groupId>
727 <artifactId>spring-context-support</artifactId>
728 <version>${springframework.version}</version>
731 <groupId>org.springframework</groupId>
732 <artifactId>spring-orm</artifactId>
733 <version>${springframework.orm.version}</version>
736 <groupId>org.springframework</groupId>
737 <artifactId>spring-aop</artifactId>
738 <version>${springframework.version}</version>
742 <groupId>org.glassfish.jersey.core</groupId>
743 <artifactId>jersey-client</artifactId>
744 <version>${jersey.version}</version>
747 <groupId>org.glassfish.jersey.connectors</groupId>
748 <artifactId>jersey-jetty-connector</artifactId>
749 <version>${jersey.version}</version>
751 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
753 <groupId>org.glassfish.jersey.inject</groupId>
754 <artifactId>jersey-hk2</artifactId>
755 <version>${jersey.version}</version>
758 <groupId>com.fasterxml.jackson.jaxrs</groupId>
759 <artifactId>jackson-jaxrs-json-provider</artifactId>
760 <version>${jackson.version}</version>
763 <groupId>commons-beanutils</groupId>
764 <artifactId>commons-beanutils</artifactId>
767 <groupId>com.googlecode.json-simple</groupId>
768 <artifactId>json-simple</artifactId>
769 <version>1.1.1</version>
772 <groupId>org.seleniumhq.selenium</groupId>
773 <artifactId>selenium-java</artifactId>
774 <version>${selenium.version}</version>
778 <groupId>org.seleniumhq.selenium</groupId>
779 <artifactId>selenium-api</artifactId>
780 <version>${selenium.version}</version>
784 <groupId>org.testng</groupId>
785 <artifactId>testng</artifactId>
786 <version>6.14.3</version>
790 <groupId>org.mockito</groupId>
791 <artifactId>mockito-core</artifactId>
792 <version>2.23.0</version>
796 <groupId>org.seleniumhq.selenium</groupId>
797 <artifactId>selenium-firefox-driver</artifactId>
798 <version>${selenium.version}</version>
801 <groupId>xml-apis</groupId>
802 <artifactId>xml-apis</artifactId>
803 <version>2.0.2</version>
806 <groupId>org.yaml</groupId>
807 <artifactId>snakeyaml</artifactId>
808 <version>1.24</version>
811 <groupId>org.skyscreamer</groupId>
812 <artifactId>jsonassert</artifactId>
813 <version>1.5.0</version>
817 <groupId>org.onap.sdc.sdc-tosca</groupId>
818 <artifactId>sdc-tosca</artifactId>
819 <version>1.6.0</version>
820 <scope>compile</scope>
823 <groupId>net.javacrumbs.json-unit</groupId>
824 <artifactId>json-unit</artifactId>
825 <version>2.8.0</version>
829 <groupId>org.glassfish.jersey.media</groupId>
830 <artifactId>jersey-media-json-jackson</artifactId>
831 <version>${jersey.version}</version>
835 <groupId>org.apache.commons</groupId>
836 <artifactId>commons-lang3</artifactId>
837 <version>3.9</version>
840 <groupId>org.apache.commons</groupId>
841 <artifactId>commons-text</artifactId>
842 <version>1.7</version>
845 <groupId>org.apache.commons</groupId>
846 <artifactId>commons-proxy</artifactId>
847 <version>1.0</version>
850 <groupId>org.apache.commons</groupId>
851 <artifactId>commons-collections4</artifactId>
852 <version>4.4</version>
855 <groupId>org.hamcrest</groupId>
856 <artifactId>java-hamcrest</artifactId>
857 <version>2.0.0.0</version>
861 <groupId>org.togglz</groupId>
862 <artifactId>togglz-spring-core</artifactId>
863 <version>2.6.1.Final</version>
866 <groupId>com.h2database</groupId>
867 <artifactId>h2</artifactId>
868 <version>1.4.199</version>
872 <groupId>javax.xml.bind</groupId>
873 <artifactId>jaxb-api</artifactId>
874 <version>2.3.1</version>
878 <groupId>org.assertj</groupId>
879 <artifactId>assertj-core</artifactId>
880 <version>3.13.2</version>
884 <groupId>com.google.guava</groupId>
885 <artifactId>guava</artifactId>
886 <version>28.0-jre</version>
889 <groupId>io.springfox</groupId>
890 <artifactId>springfox-swagger2</artifactId>
891 <version>2.9.2</version>
894 <groupId>org.apache.maven</groupId>
895 <artifactId>maven-artifact</artifactId>
896 <version>3.6.1</version>