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.27</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.11</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>
62 <!-- this should be commented for local debugging -->
63 <!-- <deployenv>local</deployenv> -->
67 <id>ecomp-releases</id>
68 <name>VID Release Repository</name>
69 <url>${nexusproxy}/${releaseNexusPath}</url>
72 <id>ecomp-snapshots</id>
73 <name>VID Snapshot Repository</name>
74 <url>${nexusproxy}/${snapshotNexusPath}</url>
77 <id>ecomp-staging</id>
78 <name>VID Staging Repository</name>
79 <url>${nexusproxy}/${stagingNexusPath}</url>
82 <!-- Snapshots repository has ECOMP snapshot artifacts -->
83 <id>oss-snapshots</id>
84 <name>oss Central - Snapshots</name>
85 <url>https://oss.sonatype.org/service/local/repositories/releases/content/</url>
89 <distributionManagement>
91 <id>ecomp-releases</id>
92 <name>VID Release Repository</name>
93 <url>${nexusproxy}/${releaseNexusPath}</url>
96 <id>ecomp-snapshots</id>
97 <name>VID Snapshot Repository</name>
98 <url>${nexusproxy}/${snapshotNexusPath}</url>
100 <!-- added for javadoc -->
103 <url>dav:${nexusproxy}/${sitePath}</url>
105 </distributionManagement>
108 <finalName>vid-common</finalName>
113 <artifactId>kotlin-maven-plugin</artifactId>
114 <groupId>org.jetbrains.kotlin</groupId>
115 <version>${kotlin.version}</version>
119 <goals> <goal>compile</goal> </goals>
122 <sourceDir>${project.basedir}/src/main/java</sourceDir>
127 <id>test-compile</id>
128 <goals> <goal>test-compile</goal> </goals>
131 <sourceDir>${project.basedir}/src/test/java</sourceDir>
138 <groupId>org.jacoco</groupId>
139 <artifactId>jacoco-maven-plugin</artifactId>
140 <version>0.8.3</version>
143 <id>default-prepare-agent</id>
145 <goal>prepare-agent</goal>
149 <id>default-report</id>
157 <groupId>org.apache.tomcat.maven</groupId>
158 <artifactId>tomcat6-maven-plugin</artifactId>
159 <version>2.2</version>
162 <groupId>org.apache.tomcat.maven</groupId>
163 <artifactId>tomcat7-maven-plugin</artifactId>
164 <version>2.2</version>
168 <groupId>com.github.eirslett</groupId>
169 <artifactId>frontend-maven-plugin</artifactId>
170 <version>${eirslett.version}</version>
173 <id>install node and npm</id>
175 <goal>install-node-and-npm</goal>
177 <phase>generate-resources</phase>
179 <npmVersion>${npm.version}</npmVersion>
180 <nodeVersion>${node.version}</nodeVersion>
184 <id>npm config list</id>
186 <arguments>config ls -l</arguments>
191 <phase>generate-resources</phase>
196 <arguments>install</arguments>
201 <phase>generate-resources</phase>
204 <id>npm run-script build</id>
206 <arguments>run-script build</arguments>
211 <phase>generate-resources</phase>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-compiler-plugin</artifactId>
219 <version>3.5.1</version>
226 <!-- Replacing default-compile as it is treated specially by maven -->
228 <id>default-compile</id>
231 <!-- Replacing default-testCompile as it is treated specially by maven -->
233 <id>default-testCompile</id>
237 <id>java-compile</id>
238 <phase>compile</phase>
239 <goals> <goal>compile</goal> </goals>
242 <id>java-test-compile</id>
243 <phase>test-compile</phase>
244 <goals> <goal>testCompile</goal> </goals>
251 <groupId>com.google.code.maven-replacer-plugin</groupId>
252 <artifactId>replacer</artifactId>
253 <version>1.5.3</version>
256 <phase>prepare-package</phase>
264 <file>${project.basedir}/src/main/webapp/app/vid/scripts/constants/version.json</file>
267 <token>BUILD_NUMBER</token>
268 <value>${release_version}.${patch_version}.${env.BUILD_NUMBER}</value>
275 <groupId>org.apache.maven.plugins</groupId>
276 <artifactId>maven-surefire-plugin</artifactId>
277 <version>${surefire.version}</version>
280 <include>**/Test*.java</include>
281 <include>**/*Test.java</include>
282 <include>**/*TestCase.java</include>
285 <exclude>**/selenium/*.java</exclude>
286 <exclude>**/integrationTest/*.java</exclude>
288 <additionalClasspathElements>
289 <additionalClasspathElement>${basedir}/war</additionalClasspathElement>
290 </additionalClasspathElements>
291 <systemPropertyVariables>
292 <container.classpath>classpath:</container.classpath>
293 </systemPropertyVariables>
294 <useSystemClassLoader>false</useSystemClassLoader>
297 <!-- avoid running JUnit tests within surefire-testng provider -->
302 <threadCount>1</threadCount>
305 <!-- Running TestNG and JUnit Tests -->
306 <!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
308 <groupId>org.apache.maven.surefire</groupId>
309 <artifactId>surefire-junit47</artifactId>
310 <version>${surefire.version}</version>
313 <groupId>org.apache.maven.surefire</groupId>
314 <artifactId>surefire-testng</artifactId>
315 <version>${surefire.version}</version>
321 <artifactId>maven-assembly-plugin</artifactId>
323 <skipAssembly>${skipassembly}</skipAssembly>
325 <descriptor>${basedir}/distribution.xml</descriptor>
330 <id>make-assembly</id>
331 <phase>package</phase>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-war-plugin</artifactId>
343 <version>3.0.0</version>
345 <!-- Build a jar with all the Java classes -->
346 <attachClasses>true</attachClasses>
347 <!-- Do not put any jars in the war -->
348 <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-site-plugin</artifactId>
354 <version>3.6</version>
357 <groupId>org.apache.maven.wagon</groupId>
358 <artifactId>wagon-webdav-jackrabbit</artifactId>
359 <version>2.10</version>
364 <groupId>pl.project13.maven</groupId>
365 <artifactId>git-commit-id-plugin</artifactId>
366 <version>2.2.4</version>
369 <id>get-the-git-infos</id>
371 <goal>revision</goal>
376 <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
377 <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
378 <dateFormatTimeZone>${user.timezone}</dateFormatTimeZone>
379 <generateGitPropertiesFile>true</generateGitPropertiesFile>
380 <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
381 <includeOnlyProperties>
382 <includeOnlyProperty>^git.commit.id$</includeOnlyProperty>
383 <includeOnlyProperty>^git.commit.message.short$</includeOnlyProperty>
384 <includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
385 </includeOnlyProperties>
391 Replace phase "none" with "process-sources" to enable.
392 Set organizationName as desired.
393 Then run `mvn license:check-file-header`, or even `mvn
394 license:update-file-header`.
396 <groupId>org.codehaus.mojo</groupId>
397 <artifactId>license-maven-plugin</artifactId>
398 <version>1.17</version>
404 <goal>update-file-header</goal>
406 <!-- replace phase "none" with "process-sources" to enable -->
412 <canUpdateCopyright>false</canUpdateCopyright>
413 <canUpdateDescription>false</canUpdateDescription>
414 <licenseName>apache_v2</licenseName>
415 <processStartTag>============LICENSE_START=======================================================</processStartTag>
416 <processEndTag>============LICENSE_END=========================================================</processEndTag>
417 <sectionDelimiter>================================================================================</sectionDelimiter>
418 <projectName>VID</projectName>
419 <inceptionYear>2017</inceptionYear>
420 <organizationName>AT&T Intellectual Property. All rights reserved.</organizationName>
421 <canUpdateLicense>true</canUpdateLicense>
422 <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
423 <emptyLineAfterHeader>true</emptyLineAfterHeader>
424 <verbose>false</verbose>
427 <include>**/*.java</include>
428 <include>**/*.kt</include>
429 <include>**/*.jsp</include>
430 <include>**/*.xml</include>
431 <include>**/*.js</include>
432 <include>**/*.ts</include>
433 <include>**/*.html</include>
434 <include>**/*.css</include>
435 <include>**/*.sql</include>
443 <root>src/main</root>
444 <root>src/test</root>
448 <exclude>**/app/vid/external/**/*</exclude>
449 <exclude>**/main/webapp/WEB-INF/**/*</exclude>
450 <exclude>**/test/resources/WEB-INF/**/*</exclude>
451 <exclude>**/app/vid/scripts/angular-ui-tree.js</exclude>
463 <groupId>org.apache.maven.plugins</groupId>
464 <artifactId>maven-javadoc-plugin</artifactId>
465 <version>2.10.4</version>
467 <failOnError>false</failOnError>
468 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
470 <groupId>org.umlgraph</groupId>
471 <artifactId>umlgraph</artifactId>
472 <version>5.6</version>
474 <additionalparam>-views</additionalparam>
475 <useStandardDocletOptions>true</useStandardDocletOptions>
484 <groupId>com.opencsv</groupId>
485 <artifactId>opencsv</artifactId>
486 <version>4.1</version>
492 <groupId>io.joshworks.unirest</groupId>
493 <artifactId>unirest-java</artifactId>
494 <version>0.2.1</version>
497 <groupId>org.apache.httpcomponents</groupId>
498 <artifactId>httpclient</artifactId>
501 <groupId>org.apache.httpcomponents</groupId>
502 <artifactId>httpasyncclient</artifactId>
503 <version>4.0.2</version>
506 <groupId>org.apache.httpcomponents</groupId>
507 <artifactId>httpmime</artifactId>
508 <version>4.5.7</version>
511 <groupId>com.xebialabs.restito</groupId>
512 <artifactId>restito</artifactId>
513 <version>0.9.3</version>
517 <groupId>org.jeasy</groupId>
518 <artifactId>easy-random-core</artifactId>
519 <version>4.0.0.RC1</version>
525 <groupId>io.vavr</groupId>
526 <artifactId>vavr</artifactId>
527 <version>0.9.2</version>
530 <!-- SDK overlay war -->
532 <groupId>org.onap.portal.sdk</groupId>
533 <artifactId>epsdk-app-overlay</artifactId>
534 <version>${epsdk.version}</version>
538 <groupId>org.onap.portal.sdk</groupId>
539 <artifactId>epsdk-app-common</artifactId>
540 <version>${epsdk.version}</version>
545 <groupId>org.onap.portal.sdk</groupId>
546 <artifactId>epsdk-core</artifactId>
547 <version>${epsdk.version}</version>
550 <groupId>org.onap.portal.sdk</groupId>
551 <artifactId>epsdk-analytics</artifactId>
552 <version>${epsdk.version}</version>
555 <groupId>com.lowagie</groupId>
556 <artifactId>itext</artifactId>
561 <groupId>org.onap.portal.sdk</groupId>
562 <artifactId>epsdk-workflow</artifactId>
563 <version>${epsdk.version}</version>
566 <groupId>com.att.eelf</groupId>
567 <artifactId>eelf-core</artifactId>
568 <version>1.0.0</version>
571 <artifactId>powermock-api-mockito</artifactId>
572 <groupId>org.powermock</groupId>
577 <groupId>ch.qos.logback</groupId>
578 <artifactId>logback-classic</artifactId>
582 <groupId>org.jetbrains.kotlin</groupId>
583 <artifactId>kotlin-stdlib-jdk8</artifactId>
584 <version>${kotlin.version}</version>
589 <groupId>com.fasterxml.jackson.core</groupId>
590 <artifactId>jackson-annotations</artifactId>
591 <version>${jackson.version}</version>
594 <groupId>com.fasterxml.jackson.core</groupId>
595 <artifactId>jackson-core</artifactId>
596 <version>${jackson.version}</version>
599 <groupId>com.fasterxml.jackson.core</groupId>
600 <artifactId>jackson-databind</artifactId>
601 <version>${jackson.version}</version>
604 <groupId>com.fasterxml.jackson.module</groupId>
605 <artifactId>jackson-module-kotlin</artifactId>
606 <version>${jackson.version}</version>
608 <!-- c3p0 is to override epsdk-app-common's c3p0 0.9.5.2 vulnerability -->
610 <groupId>com.mchange</groupId>
611 <artifactId>c3p0</artifactId>
612 <version>0.9.5.4</version>
615 <groupId>io.searchbox</groupId>
616 <artifactId>jest</artifactId>
617 <version>2.0.0</version>
620 <groupId>commons-logging</groupId>
621 <artifactId>commons-logging</artifactId>
626 <groupId>javax.servlet</groupId>
627 <artifactId>javax.servlet-api</artifactId>
628 <version>3.1.0</version>
629 <scope>provided</scope>
632 <groupId>junit</groupId>
633 <artifactId>junit</artifactId>
634 <version>4.12</version>
638 <groupId>commons-io</groupId>
639 <artifactId>commons-io</artifactId>
640 <version>2.4</version>
641 <!--<scope>test</scope>-->
644 <groupId>com.google.code.bean-matchers</groupId>
645 <artifactId>bean-matchers</artifactId>
646 <version>0.11</version>
650 <groupId>org.json</groupId>
651 <artifactId>json</artifactId>
652 <version>20160212</version>
655 <groupId>org.quartz-scheduler</groupId>
656 <artifactId>quartz</artifactId>
657 <version>2.2.1</version>
659 <!-- exclude 0.9.1.1 to avoid dupe of com.mchange:c3p0:0.9.2.1 -->
661 <groupId>c3p0</groupId>
662 <artifactId>c3p0</artifactId>
666 <!-- bridge to implement commons-logging using slf4j -->
668 <groupId>org.slf4j</groupId>
669 <artifactId>jcl-over-slf4j</artifactId>
670 <version>1.7.12</version>
673 <!-- springframework to override epsdk-app-common's and epsdk-core's versions -->
675 <groupId>org.springframework</groupId>
676 <artifactId>spring-core</artifactId>
677 <version>${springframework.version}</version>
680 <groupId>commons-logging</groupId>
681 <artifactId>commons-logging</artifactId>
686 <groupId>org.springframework</groupId>
687 <artifactId>spring-test</artifactId>
688 <version>${springframework.version}</version>
691 <groupId>org.springframework</groupId>
692 <artifactId>spring-tx</artifactId>
693 <version>${springframework.version}</version>
696 <groupId>org.springframework</groupId>
697 <artifactId>spring-web</artifactId>
698 <version>${springframework.version}</version>
701 <groupId>org.springframework</groupId>
702 <artifactId>spring-webmvc</artifactId>
703 <version>${springframework.version}</version>
706 <groupId>org.springframework</groupId>
707 <artifactId>spring-context-support</artifactId>
708 <version>${springframework.version}</version>
711 <groupId>org.springframework</groupId>
712 <artifactId>spring-orm</artifactId>
713 <version>${springframework.orm.version}</version>
716 <groupId>org.springframework</groupId>
717 <artifactId>spring-aop</artifactId>
718 <version>${springframework.version}</version>
722 <groupId>org.glassfish.jersey.core</groupId>
723 <artifactId>jersey-client</artifactId>
724 <version>${jersey.version}</version>
727 <groupId>org.glassfish.jersey.connectors</groupId>
728 <artifactId>jersey-jetty-connector</artifactId>
729 <version>${jersey.version}</version>
731 <!--https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found-->
733 <groupId>org.glassfish.jersey.inject</groupId>
734 <artifactId>jersey-hk2</artifactId>
735 <version>${jersey.version}</version>
738 <groupId>com.fasterxml.jackson.jaxrs</groupId>
739 <artifactId>jackson-jaxrs-json-provider</artifactId>
740 <version>${jackson.version}</version>
743 <groupId>commons-beanutils</groupId>
744 <artifactId>commons-beanutils</artifactId>
747 <groupId>com.googlecode.json-simple</groupId>
748 <artifactId>json-simple</artifactId>
749 <version>1.1.1</version>
752 <groupId>org.seleniumhq.selenium</groupId>
753 <artifactId>selenium-java</artifactId>
754 <version>2.53.1</version>
758 <groupId>org.seleniumhq.selenium</groupId>
759 <artifactId>selenium-api</artifactId>
760 <version>2.53.1</version>
764 <groupId>org.testng</groupId>
765 <artifactId>testng</artifactId>
766 <version>6.14.3</version>
770 <groupId>org.mockito</groupId>
771 <artifactId>mockito-core</artifactId>
772 <version>2.23.0</version>
776 <groupId>org.seleniumhq.selenium</groupId>
777 <artifactId>selenium-firefox-driver</artifactId>
778 <version>2.53.1</version>
781 <groupId>xml-apis</groupId>
782 <artifactId>xml-apis</artifactId>
783 <version>1.4.01</version>
786 <groupId>org.yaml</groupId>
787 <artifactId>snakeyaml</artifactId>
788 <version>1.16</version>
791 <groupId>org.skyscreamer</groupId>
792 <artifactId>jsonassert</artifactId>
793 <version>1.5.0</version>
797 <groupId>org.onap.sdc.sdc-tosca</groupId>
798 <artifactId>sdc-tosca</artifactId>
799 <version>1.5.1</version>
800 <scope>compile</scope>
803 <groupId>net.javacrumbs.json-unit</groupId>
804 <artifactId>json-unit</artifactId>
805 <version>1.23.0</version>
809 <groupId>org.glassfish.jersey.media</groupId>
810 <artifactId>jersey-media-json-jackson</artifactId>
811 <version>${jersey.version}</version>
815 <groupId>org.apache.commons</groupId>
816 <artifactId>commons-lang3</artifactId>
817 <version>3.6</version>
820 <groupId>org.apache.commons</groupId>
821 <artifactId>commons-text</artifactId>
822 <version>1.1</version>
825 <groupId>org.apache.commons</groupId>
826 <artifactId>commons-proxy</artifactId>
827 <version>1.0</version>
830 <groupId>org.hamcrest</groupId>
831 <artifactId>java-hamcrest</artifactId>
832 <version>2.0.0.0</version>
836 <groupId>org.togglz</groupId>
837 <artifactId>togglz-spring-core</artifactId>
838 <version>2.5.0.Final</version>
841 <groupId>com.h2database</groupId>
842 <artifactId>h2</artifactId>
843 <version>1.4.196</version>
847 <groupId>javax.xml.bind</groupId>
848 <artifactId>jaxb-api</artifactId>
849 <version>2.2.11</version>
853 <groupId>org.assertj</groupId>
854 <artifactId>assertj-core</artifactId>
855 <version>3.10.0</version>
859 <groupId>com.google.guava</groupId>
860 <artifactId>guava</artifactId>
863 <groupId>io.springfox</groupId>
864 <artifactId>springfox-swagger2</artifactId>
865 <version>2.9.2</version>