blob: 07edcfb84f807401719786f0b9c5707d56e5fbec [file] [log] [blame]
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-parent</artifactId>
<version>1.4.3-SNAPSHOT</version>
</parent>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-os</artifactId>
<version>1.4.3-SNAPSHOT</version>
<packaging>war</packaging>
<name>DCAE Dashboard</name>
<description>CCSDK Dashboard Web Application for external release</description>
<properties>
<encoding>UTF-8</encoding>
<springframework.version>4.3.22.RELEASE</springframework.version>
<hibernate.version>4.3.11.Final</hibernate.version>
<epsdk.version>2.6.0</epsdk.version>
<ccsdk.version>${project.version}</ccsdk.version>
<nexusproxy>https://nexus.onap.org</nexusproxy>
<snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
<!-- supplied by Jenkins server -->
<build.version>${project.version}</build.version>
<!-- Tests usually require some setup that maven cannot do, so skip. -->
<skiptests>true</skiptests>
<enforcer.skip>true</enforcer.skip>
<image.name>onap/${project.groupId}.${project.artifactId}</image.name>
<ccsdk.project.version>${project.version}</ccsdk.project.version>
<ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
<ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
<docker.verbose>true</docker.verbose>
<docker.buildArg.WAR_FILE>${project.build.finalName}.war</docker.buildArg.WAR_FILE>
</properties>
<repositories>
<repository>
<!-- Releases repository has ECOMP release artifacts -->
<id>onap-releases</id>
<name>ONAP - Release Repository</name>
<url>${nexusproxy}/${releaseNexusPath}</url>
</repository>
<repository>
<!-- Snapshots repository has ECOMP snapshot artifacts -->
<id>onap-snapshots</id>
<name>ONAP - Snapshot Repository</name>
<url>${nexusproxy}/${snapshotNexusPath}</url>
</repository>
<repository>
<!-- Staging repository has ECOMP release staging artifacts -->
<id>onap-staging</id>
<name>ONAP - Staging Repository</name>
<url>${nexusproxy}${stagingNexusPath}</url>
</repository>
</repositories>
<build>
<!-- War files are labeled with build information, not POM version -->
<finalName>${project.artifactId}-${build.version}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>execute</goal>
</goals>
</execution>
</executions>
<configuration>
<scripts>
<script>file:///${basedir}/../TagVersion.groovy</script>
</scripts>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>3.0.5</version>
<!-- <scope>runtime</scope> -->
<type>pom</type>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Build-Number>${build.version}</Build-Number>
<Build-Time>${maven.build.timestamp}</Build-Time>
</manifestEntries>
</archive>
<overlays>
<overlay>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-overlay</artifactId>
<excludes>
<exclude>app/ccsdk/home/api_view.html</exclude>
<exclude>app/ccsdk/home/ecd_router.js</exclude>
<exclude>app/ccsdk/home/executions_view.html</exclude>
<exclude>app/ccsdk/home/executions-view-controller.js</exclude>
<exclude>app/ccsdk/home/ecd_spa.html</exclude>
<exclude>app/ccsdk/home/ecd-style.css</exclude>
</excludes>
</overlay>
<overlay>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-app-overlay</artifactId>
<excludes>
<exclude>app/fusionapp/**</exclude>
<exclude>app/fusion/ase/**</exclude>
<exclude>app/fusion/external/angular-1.5/**</exclude>
<exclude>app/fusion/external/gis/**</exclude>
<exclude>app/fusion/external/leaflet-0.7.3/**</exclude>
<exclude>app/fusion/external/lodash/**</exclude>
<exclude>app/fusion/external/samples/**</exclude>
<exclude>app/fusion/external/showdown/**</exclude>
<exclude>app/fusion/external/b2b/**</exclude>
<exclude>app/fusion/notebook-integration/**</exclude>
<exclude>static/fusion/sample/**</exclude>
<exclude>static/fusion/raptor/**</exclude>
<exclude>static/fusion/css/**</exclude>
<exclude>static/fusion/d3/**</exclude>
<exclude>static/fusion/js/**</exclude>
<exclude>static/fusion/gis/**</exclude>
<exclude>app/fusion/styles/att_angular_gridster/**</exclude>
<exclude>app/fusion/styles/layout/**</exclude>
<exclude>app/fusion/styles/workflows/**</exclude>
<exclude>ngapp/**</exclude>
</excludes>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>docker</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.33.0</version>
<inherited>false</inherited>
<configuration>
<images>
<image>
<name>${image.name}</name>
<build>
<cleanup>try</cleanup>
<dockerFileDir>${basedir}</dockerFileDir>
<dockerFile>Dockerfile</dockerFile>
<tags>
<tag>${project.docker.latestminortag.version}</tag>
<tag>${project.docker.latestfulltag.version}</tag>
<tag>${project.docker.latesttagtimestamp.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>generate-images</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>push-images</id>
<phase>deploy</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<!-- ECD webapp resources -->
<dependency>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-overlay</artifactId>
<version>${ccsdk.version}</version>
<type>war</type>
</dependency>
<!-- ECD webapp controllers -->
<dependency>
<groupId>org.onap.ccsdk.dashboard</groupId>
<artifactId>ccsdk-app-common</artifactId>
<version>${ccsdk.version}</version>
</dependency>
<!-- SDK webapp resources -->
<dependency>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-app-overlay</artifactId>
<version>${epsdk.version}</version>
<type>war</type>
</dependency>
<!-- SDK webapp controllers -->
<dependency>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-app-common</artifactId>
<version>${epsdk.version}</version>
<exclusions>
<exclusion>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-analytics</artifactId>
</exclusion>
<exclusion>
<groupId>org.onap.portal.sdk</groupId>
<artifactId>epsdk-workflow</artifactId>
</exclusion>
<exclusion>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</exclusion>
<exclusion>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
</exclusion>
<exclusion>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
</exclusion>
<exclusion>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
</exclusion>
<exclusion>
<groupId>io.searchbox</groupId>
<artifactId>jest</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- overrides for spring libs -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${springframework.version}</version>
</dependency>
</dependencies>
</project>