1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
7 <groupId>org.onap.ccsdk.parent</groupId>
8 <artifactId>odlparent-lite</artifactId>
9 <version>1.2.1-SNAPSHOT</version>
11 <modelVersion>4.0.0</modelVersion>
12 <packaging>pom</packaging>
13 <groupId>org.onap.sdnc.oam</groupId>
14 <artifactId>installation-dmaap-listener</artifactId>
15 <version>1.5.0-SNAPSHOT</version>
17 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
18 <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>0.4-STAGING-latest</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>
35 <groupId>org.codehaus.groovy.maven</groupId>
36 <artifactId>gmaven-plugin</artifactId>
39 <phase>validate</phase>
44 <source>${basedir}/../TagVersion.groovy</source>
53 <artifactId>maven-resources-plugin</artifactId>
54 <version>2.6</version>
57 <id>copy-dockerfile</id>
59 <goal>copy-resources</goal>
60 </goals><!-- here the phase you need -->
61 <phase>validate</phase>
63 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
66 <directory>src/main/docker</directory>
68 <include>Dockerfile</include>
70 <filtering>true</filtering>
79 <goal>copy-resources</goal>
80 </goals><!-- here the phase you need -->
81 <phase>validate</phase>
83 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
86 <directory>src/main/scripts</directory>
88 <include>*.sh</include>
90 <filtering>false</filtering>
97 <id>copy-properties</id>
99 <goal>copy-resources</goal>
100 </goals><!-- here the phase you need -->
101 <phase>validate</phase>
103 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
106 <directory>src/main/properties</directory>
110 <filtering>false</filtering>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-dependency-plugin</artifactId>
127 <phase>initialize</phase>
131 <groupId>org.onap.ccsdk.sli.northbound</groupId>
132 <artifactId>dmaap-listener</artifactId>
134 <version>${ccsdk.sli.northbound.version}</version>
137 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
138 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
139 <overWriteReleases>true</overWriteReleases>
140 <overWriteSnapshots>true</overWriteSnapshots>
147 <artifactId>exec-maven-plugin</artifactId>
148 <groupId>org.codehaus.mojo</groupId>
149 <version>1.5.0</version>
155 <id>change shell permissions</id>
156 <phase>process-sources</phase>
161 <executable>/usr/bin/find</executable>
163 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
164 <argument>-name</argument>
165 <argument>*.sh</argument>
166 <argument>-exec</argument>
167 <argument>chmod</argument>
168 <argument>+x</argument>
169 <argument>{}</argument>
170 <argument>;</argument>
186 <groupId>io.fabric8</groupId>
187 <artifactId>docker-maven-plugin</artifactId>
188 <version>0.28.0</version>
189 <inherited>false</inherited>
193 <name>${image.name}</name>
195 <cleanup>try</cleanup>
196 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
197 <dockerFile>Dockerfile</dockerFile>
199 <tag>${project.docker.latestminortag.version}</tag>
200 <tag>${project.docker.latestfulltag.version}</tag>
201 <tag>${project.docker.latesttagtimestamp.version}</tag>
209 <id>generate-images</id>
210 <phase>package</phase>
218 <phase>deploy</phase>