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.5.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>
37 <groupId>org.apache.logging.log4j</groupId>
38 <artifactId>log4j-core</artifactId>
39 <version>${log4j.version}</version>
46 <groupId>org.codehaus.groovy.maven</groupId>
47 <artifactId>gmaven-plugin</artifactId>
48 <version>1.0</version>
51 <phase>validate</phase>
56 <source>${basedir}/../TagVersion.groovy</source>
62 <artifactId>maven-resources-plugin</artifactId>
63 <version>2.6</version>
66 <id>copy-dockerfile</id>
68 <goal>copy-resources</goal>
69 </goals><!-- here the phase you need -->
70 <phase>validate</phase>
72 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
75 <directory>src/main/docker</directory>
77 <include>Dockerfile</include>
79 <filtering>true</filtering>
87 <goal>copy-resources</goal>
88 </goals><!-- here the phase you need -->
89 <phase>validate</phase>
91 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
94 <directory>src/main/scripts</directory>
96 <include>*.sh</include>
98 <filtering>true</filtering>
104 <id>copy-properties</id>
106 <goal>copy-resources</goal>
107 </goals><!-- here the phase you need -->
108 <phase>validate</phase>
110 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
113 <directory>src/main/properties</directory>
117 <filtering>true</filtering>
125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-dependency-plugin</artifactId>
131 <goal>unpack-dependencies</goal>
133 <phase>initialize</phase>
135 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
136 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
137 <overWriteReleases>true</overWriteReleases>
138 <overWriteSnapshots>true</overWriteSnapshots>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-antrun-plugin</artifactId>
146 <version>1.8</version>
149 <id>change-shell-permissions</id>
150 <phase>process-sources</phase>
153 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
171 <groupId>io.fabric8</groupId>
172 <artifactId>docker-maven-plugin</artifactId>
173 <version>0.34.0</version>
174 <inherited>false</inherited>
178 <name>${image.name}</name>
180 <cleanup>try</cleanup>
181 <noCache>true</noCache>
182 <contextDir>${basedir}/target/docker-stage</contextDir>
183 <dockerFile>Dockerfile</dockerFile>
185 <tag>${project.docker.latestminortag.version}</tag>
186 <tag>${project.docker.latestfulltag.version}</tag>
187 <tag>${project.docker.latesttagtimestamp.version}</tag>
192 <verbose>${docker.verbose}</verbose>
193 <skipPush>${docker.skip.push}</skipPush>
197 <id>build-push-images</id>