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.4.0</epsdk.version>
29 <springframework.version>5.1.6.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.8</jackson.version>
36 <jersey.version>2.28</jersey.version>
37 <surefire.version>2.22.1</surefire.version>
38 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
40 <!-- Skip assembling the zip by default -->
41 <skipassembly>true</skipassembly>
42 <nexusproxy>https://nexus.onap.org</nexusproxy>
43 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
44 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
45 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
46 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
48 <aspectj.version>1.8.9</aspectj.version>
49 <kotlin.version>1.3.30</kotlin.version>
50 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
52 <eirslett.version>1.6</eirslett.version>
53 <node.version>v8.9.4</node.version>
54 <npm.version>5.6.0</npm.version>
56 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
57 <release_version>${env.RELEASE_VERSION}</release_version>
60 <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>
65 <!-- this should be commented for local debugging -->
66 <!-- <deployenv>local</deployenv> -->
70 <id>ecomp-releases</id>
71 <name>VID Release Repository</name>
72 <url>${nexusproxy}/${releaseNexusPath}</url>
75 <id>ecomp-snapshots</id>
76 <name>VID Snapshot Repository</name>
77 <url>${nexusproxy}/${snapshotNexusPath}</url>
80 <id>ecomp-staging</id>
81 <name>VID Staging Repository</name>
82 <url>${nexusproxy}/${stagingNexusPath}</url>
85 <!-- Snapshots repository has ECOMP snapshot artifacts -->
86 <id>oss-snapshots</id>
87 <name>oss Central - Snapshots</name>
88 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
92 <distributionManagement>
94 <id>ecomp-releases</id>
95 <name>VID Release Repository</name>
96 <url>${nexusproxy}/${releaseNexusPath}</url>
99 <id>ecomp-snapshots</id>
100 <name>VID Snapshot Repository</name>
101 <url>${nexusproxy}/${snapshotNexusPath}</url>
102 </snapshotRepository>
103 <!-- added for javadoc -->
106 <url>dav:${nexusproxy}/${sitePath}</url>
108 </distributionManagement>
111 <finalName>vid-common</finalName>
116 <artifactId>kotlin-maven-plugin</artifactId>
117 <groupId>org.jetbrains.kotlin</groupId>
118 <version>${kotlin.version}</version>
122 <goals> <goal>compile</goal> </goals>
125 <sourceDir>${project.basedir}/src/main/java</sourceDir>
130 <id>test-compile</id>
131 <goals> <goal>test-compile</goal> </goals>
134 <sourceDir>${project.basedir}/src/test/java</sourceDir>
141 <groupId>org.jacoco</groupId>
142 <artifactId>jacoco-maven-plugin</artifactId>
143 <version>0.8.3</version>
146 <id>default-prepare-agent</id>
148 <goal>prepare-agent</goal>
152 <id>default-report</id>
160 <groupId>org.apache.tomcat.maven</groupId>
161 <artifactId>tomcat6-maven-plugin</artifactId>
162 <version>2.2</version>
165 <groupId>org.apache.tomcat.maven</groupId>
166 <artifactId>tomcat7-maven-plugin</artifactId>
167 <version>2.2</version>
171 <groupId>com.github.eirslett</groupId>
172 <artifactId>frontend-maven-plugin</artifactId>
173 <version>${eirslett.version}</version>
176 <id>install node and npm</id>
178 <goal>install-node-and-npm</goal>
180 <phase>generate-resources</phase>
182 <npmVersion>${npm.version}</npmVersion>
183 <nodeVersion>${node.version}</nodeVersion>
187 <id>npm config list</id>
189 <arguments>config ls -l</arguments>
194 <phase>generate-resources</phase>
199 <arguments>install</arguments>
204 <phase>generate-resources</phase>
207 <id>npm run-script build</id>
209 <arguments>run-script build</arguments>
214 <phase>generate-resources</phase>
220 <groupId>org.apache.maven.plugins</groupId>
221 <artifactId>maven-compiler-plugin</artifactId>
222 <version>3.5.1</version>
229 <!-- Replacing default-compile as it is treated specially by maven -->
231 <id>default-compile</id>
234 <!-- Replacing default-testCompile as it is treated specially by maven -->
236 <id>default-testCompile</id>
240 <id>java-compile</id>
241 <phase>compile</phase>
242 <goals> <goal>compile</goal> </goals>
245 <id>java-test-compile</id>
246 <phase>test-compile</phase>
247 <goals> <goal>testCompile</goal> </goals>
254 <groupId>com.google.code.maven-replacer-plugin</groupId>
255 <artifactId>replacer</artifactId>
256 <version>1.5.3</version>
259 <phase>prepare-package</phase>
267 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
270 <token>BUILD_NUMBER</token>
271 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-surefire-plugin</artifactId>
280 <version>${surefire.version}</version>
283 <include>**/Test*.java</include>
284 <include>**/*Test.java</include>
285 <include>**/*TestCase.java</include>
288 <exclude>**/selenium/*.java</exclude>
289 <exclude>**/integrationTest/*.java</exclude>
291 <additionalClasspathElements>
292 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
293 </additionalClasspathElements>
294 <systemPropertyVariables>
295 <container.classpath>classpath:</container.classpath>
296 </systemPropertyVariables>
297 <useSystemClassLoader>false</useSystemClassLoader>
300 <!-- avoid running JUnit tests within surefire-testng provider -->
305 <name>usedefaultlisteners</name>
309 <threadCount>1</threadCount>
312 <!-- Running TestNG and JUnit Tests -->
313 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
315 <groupId>org.apache.maven.surefire</groupId>
316 <artifactId>surefire-junit47</artifactId>
317 <version>${surefire.version}</version>
320 <groupId>org.apache.maven.surefire</groupId>
321 <artifactId>surefire-testng</artifactId>
322 <version>${surefire.version}</version>
328 <artifactId>maven-assembly-plugin</artifactId>
330 <skipAssembly>${skipassembly}</skipAssembly>
332 <descriptor>${basedir}/distribution.xml</descriptor>
337 <id>make-assembly</id>
338 <phase>package</phase>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-war-plugin</artifactId>
350 <version>3.0.0</version>
352 <!-- Build a jar with all the Java classes -->
353 <attachClasses>true</attachClasses>
354 <!-- Do not put any jars in the war -->
355 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-site-plugin</artifactId>
361 <version>3.6</version>
364 <groupId>org.apache.maven.wagon</groupId>
365 <artifactId>wagon-webdav-jackrabbit</artifactId>
366 <version>2.10</version>
371 <groupId>pl.project13.maven</groupId>
372 <artifactId>git-commit-id-plugin</artifactId>
373 <version>2.2.4</version>
376 <id>get-the-git-infos</id>
378 <goal>revision</goal>
383 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
384 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
385 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
386 <generateGitPropertiesFile>true</generateGitPropertiesFile>
387 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
388 <includeOnlyProperties>
389 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
390 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
391 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
392 </includeOnlyProperties>
398 Replace phase "none" with "process-sources" to enable.
399 Set organizationName as desired.
400 Then run `mvn license:check-file-header`, or even `mvn
401 license:update-file-header`.
403 <groupId>org.codehaus.mojo</groupId>
404 <artifactId>license-maven-plugin</artifactId>
405 <version>1.17</version>
411 <goal>update-file-header</goal>
413 <!-- replace phase "none" with "process-sources" to enable -->
419 <canUpdateCopyright>false</canUpdateCopyright>
420 <canUpdateDescription>false</canUpdateDescription>
421 <licenseName>apache_v2</licenseName>
422 <processStartTag>============LICENSE_START=======================================================</processStartTag>
423 <processEndTag>============LICENSE_END=========================================================</processEndTag>
424 <sectionDelimiter>================================================================================</sectionDelimiter>
425 <projectName>VID</projectName>
426 <inceptionYear>2017</inceptionYear>
427 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
428 <canUpdateLicense>true</canUpdateLicense>
429 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
430 <emptyLineAfterHeader>true</emptyLineAfterHeader>
431 <verbose>false</verbose>
434 <include>**/*.java</include>
435 <include>**/*.kt</include>
436 <include>**/*.jsp</include>
437 <include>**/*.xml</include>
438 <include>**/*.js</include>
439 <include>**/*.ts</include>
440 <include>**/*.html</include>
441 <include>**/*.css</include>
442 <include>**/*.sql</include>
450 <root>src/main</root>
451 <root>src/test</root>
455 <exclude>**/app/vid/external/**/*</exclude>
456 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
457 <exclude>**/test/resources/WEB-INF/**/*</exclude>
458 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
470 <groupId>org.apache.maven.plugins</groupId>
471 <artifactId>maven-javadoc-plugin</artifactId>
472 <version>2.10.4</version>
474 <failOnError>false</failOnError>
475 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
477 <groupId>org.umlgraph</groupId>
478 <artifactId>umlgraph</artifactId>
479 <version>5.6</version>
481 <additionalparam>-views</additionalparam>
482 <useStandardDocletOptions>true</useStandardDocletOptions>
491 <groupId>com.opencsv</groupId>
492 <artifactId>opencsv</artifactId>
493 <version>4.1</version>
499 <groupId>io.joshworks.unirest</groupId>
500 <artifactId>unirest-java</artifactId>
501 <version>0.2.1</version>
504 <groupId>org.apache.httpcomponents</groupId>
505 <artifactId>httpclient</artifactId>
508 <groupId>org.apache.httpcomponents</groupId>
509 <artifactId>httpasyncclient</artifactId>
510 <version>4.0.2</version>
513 <groupId>org.apache.httpcomponents</groupId>
514 <artifactId>httpmime</artifactId>
515 <version>4.5.7</version>
518 <groupId>com.xebialabs.restito</groupId>
519 <artifactId>restito</artifactId>
520 <version>0.9.3</version>
524 <groupId>org.jeasy</groupId>
525 <artifactId>easy-random-core</artifactId>
526 <version>4.0.0.RC1</version>
532 <groupId>io.vavr</groupId>
533 <artifactId>vavr</artifactId>
534 <version>0.9.2</version>
537 <!-- SDK overlay war -->
539 <groupId>org.onap.portal.sdk</groupId>
540 <artifactId>epsdk-app-overlay</artifactId>
541 <version>${epsdk.version}</version>
545 <groupId>org.onap.portal.sdk</groupId>
546 <artifactId>epsdk-app-common</artifactId>
547 <version>${epsdk.version}</version>
552 <groupId>org.onap.portal.sdk</groupId>
553 <artifactId>epsdk-core</artifactId>
554 <version>${epsdk.version}</version>
557 <groupId>org.onap.portal.sdk</groupId>
558 <artifactId>epsdk-analytics</artifactId>
559 <version>${epsdk.version}</version>
562 <groupId>com.lowagie</groupId>
563 <artifactId>itext</artifactId>
568 <groupId>org.onap.portal.sdk</groupId>
569 <artifactId>epsdk-workflow</artifactId>
570 <version>${epsdk.version}</version>
573 <groupId>com.att.eelf</groupId>
574 <artifactId>eelf-core</artifactId>
575 <version>1.0.0</version>
578 <artifactId>powermock-api-mockito</artifactId>
579 <groupId>org.powermock</groupId>
584 <groupId>ch.qos.logback</groupId>
585 <artifactId>logback-classic</artifactId>
589 <groupId>org.jetbrains.kotlin</groupId>
590 <artifactId>kotlin-stdlib-jdk8</artifactId>
591 <version>${kotlin.version}</version>
596 <groupId>com.fasterxml.jackson.core</groupId>
597 <artifactId>jackson-annotations</artifactId>
598 <version>${jackson.version}</version>
601 <groupId>com.fasterxml.jackson.core</groupId>
602 <artifactId>jackson-core</artifactId>
603 <version>${jackson.version}</version>
606 <groupId>com.fasterxml.jackson.core</groupId>
607 <artifactId>jackson-databind</artifactId>
608 <version>${jackson.version}</version>
611 <groupId>com.fasterxml.jackson.module</groupId>
612 <artifactId>jackson-module-kotlin</artifactId>
613 <version>${jackson.version}</version>
615 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
617 <groupId>com.mchange</groupId>
618 <artifactId>c3p0</artifactId>
619 <version>0.9.5.4</version>
622 <groupId>io.searchbox</groupId>
623 <artifactId>jest</artifactId>
624 <version>2.0.0</version>
627 <groupId>commons-logging</groupId>
628 <artifactId>commons-logging</artifactId>
633 <groupId>javax.servlet</groupId>
634 <artifactId>javax.servlet-api</artifactId>
635 <version>3.1.0</version>
636 <scope>provided</scope>
639 <groupId>junit</groupId>
640 <artifactId>junit</artifactId>
641 <version>4.12</version>
645 <groupId>commons-io</groupId>
646 <artifactId>commons-io</artifactId>
647 <version>2.4</version>
648 <!--<scope>test</scope>-->
651 <groupId>com.google.code.bean-matchers</groupId>
652 <artifactId>bean-matchers</artifactId>
653 <version>0.11</version>
657 <groupId>org.json</groupId>
658 <artifactId>json</artifactId>
659 <version>20160212</version>
662 <groupId>org.quartz-scheduler</groupId>
663 <artifactId>quartz</artifactId>
664 <version>2.2.1</version>
666 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
668 <groupId>c3p0</groupId>
669 <artifactId>c3p0</artifactId>
673 <!-- bridge to implement commons-logging using slf4j -->
675 <groupId>org.slf4j</groupId>
676 <artifactId>jcl-over-slf4j</artifactId>
677 <version>1.7.12</version>
680 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
682 <groupId>org.springframework</groupId>
683 <artifactId>spring-core</artifactId>
684 <version>${springframework.version}</version>
687 <groupId>commons-logging</groupId>
688 <artifactId>commons-logging</artifactId>
693 <groupId>org.springframework</groupId>
694 <artifactId>spring-test</artifactId>
695 <version>${springframework.version}</version>
698 <groupId>org.springframework</groupId>
699 <artifactId>spring-tx</artifactId>
700 <version>${springframework.version}</version>
703 <groupId>org.springframework</groupId>
704 <artifactId>spring-web</artifactId>
705 <version>${springframework.version}</version>
708 <groupId>org.springframework</groupId>
709 <artifactId>spring-webmvc</artifactId>
710 <version>${springframework.version}</version>
713 <groupId>org.springframework</groupId>
714 <artifactId>spring-context-support</artifactId>
715 <version>${springframework.version}</version>
718 <groupId>org.springframework</groupId>
719 <artifactId>spring-orm</artifactId>
720 <version>${springframework.orm.version}</version>
723 <groupId>org.springframework</groupId>
724 <artifactId>spring-aop</artifactId>
725 <version>${springframework.version}</version>
729 <groupId>org.glassfish.jersey.core</groupId>
730 <artifactId>jersey-client</artifactId>
731 <version>${jersey.version}</version>
734 <groupId>org.glassfish.jersey.connectors</groupId>
735 <artifactId>jersey-jetty-connector</artifactId>
736 <version>${jersey.version}</version>
738 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
740 <groupId>org.glassfish.jersey.inject</groupId>
741 <artifactId>jersey-hk2</artifactId>
742 <version>${jersey.version}</version>
745 <groupId>com.fasterxml.jackson.jaxrs</groupId>
746 <artifactId>jackson-jaxrs-json-provider</artifactId>
747 <version>${jackson.version}</version>
750 <groupId>commons-beanutils</groupId>
751 <artifactId>commons-beanutils</artifactId>
754 <groupId>com.googlecode.json-simple</groupId>
755 <artifactId>json-simple</artifactId>
756 <version>1.1.1</version>
759 <groupId>org.seleniumhq.selenium</groupId>
760 <artifactId>selenium-java</artifactId>
761 <version>2.53.1</version>
765 <groupId>org.seleniumhq.selenium</groupId>
766 <artifactId>selenium-api</artifactId>
767 <version>2.53.1</version>
771 <groupId>org.testng</groupId>
772 <artifactId>testng</artifactId>
773 <version>6.14.3</version>
777 <groupId>org.mockito</groupId>
778 <artifactId>mockito-core</artifactId>
779 <version>2.23.0</version>
783 <groupId>org.seleniumhq.selenium</groupId>
784 <artifactId>selenium-firefox-driver</artifactId>
785 <version>2.53.1</version>
788 <groupId>xml-apis</groupId>
789 <artifactId>xml-apis</artifactId>
790 <version>1.4.01</version>
793 <groupId>org.yaml</groupId>
794 <artifactId>snakeyaml</artifactId>
795 <version>1.16</version>
798 <groupId>org.skyscreamer</groupId>
799 <artifactId>jsonassert</artifactId>
800 <version>1.5.0</version>
804 <groupId>org.onap.sdc.sdc-tosca</groupId>
805 <artifactId>sdc-tosca</artifactId>
806 <version>1.5.1</version>
807 <scope>compile</scope>
810 <groupId>net.javacrumbs.json-unit</groupId>
811 <artifactId>json-unit</artifactId>
812 <version>2.2.0</version>
816 <groupId>org.glassfish.jersey.media</groupId>
817 <artifactId>jersey-media-json-jackson</artifactId>
818 <version>${jersey.version}</version>
822 <groupId>org.apache.commons</groupId>
823 <artifactId>commons-lang3</artifactId>
824 <version>3.6</version>
827 <groupId>org.apache.commons</groupId>
828 <artifactId>commons-text</artifactId>
829 <version>1.1</version>
832 <groupId>org.apache.commons</groupId>
833 <artifactId>commons-proxy</artifactId>
834 <version>1.0</version>
837 <groupId>org.hamcrest</groupId>
838 <artifactId>java-hamcrest</artifactId>
839 <version>2.0.0.0</version>
843 <groupId>org.togglz</groupId>
844 <artifactId>togglz-spring-core</artifactId>
845 <version>2.5.0.Final</version>
848 <groupId>com.h2database</groupId>
849 <artifactId>h2</artifactId>
850 <version>1.4.196</version>
854 <groupId>javax.xml.bind</groupId>
855 <artifactId>jaxb-api</artifactId>
856 <version>2.2.11</version>
860 <groupId>org.assertj</groupId>
861 <artifactId>assertj-core</artifactId>
862 <version>3.10.0</version>
866 <groupId>com.google.guava</groupId>
867 <artifactId>guava</artifactId>
870 <groupId>io.springfox</groupId>
871 <artifactId>springfox-swagger2</artifactId>
872 <version>2.9.2</version>