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.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 <jersey.version>2.29</jersey.version>
37 <surefire.version>2.22.1</surefire.version>
38 <selenium.version>3.141.59</selenium.version>
39 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
41 <!-- Skip assembling the zip by default -->
42 <skipassembly>true</skipassembly>
43 <nexusproxy>https://nexus.onap.org</nexusproxy>
44 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
45 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
46 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
47 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
49 <aspectj.version>1.8.9</aspectj.version>
50 <kotlin.version>1.3.30</kotlin.version>
51 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
53 <eirslett.version>1.6</eirslett.version>
54 <node.version>v8.9.4</node.version>
55 <npm.version>5.6.0</npm.version>
57 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
58 <release_version>${env.release_version}</release_version>
61 <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>
66 <!-- this should be commented for local debugging -->
67 <!-- <deployenv>local</deployenv> -->
71 <id>ecomp-releases</id>
72 <name>VID Release Repository</name>
73 <url>${nexusproxy}/${releaseNexusPath}</url>
76 <id>ecomp-snapshots</id>
77 <name>VID Snapshot Repository</name>
78 <url>${nexusproxy}/${snapshotNexusPath}</url>
81 <id>ecomp-staging</id>
82 <name>VID Staging Repository</name>
83 <url>${nexusproxy}/${stagingNexusPath}</url>
86 <!-- Snapshots repository has ECOMP snapshot artifacts -->
87 <id>oss-snapshots</id>
88 <name>oss Central - Snapshots</name>
89 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
93 <distributionManagement>
95 <id>ecomp-releases</id>
96 <name>VID Release Repository</name>
97 <url>${nexusproxy}/${releaseNexusPath}</url>
100 <id>ecomp-snapshots</id>
101 <name>VID Snapshot Repository</name>
102 <url>${nexusproxy}/${snapshotNexusPath}</url>
103 </snapshotRepository>
104 <!-- added for javadoc -->
107 <url>dav:${nexusproxy}/${sitePath}</url>
109 </distributionManagement>
112 <finalName>vid-common</finalName>
117 <artifactId>kotlin-maven-plugin</artifactId>
118 <groupId>org.jetbrains.kotlin</groupId>
119 <version>${kotlin.version}</version>
123 <goals> <goal>compile</goal> </goals>
126 <sourceDir>${project.basedir}/src/main/java</sourceDir>
131 <id>test-compile</id>
132 <goals> <goal>test-compile</goal> </goals>
135 <sourceDir>${project.basedir}/src/test/java</sourceDir>
142 <groupId>org.sonarsource.scanner.maven</groupId>
143 <artifactId>sonar-maven-plugin</artifactId>
144 <version>3.6.0.1398</version>
147 <groupId>org.jacoco</groupId>
148 <artifactId>jacoco-maven-plugin</artifactId>
149 <version>0.8.4</version>
152 <id>default-prepare-agent</id>
154 <goal>prepare-agent</goal>
158 <id>default-report</id>
166 <groupId>org.apache.tomcat.maven</groupId>
167 <artifactId>tomcat6-maven-plugin</artifactId>
168 <version>2.2</version>
171 <groupId>org.apache.tomcat.maven</groupId>
172 <artifactId>tomcat7-maven-plugin</artifactId>
173 <version>2.2</version>
177 <groupId>com.github.eirslett</groupId>
178 <artifactId>frontend-maven-plugin</artifactId>
179 <version>${eirslett.version}</version>
182 <id>install node and npm</id>
184 <goal>install-node-and-npm</goal>
186 <phase>generate-resources</phase>
188 <npmVersion>${npm.version}</npmVersion>
189 <nodeVersion>${node.version}</nodeVersion>
193 <id>npm config list</id>
195 <arguments>config ls -l</arguments>
200 <phase>generate-resources</phase>
205 <arguments>install</arguments>
210 <phase>generate-resources</phase>
213 <id>npm run-script build</id>
215 <arguments>run-script build</arguments>
220 <phase>generate-resources</phase>
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-compiler-plugin</artifactId>
228 <version>3.5.1</version>
235 <!-- Replacing default-compile as it is treated specially by maven -->
237 <id>default-compile</id>
240 <!-- Replacing default-testCompile as it is treated specially by maven -->
242 <id>default-testCompile</id>
246 <id>java-compile</id>
247 <phase>compile</phase>
248 <goals> <goal>compile</goal> </goals>
251 <id>java-test-compile</id>
252 <phase>test-compile</phase>
253 <goals> <goal>testCompile</goal> </goals>
260 <groupId>com.google.code.maven-replacer-plugin</groupId>
261 <artifactId>replacer</artifactId>
262 <version>1.5.3</version>
265 <phase>prepare-package</phase>
273 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
276 <token>BUILD_NUMBER</token>
277 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-surefire-plugin</artifactId>
286 <version>${surefire.version}</version>
289 <include>**/Test*.java</include>
290 <include>**/*Test.java</include>
291 <include>**/*TestCase.java</include>
294 <exclude>**/selenium/*.java</exclude>
295 <exclude>**/integrationTest/*.java</exclude>
297 <additionalClasspathElements>
298 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
299 </additionalClasspathElements>
300 <systemPropertyVariables>
301 <container.classpath>classpath:</container.classpath>
302 </systemPropertyVariables>
303 <useSystemClassLoader>false</useSystemClassLoader>
306 <!-- avoid running JUnit tests within surefire-testng provider -->
311 <name>usedefaultlisteners</name>
315 <threadCount>1</threadCount>
318 <!-- Running TestNG and JUnit Tests -->
319 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
321 <groupId>org.apache.maven.surefire</groupId>
322 <artifactId>surefire-junit47</artifactId>
323 <version>${surefire.version}</version>
326 <groupId>org.apache.maven.surefire</groupId>
327 <artifactId>surefire-testng</artifactId>
328 <version>${surefire.version}</version>
334 <artifactId>maven-assembly-plugin</artifactId>
336 <skipAssembly>${skipassembly}</skipAssembly>
338 <descriptor>${basedir}/distribution.xml</descriptor>
343 <id>make-assembly</id>
344 <phase>package</phase>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-war-plugin</artifactId>
356 <version>3.0.0</version>
358 <!-- Build a jar with all the Java classes -->
359 <attachClasses>true</attachClasses>
360 <!-- Do not put any jars in the war -->
361 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-site-plugin</artifactId>
367 <version>3.6</version>
370 <groupId>org.apache.maven.wagon</groupId>
371 <artifactId>wagon-webdav-jackrabbit</artifactId>
372 <version>2.10</version>
377 <groupId>pl.project13.maven</groupId>
378 <artifactId>git-commit-id-plugin</artifactId>
379 <version>2.2.4</version>
382 <id>get-the-git-infos</id>
384 <goal>revision</goal>
389 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
390 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
391 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
392 <generateGitPropertiesFile>true</generateGitPropertiesFile>
393 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
394 <includeOnlyProperties>
395 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
396 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
397 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
398 </includeOnlyProperties>
404 Replace phase "none" with "process-sources" to enable.
405 Set organizationName as desired.
406 Then run `mvn license:check-file-header`, or even `mvn
407 license:update-file-header`.
409 <groupId>org.codehaus.mojo</groupId>
410 <artifactId>license-maven-plugin</artifactId>
411 <version>1.17</version>
417 <goal>update-file-header</goal>
419 <!-- replace phase "none" with "process-sources" to enable -->
425 <canUpdateCopyright>false</canUpdateCopyright>
426 <canUpdateDescription>false</canUpdateDescription>
427 <licenseName>apache_v2</licenseName>
428 <processStartTag>============LICENSE_START=======================================================</processStartTag>
429 <processEndTag>============LICENSE_END=========================================================</processEndTag>
430 <sectionDelimiter>================================================================================</sectionDelimiter>
431 <projectName>VID</projectName>
432 <inceptionYear>2017</inceptionYear>
433 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
434 <canUpdateLicense>true</canUpdateLicense>
435 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
436 <emptyLineAfterHeader>true</emptyLineAfterHeader>
437 <verbose>false</verbose>
440 <include>**/*.java</include>
441 <include>**/*.kt</include>
442 <include>**/*.jsp</include>
443 <include>**/*.xml</include>
444 <include>**/*.js</include>
445 <include>**/*.ts</include>
446 <include>**/*.html</include>
447 <include>**/*.css</include>
448 <include>**/*.sql</include>
456 <root>src/main</root>
457 <root>src/test</root>
461 <exclude>**/app/vid/external/**/*</exclude>
462 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
463 <exclude>**/test/resources/WEB-INF/**/*</exclude>
464 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-javadoc-plugin</artifactId>
478 <version>2.10.4</version>
480 <failOnError>false</failOnError>
481 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
483 <groupId>org.umlgraph</groupId>
484 <artifactId>umlgraph</artifactId>
485 <version>5.6</version>
487 <additionalparam>-views</additionalparam>
488 <useStandardDocletOptions>true</useStandardDocletOptions>
497 <groupId>com.opencsv</groupId>
498 <artifactId>opencsv</artifactId>
499 <version>4.6</version>
505 <groupId>io.joshworks.unirest</groupId>
506 <artifactId>unirest-java</artifactId>
507 <version>0.2.1</version>
510 <groupId>org.apache.httpcomponents</groupId>
511 <artifactId>httpclient</artifactId>
512 <version>4.5.9</version>
515 <groupId>org.apache.httpcomponents</groupId>
516 <artifactId>httpasyncclient</artifactId>
517 <version>4.1.4</version>
520 <groupId>org.apache.httpcomponents</groupId>
521 <artifactId>httpmime</artifactId>
522 <version>4.5.9</version>
525 <groupId>com.xebialabs.restito</groupId>
526 <artifactId>restito</artifactId>
527 <version>0.9.3</version>
531 <groupId>org.jeasy</groupId>
532 <artifactId>easy-random-core</artifactId>
533 <version>4.0.0</version>
539 <groupId>io.vavr</groupId>
540 <artifactId>vavr</artifactId>
541 <version>0.10.2</version>
544 <!-- SDK overlay war -->
546 <groupId>org.onap.portal.sdk</groupId>
547 <artifactId>epsdk-app-overlay</artifactId>
548 <version>${epsdk.version}</version>
552 <groupId>org.onap.portal.sdk</groupId>
553 <artifactId>epsdk-app-common</artifactId>
554 <version>${epsdk.version}</version>
559 <groupId>org.onap.portal.sdk</groupId>
560 <artifactId>epsdk-core</artifactId>
561 <version>${epsdk.version}</version>
564 <groupId>org.onap.portal.sdk</groupId>
565 <artifactId>epsdk-analytics</artifactId>
566 <version>${epsdk.version}</version>
569 <groupId>com.lowagie</groupId>
570 <artifactId>itext</artifactId>
575 <groupId>org.onap.portal.sdk</groupId>
576 <artifactId>epsdk-workflow</artifactId>
577 <version>${epsdk.version}</version>
580 <groupId>com.att.eelf</groupId>
581 <artifactId>eelf-core</artifactId>
582 <version>1.0.0</version>
585 <artifactId>powermock-api-mockito</artifactId>
586 <groupId>org.powermock</groupId>
591 <groupId>ch.qos.logback</groupId>
592 <artifactId>logback-classic</artifactId>
596 <groupId>org.jetbrains.kotlin</groupId>
597 <artifactId>kotlin-stdlib-jdk8</artifactId>
598 <version>${kotlin.version}</version>
603 <groupId>com.fasterxml.jackson.core</groupId>
604 <artifactId>jackson-annotations</artifactId>
605 <version>${jackson.version}</version>
608 <groupId>com.fasterxml.jackson.core</groupId>
609 <artifactId>jackson-core</artifactId>
610 <version>${jackson.version}</version>
613 <groupId>com.fasterxml.jackson.core</groupId>
614 <artifactId>jackson-databind</artifactId>
615 <version>${jackson.version}</version>
618 <groupId>com.fasterxml.jackson.module</groupId>
619 <artifactId>jackson-module-kotlin</artifactId>
620 <version>${jackson.version}</version>
622 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
624 <groupId>com.mchange</groupId>
625 <artifactId>c3p0</artifactId>
626 <version>0.9.5.4</version>
629 <groupId>io.searchbox</groupId>
630 <artifactId>jest</artifactId>
631 <version>6.3.1</version>
634 <groupId>commons-logging</groupId>
635 <artifactId>commons-logging</artifactId>
640 <groupId>javax.servlet</groupId>
641 <artifactId>javax.servlet-api</artifactId>
642 <version>4.0.1</version>
643 <scope>provided</scope>
646 <groupId>junit</groupId>
647 <artifactId>junit</artifactId>
648 <version>4.12</version>
652 <groupId>commons-io</groupId>
653 <artifactId>commons-io</artifactId>
654 <version>2.6</version>
655 <!--<scope>test</scope>-->
658 <groupId>com.google.code.bean-matchers</groupId>
659 <artifactId>bean-matchers</artifactId>
660 <version>0.11</version>
664 <groupId>org.json</groupId>
665 <artifactId>json</artifactId>
666 <version>20190722</version>
669 <groupId>org.quartz-scheduler</groupId>
670 <artifactId>quartz</artifactId>
671 <version>2.3.1</version>
673 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
675 <groupId>c3p0</groupId>
676 <artifactId>c3p0</artifactId>
680 <!-- bridge to implement commons-logging using slf4j -->
682 <groupId>org.slf4j</groupId>
683 <artifactId>jcl-over-slf4j</artifactId>
684 <version>1.7.27</version>
687 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
689 <groupId>org.springframework</groupId>
690 <artifactId>spring-core</artifactId>
691 <version>${springframework.version}</version>
694 <groupId>commons-logging</groupId>
695 <artifactId>commons-logging</artifactId>
700 <groupId>org.springframework</groupId>
701 <artifactId>spring-test</artifactId>
702 <version>${springframework.version}</version>
705 <groupId>org.springframework</groupId>
706 <artifactId>spring-tx</artifactId>
707 <version>${springframework.version}</version>
710 <groupId>org.springframework</groupId>
711 <artifactId>spring-web</artifactId>
712 <version>${springframework.version}</version>
715 <groupId>org.springframework</groupId>
716 <artifactId>spring-webmvc</artifactId>
717 <version>${springframework.version}</version>
720 <groupId>org.springframework</groupId>
721 <artifactId>spring-context-support</artifactId>
722 <version>${springframework.version}</version>
725 <groupId>org.springframework</groupId>
726 <artifactId>spring-orm</artifactId>
727 <version>${springframework.orm.version}</version>
730 <groupId>org.springframework</groupId>
731 <artifactId>spring-aop</artifactId>
732 <version>${springframework.version}</version>
736 <groupId>org.glassfish.jersey.core</groupId>
737 <artifactId>jersey-client</artifactId>
738 <version>${jersey.version}</version>
741 <groupId>org.glassfish.jersey.connectors</groupId>
742 <artifactId>jersey-jetty-connector</artifactId>
743 <version>${jersey.version}</version>
745 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
747 <groupId>org.glassfish.jersey.inject</groupId>
748 <artifactId>jersey-hk2</artifactId>
749 <version>${jersey.version}</version>
752 <groupId>com.fasterxml.jackson.jaxrs</groupId>
753 <artifactId>jackson-jaxrs-json-provider</artifactId>
754 <version>${jackson.version}</version>
757 <groupId>commons-beanutils</groupId>
758 <artifactId>commons-beanutils</artifactId>
761 <groupId>com.googlecode.json-simple</groupId>
762 <artifactId>json-simple</artifactId>
763 <version>1.1.1</version>
766 <groupId>org.seleniumhq.selenium</groupId>
767 <artifactId>selenium-java</artifactId>
768 <version>${selenium.version}</version>
772 <groupId>org.seleniumhq.selenium</groupId>
773 <artifactId>selenium-api</artifactId>
774 <version>${selenium.version}</version>
778 <groupId>org.testng</groupId>
779 <artifactId>testng</artifactId>
780 <version>6.14.3</version>
784 <groupId>org.mockito</groupId>
785 <artifactId>mockito-core</artifactId>
786 <version>2.23.0</version>
790 <groupId>org.seleniumhq.selenium</groupId>
791 <artifactId>selenium-firefox-driver</artifactId>
792 <version>${selenium.version}</version>
795 <groupId>xml-apis</groupId>
796 <artifactId>xml-apis</artifactId>
797 <version>2.0.2</version>
800 <groupId>org.yaml</groupId>
801 <artifactId>snakeyaml</artifactId>
802 <version>1.24</version>
805 <groupId>org.skyscreamer</groupId>
806 <artifactId>jsonassert</artifactId>
807 <version>1.5.0</version>
811 <groupId>org.onap.sdc.sdc-tosca</groupId>
812 <artifactId>sdc-tosca</artifactId>
813 <version>1.6.0</version>
814 <scope>compile</scope>
817 <groupId>net.javacrumbs.json-unit</groupId>
818 <artifactId>json-unit</artifactId>
819 <version>2.8.0</version>
823 <groupId>org.glassfish.jersey.media</groupId>
824 <artifactId>jersey-media-json-jackson</artifactId>
825 <version>${jersey.version}</version>
829 <groupId>org.apache.commons</groupId>
830 <artifactId>commons-lang3</artifactId>
831 <version>3.9</version>
834 <groupId>org.apache.commons</groupId>
835 <artifactId>commons-text</artifactId>
836 <version>1.7</version>
839 <groupId>org.apache.commons</groupId>
840 <artifactId>commons-proxy</artifactId>
841 <version>1.0</version>
844 <groupId>org.apache.commons</groupId>
845 <artifactId>commons-collections4</artifactId>
846 <version>4.4</version>
849 <groupId>org.hamcrest</groupId>
850 <artifactId>java-hamcrest</artifactId>
851 <version>2.0.0.0</version>
855 <groupId>org.togglz</groupId>
856 <artifactId>togglz-spring-core</artifactId>
857 <version>2.6.1.Final</version>
860 <groupId>com.h2database</groupId>
861 <artifactId>h2</artifactId>
862 <version>1.4.199</version>
866 <groupId>javax.xml.bind</groupId>
867 <artifactId>jaxb-api</artifactId>
868 <version>2.3.1</version>
872 <groupId>org.assertj</groupId>
873 <artifactId>assertj-core</artifactId>
874 <version>3.13.2</version>
878 <groupId>com.google.guava</groupId>
879 <artifactId>guava</artifactId>
880 <version>28.0-jre</version>
883 <groupId>io.springfox</groupId>
884 <artifactId>springfox-swagger2</artifactId>
885 <version>2.9.2</version>
888 <groupId>org.apache.maven</groupId>
889 <artifactId>maven-artifact</artifactId>
890 <version>3.6.1</version>