aboutsummaryrefslogtreecommitdiffstats
path: root/hv-collector-main/pom.xml
diff options
context:
space:
mode:
authorfkrzywka <filip.krzywka@nokia.com>2018-06-01 12:45:22 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-08-01 08:42:19 +0200
commit4b8cfb3e5bafc0cb078e37f64d0f21e8dfb0916a (patch)
tree8b7834278b3a6921014fcc2d457c66430a646768 /hv-collector-main/pom.xml
parentff1ce822e44ed6aa0712c2d04232ee2bdd427531 (diff)
Docker image creation
Maven integration with docker build Closes ONAP-226 Change-Id: I115ff9c13e1bf06a7594a174c7703bfea42f3641 Signed-off-by: fkrzywka <filip.krzywka@nokia.com> Issue-ID: DCAEGEN2-601
Diffstat (limited to 'hv-collector-main/pom.xml')
-rw-r--r--hv-collector-main/pom.xml39
1 files changed, 37 insertions, 2 deletions
diff --git a/hv-collector-main/pom.xml b/hv-collector-main/pom.xml
index 9f02ed58..80d72331 100644
--- a/hv-collector-main/pom.xml
+++ b/hv-collector-main/pom.xml
@@ -19,8 +19,8 @@
~ ============LICENSE_END=========================================================
-->
<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">
+ 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>
<licenses>
@@ -42,6 +42,7 @@
<properties>
<skipAnalysis>false</skipAnalysis>
+ <docker-image.name>ves-hv-collector</docker-image.name>
</properties>
<build>
@@ -54,6 +55,40 @@
<artifactId>maven-surefire-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-internal-deps</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/libs/internal</outputDirectory>
+ <includeGroupIds>${project.parent.groupId}</includeGroupIds>
+ <includeScope>runtime</includeScope>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-external-deps</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/libs/external</outputDirectory>
+ <excludeGroupIds>${project.parent.groupId}</excludeGroupIds>
+ <includeScope>runtime</includeScope>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ </plugin>
</plugins>
</build>