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>4.3.22.RELEASE</springframework.version>
30 <hibernate.version>4.3.11.Final</hibernate.version>
31 <jackson.version>2.9.8</jackson.version>
32 <jersey.version>2.27</jersey.version>
33 <surefire.version>2.22.1</surefire.version>
34 <sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
36 <!-- Skip assembling the zip by default -->
37 <skipassembly>true</skipassembly>
38 <nexusproxy>https://nexus.onap.org</nexusproxy>
39 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
40 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
41 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
42 <sitePath>content/sites/site/org/onap/vid/${project.version}</sitePath>
44 <aspectj.version>1.8.9</aspectj.version>
45 <kotlin.version>1.3.11</kotlin.version>
46 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
48 <eirslett.version>1.6</eirslett.version>
49 <node.version>v6.16.0</node.version>
51 <!-- override using -Drelease_version=foo -Dpatch_version=bar -->
52 <release_version>${env.RELEASE_VERSION}</release_version>
57 <!-- this should be commented for local debugging -->
58 <!-- <deployenv>local</deployenv> -->
62 <id>ecomp-releases</id>
63 <name>VID Release Repository</name>
64 <url>${nexusproxy}/${releaseNexusPath}</url>
67 <id>ecomp-snapshots</id>
68 <name>VID Snapshot Repository</name>
69 <url>${nexusproxy}/${snapshotNexusPath}</url>
72 <id>ecomp-staging</id>
73 <name>VID Staging Repository</name>
74 <url>${nexusproxy}/${stagingNexusPath}</url>
77 <!-- Snapshots repository has ECOMP snapshot artifacts -->
78 <id>oss-snapshots</id>
79 <name>oss Central - Snapshots</name>
80 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
84 <distributionManagement>
86 <id>ecomp-releases</id>
87 <name>VID Release Repository</name>
88 <url>${nexusproxy}/${releaseNexusPath}</url>
91 <id>ecomp-snapshots</id>
92 <name>VID Snapshot Repository</name>
93 <url>${nexusproxy}/${snapshotNexusPath}</url>
95 <!-- added for javadoc -->
98 <url>dav:${nexusproxy}/${sitePath}</url>
100 </distributionManagement>
103 <finalName>vid-common</finalName>
108 <artifactId>kotlin-maven-plugin</artifactId>
109 <groupId>org.jetbrains.kotlin</groupId>
110 <version>${kotlin.version}</version>
114 <goals> <goal>compile</goal> </goals>
117 <sourceDir>${project.basedir}/src/main/java</sourceDir>
122 <id>test-compile</id>
123 <goals> <goal>test-compile</goal> </goals>
126 <sourceDir>${project.basedir}/src/test/java</sourceDir>
133 <groupId>org.jacoco</groupId>
134 <artifactId>jacoco-maven-plugin</artifactId>
135 <version>0.8.3</version>
138 <id>default-prepare-agent</id>
140 <goal>prepare-agent</goal>
144 <id>default-report</id>
152 <groupId>org.apache.tomcat.maven</groupId>
153 <artifactId>tomcat6-maven-plugin</artifactId>
154 <version>2.2</version>
157 <groupId>org.apache.tomcat.maven</groupId>
158 <artifactId>tomcat7-maven-plugin</artifactId>
159 <version>2.2</version>
163 <groupId>com.github.eirslett</groupId>
164 <artifactId>frontend-maven-plugin</artifactId>
165 <version>${eirslett.version}</version>
168 <id>install node and npm</id>
170 <goal>install-node-and-npm</goal>
172 <phase>generate-resources</phase>
174 <nodeVersion>${node.version}</nodeVersion>
178 <id>npm config list</id>
180 <arguments>config ls -l</arguments>
185 <phase>generate-resources</phase>
190 <arguments>install</arguments>
195 <phase>generate-resources</phase>
198 <id>npm run-script build</id>
200 <arguments>run-script build</arguments>
205 <phase>generate-resources</phase>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-compiler-plugin</artifactId>
213 <version>3.5.1</version>
220 <!-- Replacing default-compile as it is treated specially by maven -->
222 <id>default-compile</id>
225 <!-- Replacing default-testCompile as it is treated specially by maven -->
227 <id>default-testCompile</id>
231 <id>java-compile</id>
232 <phase>compile</phase>
233 <goals> <goal>compile</goal> </goals>
236 <id>java-test-compile</id>
237 <phase>test-compile</phase>
238 <goals> <goal>testCompile</goal> </goals>
245 <groupId>com.google.code.maven-replacer-plugin</groupId>
246 <artifactId>replacer</artifactId>
247 <version>1.5.3</version>
250 <phase>prepare-package</phase>
258 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
261 <token>BUILD_NUMBER</token>
262 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-surefire-plugin</artifactId>
271 <version>${surefire.version}</version>
274 <include>**/Test*.java</include>
275 <include>**/*Test.java</include>
276 <include>**/*TestCase.java</include>
279 <exclude>**/selenium/*.java</exclude>
280 <exclude>**/integrationTest/*.java</exclude>
282 <additionalClasspathElements>
283 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
284 </additionalClasspathElements>
285 <systemPropertyVariables>
286 <container.classpath>classpath:</container.classpath>
287 </systemPropertyVariables>
288 <useSystemClassLoader>false</useSystemClassLoader>
291 <!-- avoid running JUnit tests within surefire-testng provider -->
296 <threadCount>1</threadCount>
299 <!-- Running TestNG and JUnit Tests -->
300 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
302 <groupId>org.apache.maven.surefire</groupId>
303 <artifactId>surefire-junit47</artifactId>
304 <version>${surefire.version}</version>
307 <groupId>org.apache.maven.surefire</groupId>
308 <artifactId>surefire-testng</artifactId>
309 <version>${surefire.version}</version>
315 <artifactId>maven-assembly-plugin</artifactId>
317 <skipAssembly>${skipassembly}</skipAssembly>
319 <descriptor>${basedir}/distribution.xml</descriptor>
324 <id>make-assembly</id>
325 <phase>package</phase>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-war-plugin</artifactId>
337 <version>3.0.0</version>
339 <!-- Build a jar with all the Java classes -->
340 <attachClasses>true</attachClasses>
341 <!-- Do not put any jars in the war -->
342 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-site-plugin</artifactId>
348 <version>3.6</version>
351 <groupId>org.apache.maven.wagon</groupId>
352 <artifactId>wagon-webdav-jackrabbit</artifactId>
353 <version>2.10</version>
358 <groupId>pl.project13.maven</groupId>
359 <artifactId>git-commit-id-plugin</artifactId>
360 <version>2.2.4</version>
363 <id>get-the-git-infos</id>
365 <goal>revision</goal>
370 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
371 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
372 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
373 <generateGitPropertiesFile>true</generateGitPropertiesFile>
374 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
375 <includeOnlyProperties>
376 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
377 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
378 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
379 </includeOnlyProperties>
385 Replace phase "none" with "process-sources" to enable.
386 Set organizationName as desired.
387 Then run `mvn license:check-file-header`, or even `mvn
388 license:update-file-header`.
390 <groupId>org.codehaus.mojo</groupId>
391 <artifactId>license-maven-plugin</artifactId>
392 <version>1.17</version>
398 <goal>update-file-header</goal>
400 <!-- replace phase "none" with "process-sources" to enable -->
406 <canUpdateCopyright>false</canUpdateCopyright>
407 <canUpdateDescription>false</canUpdateDescription>
408 <licenseName>apache_v2</licenseName>
409 <processStartTag>============LICENSE_START=======================================================</processStartTag>
410 <processEndTag>============LICENSE_END=========================================================</processEndTag>
411 <sectionDelimiter>================================================================================</sectionDelimiter>
412 <projectName>VID</projectName>
413 <inceptionYear>2017</inceptionYear>
414 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
415 <canUpdateLicense>true</canUpdateLicense>
416 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
417 <emptyLineAfterHeader>true</emptyLineAfterHeader>
418 <verbose>false</verbose>
421 <include>**/*.java</include>
422 <include>**/*.kt</include>
423 <include>**/*.jsp</include>
424 <include>**/*.xml</include>
425 <include>**/*.js</include>
426 <include>**/*.ts</include>
427 <include>**/*.html</include>
428 <include>**/*.css</include>
429 <include>**/*.sql</include>
437 <root>src/main</root>
438 <root>src/test</root>
442 <exclude>**/app/vid/external/**/*</exclude>
443 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
444 <exclude>**/test/resources/WEB-INF/**/*</exclude>
445 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
457 <groupId>org.apache.maven.plugins</groupId>
458 <artifactId>maven-javadoc-plugin</artifactId>
459 <version>2.10.4</version>
461 <failOnError>false</failOnError>
462 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
464 <groupId>org.umlgraph</groupId>
465 <artifactId>umlgraph</artifactId>
466 <version>5.6</version>
468 <additionalparam>-views</additionalparam>
469 <useStandardDocletOptions>true</useStandardDocletOptions>
478 <groupId>com.opencsv</groupId>
479 <artifactId>opencsv</artifactId>
480 <version>4.1</version>
486 <groupId>io.joshworks.unirest</groupId>
487 <artifactId>unirest-java</artifactId>
488 <version>0.2.1</version>
491 <groupId>org.apache.httpcomponents</groupId>
492 <artifactId>httpclient</artifactId>
495 <groupId>org.apache.httpcomponents</groupId>
496 <artifactId>httpasyncclient</artifactId>
497 <version>4.0.2</version>
500 <groupId>org.apache.httpcomponents</groupId>
501 <artifactId>httpmime</artifactId>
502 <version>4.5.7</version>
505 <groupId>com.xebialabs.restito</groupId>
506 <artifactId>restito</artifactId>
507 <version>0.9.3</version>
511 <groupId>org.jeasy</groupId>
512 <artifactId>easy-random-core</artifactId>
513 <version>4.0.0.RC1</version>
519 <groupId>io.vavr</groupId>
520 <artifactId>vavr</artifactId>
521 <version>0.9.2</version>
524 <!-- SDK overlay war -->
526 <groupId>org.onap.portal.sdk</groupId>
527 <artifactId>epsdk-app-overlay</artifactId>
528 <version>${epsdk.version}</version>
532 <groupId>org.onap.portal.sdk</groupId>
533 <artifactId>epsdk-app-common</artifactId>
534 <version>${epsdk.version}</version>
539 <groupId>org.onap.portal.sdk</groupId>
540 <artifactId>epsdk-core</artifactId>
541 <version>${epsdk.version}</version>
544 <groupId>org.onap.portal.sdk</groupId>
545 <artifactId>epsdk-analytics</artifactId>
546 <version>${epsdk.version}</version>
549 <groupId>com.lowagie</groupId>
550 <artifactId>itext</artifactId>
555 <groupId>org.onap.portal.sdk</groupId>
556 <artifactId>epsdk-workflow</artifactId>
557 <version>${epsdk.version}</version>
560 <groupId>com.att.eelf</groupId>
561 <artifactId>eelf-core</artifactId>
562 <version>1.0.0</version>
565 <artifactId>powermock-api-mockito</artifactId>
566 <groupId>org.powermock</groupId>
571 <groupId>ch.qos.logback</groupId>
572 <artifactId>logback-classic</artifactId>
576 <groupId>org.jetbrains.kotlin</groupId>
577 <artifactId>kotlin-stdlib-jdk8</artifactId>
578 <version>${kotlin.version}</version>
583 <groupId>com.fasterxml.jackson.core</groupId>
584 <artifactId>jackson-annotations</artifactId>
585 <version>${jackson.version}</version>
588 <groupId>com.fasterxml.jackson.core</groupId>
589 <artifactId>jackson-core</artifactId>
590 <version>${jackson.version}</version>
593 <groupId>com.fasterxml.jackson.core</groupId>
594 <artifactId>jackson-databind</artifactId>
595 <version>${jackson.version}</version>
598 <groupId>com.fasterxml.jackson.module</groupId>
599 <artifactId>jackson-module-kotlin</artifactId>
600 <version>${jackson.version}</version>
602 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
604 <groupId>com.mchange</groupId>
605 <artifactId>c3p0</artifactId>
606 <version>0.9.5.4</version>
609 <groupId>io.searchbox</groupId>
610 <artifactId>jest</artifactId>
611 <version>2.0.0</version>
614 <groupId>commons-logging</groupId>
615 <artifactId>commons-logging</artifactId>
620 <groupId>javax.servlet</groupId>
621 <artifactId>javax.servlet-api</artifactId>
622 <version>3.1.0</version>
623 <scope>provided</scope>
626 <groupId>junit</groupId>
627 <artifactId>junit</artifactId>
628 <version>4.12</version>
632 <groupId>commons-io</groupId>
633 <artifactId>commons-io</artifactId>
634 <version>2.4</version>
635 <!--<scope>test</scope>-->
638 <groupId>com.google.code.bean-matchers</groupId>
639 <artifactId>bean-matchers</artifactId>
640 <version>0.11</version>
644 <groupId>org.json</groupId>
645 <artifactId>json</artifactId>
646 <version>20160212</version>
649 <groupId>org.quartz-scheduler</groupId>
650 <artifactId>quartz</artifactId>
651 <version>2.2.1</version>
653 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
655 <groupId>c3p0</groupId>
656 <artifactId>c3p0</artifactId>
660 <!-- bridge to implement commons-logging using slf4j -->
662 <groupId>org.slf4j</groupId>
663 <artifactId>jcl-over-slf4j</artifactId>
664 <version>1.7.12</version>
667 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
669 <groupId>org.springframework</groupId>
670 <artifactId>spring-core</artifactId>
671 <version>${springframework.version}</version>
674 <groupId>commons-logging</groupId>
675 <artifactId>commons-logging</artifactId>
680 <groupId>org.springframework</groupId>
681 <artifactId>spring-test</artifactId>
682 <version>${springframework.version}</version>
685 <groupId>org.springframework</groupId>
686 <artifactId>spring-tx</artifactId>
687 <version>${springframework.version}</version>
690 <groupId>org.springframework</groupId>
691 <artifactId>spring-web</artifactId>
692 <version>${springframework.version}</version>
695 <groupId>org.springframework</groupId>
696 <artifactId>spring-webmvc</artifactId>
697 <version>${springframework.version}</version>
700 <groupId>org.springframework</groupId>
701 <artifactId>spring-context-support</artifactId>
702 <version>${springframework.version}</version>
705 <groupId>org.springframework</groupId>
706 <artifactId>spring-orm</artifactId>
707 <version>${springframework.version}</version>
710 <groupId>org.springframework</groupId>
711 <artifactId>spring-aop</artifactId>
712 <version>${springframework.version}</version>
716 <groupId>org.glassfish.jersey.core</groupId>
717 <artifactId>jersey-client</artifactId>
718 <version>${jersey.version}</version>
721 <groupId>org.glassfish.jersey.connectors</groupId>
722 <artifactId>jersey-jetty-connector</artifactId>
723 <version>${jersey.version}</version>
725 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
727 <groupId>org.glassfish.jersey.inject</groupId>
728 <artifactId>jersey-hk2</artifactId>
729 <version>${jersey.version}</version>
732 <groupId>com.fasterxml.jackson.jaxrs</groupId>
733 <artifactId>jackson-jaxrs-json-provider</artifactId>
734 <version>${jackson.version}</version>
737 <groupId>commons-beanutils</groupId>
738 <artifactId>commons-beanutils</artifactId>
741 <groupId>com.googlecode.json-simple</groupId>
742 <artifactId>json-simple</artifactId>
743 <version>1.1.1</version>
746 <groupId>org.seleniumhq.selenium</groupId>
747 <artifactId>selenium-java</artifactId>
748 <version>2.53.1</version>
752 <groupId>org.seleniumhq.selenium</groupId>
753 <artifactId>selenium-api</artifactId>
754 <version>2.53.1</version>
758 <groupId>org.testng</groupId>
759 <artifactId>testng</artifactId>
760 <version>6.14.3</version>
764 <groupId>org.mockito</groupId>
765 <artifactId>mockito-core</artifactId>
766 <version>2.23.0</version>
770 <groupId>org.seleniumhq.selenium</groupId>
771 <artifactId>selenium-firefox-driver</artifactId>
772 <version>2.53.1</version>
775 <groupId>xml-apis</groupId>
776 <artifactId>xml-apis</artifactId>
777 <version>1.4.01</version>
780 <groupId>org.yaml</groupId>
781 <artifactId>snakeyaml</artifactId>
782 <version>1.16</version>
785 <groupId>org.skyscreamer</groupId>
786 <artifactId>jsonassert</artifactId>
787 <version>1.5.0</version>
791 <groupId>org.onap.sdc.sdc-tosca</groupId>
792 <artifactId>sdc-tosca</artifactId>
793 <version>1.5.1</version>
794 <scope>compile</scope>
797 <groupId>net.javacrumbs.json-unit</groupId>
798 <artifactId>json-unit</artifactId>
799 <version>1.23.0</version>
803 <groupId>org.glassfish.jersey.media</groupId>
804 <artifactId>jersey-media-json-jackson</artifactId>
805 <version>${jersey.version}</version>
809 <groupId>org.apache.commons</groupId>
810 <artifactId>commons-lang3</artifactId>
811 <version>3.6</version>
814 <groupId>org.apache.commons</groupId>
815 <artifactId>commons-text</artifactId>
816 <version>1.1</version>
819 <groupId>org.apache.commons</groupId>
820 <artifactId>commons-proxy</artifactId>
821 <version>1.0</version>
824 <groupId>org.hamcrest</groupId>
825 <artifactId>java-hamcrest</artifactId>
826 <version>2.0.0.0</version>
830 <groupId>org.togglz</groupId>
831 <artifactId>togglz-spring-core</artifactId>
832 <version>2.5.0.Final</version>
835 <groupId>com.h2database</groupId>
836 <artifactId>h2</artifactId>
837 <version>1.4.196</version>
841 <groupId>javax.xml.bind</groupId>
842 <artifactId>jaxb-api</artifactId>
843 <version>2.2.11</version>
847 <groupId>org.assertj</groupId>
848 <artifactId>assertj-core</artifactId>
849 <version>3.10.0</version>
853 <groupId>com.google.guava</groupId>
854 <artifactId>guava</artifactId>
857 <groupId>io.springfox</groupId>
858 <artifactId>springfox-swagger2</artifactId>
859 <version>2.9.2</version>