1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.3.0-SNAPSHOT</version>
11 <artifactId>installation-dmaap-listener</artifactId>
12 <packaging>pom</packaging>
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates dmaap-listener Docker container</description>
21 <image.name>onap/sdnc-dmaap-listener-image</image.name>
22 <sdnc.project.version>${project.version}</sdnc.project.version>
23 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
24 <ccsdk.docker.version>${ccsdk.docker.alpine.j11.version}</ccsdk.docker.version>
25 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
26 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
31 <groupId>org.onap.ccsdk.sli.northbound</groupId>
32 <artifactId>dmaap-listener</artifactId>
34 <version>${ccsdk.sli.northbound.version}</version>
41 <groupId>org.codehaus.groovy.maven</groupId>
42 <artifactId>gmaven-plugin</artifactId>
43 <version>1.0</version>
46 <phase>validate</phase>
51 <source>${basedir}/../TagVersion.groovy</source>
57 <artifactId>maven-resources-plugin</artifactId>
58 <version>2.6</version>
61 <id>copy-dockerfile</id>
63 <goal>copy-resources</goal>
64 </goals><!-- here the phase you need -->
65 <phase>validate</phase>
67 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
70 <directory>src/main/docker</directory>
72 <include>Dockerfile</include>
74 <filtering>true</filtering>
82 <goal>copy-resources</goal>
83 </goals><!-- here the phase you need -->
84 <phase>validate</phase>
86 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
89 <directory>src/main/scripts</directory>
91 <include>*.sh</include>
93 <filtering>true</filtering>
99 <id>copy-properties</id>
101 <goal>copy-resources</goal>
102 </goals><!-- here the phase you need -->
103 <phase>validate</phase>
105 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
108 <directory>src/main/properties</directory>
112 <filtering>true</filtering>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
126 <goal>unpack-dependencies</goal>
128 <phase>initialize</phase>
130 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
131 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
132 <overWriteReleases>true</overWriteReleases>
133 <overWriteSnapshots>true</overWriteSnapshots>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-antrun-plugin</artifactId>
141 <version>1.8</version>
144 <id>change-shell-permissions</id>
145 <phase>process-sources</phase>
148 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
166 <groupId>io.fabric8</groupId>
167 <artifactId>docker-maven-plugin</artifactId>
168 <version>0.34.0</version>
169 <inherited>false</inherited>
173 <name>${image.name}</name>
175 <cleanup>try</cleanup>
176 <noCache>true</noCache>
177 <contextDir>${basedir}/target/docker-stage</contextDir>
178 <dockerFile>Dockerfile</dockerFile>
180 <tag>${project.docker.latestminortag.version}</tag>
181 <tag>${project.docker.latestfulltag.version}</tag>
182 <tag>${project.docker.latesttagtimestamp.version}</tag>
187 <verbose>${docker.verbose}</verbose>
188 <skipPush>${docker.skip.push}</skipPush>
192 <id>build-push-images</id>