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.2.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>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
34 <version>1.0</version>
37 <phase>validate</phase>
42 <source>${basedir}/../TagVersion.groovy</source>
48 <artifactId>maven-resources-plugin</artifactId>
49 <version>2.6</version>
52 <id>copy-dockerfile</id>
54 <goal>copy-resources</goal>
55 </goals><!-- here the phase you need -->
56 <phase>validate</phase>
58 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
61 <directory>src/main/docker</directory>
63 <include>Dockerfile</include>
65 <filtering>true</filtering>
73 <goal>copy-resources</goal>
74 </goals><!-- here the phase you need -->
75 <phase>validate</phase>
77 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
80 <directory>src/main/scripts</directory>
82 <include>*.sh</include>
84 <filtering>true</filtering>
90 <id>copy-properties</id>
92 <goal>copy-resources</goal>
93 </goals><!-- here the phase you need -->
94 <phase>validate</phase>
96 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
99 <directory>src/main/properties</directory>
103 <filtering>true</filtering>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-dependency-plugin</artifactId>
119 <phase>initialize</phase>
123 <groupId>org.onap.ccsdk.sli.northbound</groupId>
124 <artifactId>dmaap-listener</artifactId>
126 <version>${ccsdk.sli.northbound.version}</version>
129 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
130 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
131 <overWriteReleases>true</overWriteReleases>
132 <overWriteSnapshots>true</overWriteSnapshots>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-antrun-plugin</artifactId>
140 <version>1.8</version>
143 <id>change-shell-permissions</id>
144 <phase>process-sources</phase>
147 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
165 <groupId>io.fabric8</groupId>
166 <artifactId>docker-maven-plugin</artifactId>
167 <version>0.34.0</version>
168 <inherited>false</inherited>
172 <name>${image.name}</name>
174 <cleanup>try</cleanup>
175 <noCache>true</noCache>
176 <contextDir>${basedir}/target/docker-stage</contextDir>
177 <dockerFile>Dockerfile</dockerFile>
179 <tag>${project.docker.latestminortag.version}</tag>
180 <tag>${project.docker.latestfulltag.version}</tag>
181 <tag>${project.docker.latesttagtimestamp.version}</tag>
186 <verbose>${docker.verbose}</verbose>
187 <skipPush>${docker.skip.push}</skipPush>
191 <id>build-push-images</id>