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/maven-v4_0_0.xsd">
5 <groupId>org.onap.ccsdk.parent</groupId>
6 <artifactId>odlparent-lite</artifactId>
7 <version>2.0.0-SNAPSHOT</version>
9 <modelVersion>4.0.0</modelVersion>
10 <packaging>pom</packaging>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-dmaap-listener</artifactId>
13 <version>2.0.0-SNAPSHOT</version>
15 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
16 <description>Creates dmaap-listener Docker container</description>
19 <image.name>onap/sdnc-dmaap-listener-image</image.name>
20 <sdnc.project.version>${project.version}</sdnc.project.version>
21 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
22 <ccsdk.docker.version>0.7-STAGING-latest</ccsdk.docker.version>
23 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
33 <groupId>org.codehaus.groovy.maven</groupId>
34 <artifactId>gmaven-plugin</artifactId>
37 <phase>validate</phase>
42 <source>${basedir}/../TagVersion.groovy</source>
51 <artifactId>maven-resources-plugin</artifactId>
52 <version>2.6</version>
55 <id>copy-dockerfile</id>
57 <goal>copy-resources</goal>
58 </goals><!-- here the phase you need -->
59 <phase>validate</phase>
61 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
64 <directory>src/main/docker</directory>
66 <include>Dockerfile</include>
68 <filtering>true</filtering>
77 <goal>copy-resources</goal>
78 </goals><!-- here the phase you need -->
79 <phase>validate</phase>
81 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
84 <directory>src/main/scripts</directory>
86 <include>*.sh</include>
88 <filtering>false</filtering>
95 <id>copy-properties</id>
97 <goal>copy-resources</goal>
98 </goals><!-- here the phase you need -->
99 <phase>validate</phase>
101 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
104 <directory>src/main/properties</directory>
108 <filtering>false</filtering>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-dependency-plugin</artifactId>
125 <phase>initialize</phase>
129 <groupId>org.onap.ccsdk.sli.northbound</groupId>
130 <artifactId>dmaap-listener</artifactId>
132 <version>${ccsdk.sli.northbound.version}</version>
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>
145 <artifactId>exec-maven-plugin</artifactId>
146 <groupId>org.codehaus.mojo</groupId>
147 <version>1.5.0</version>
153 <id>change shell permissions</id>
154 <phase>process-sources</phase>
159 <executable>/usr/bin/find</executable>
161 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
162 <argument>-name</argument>
163 <argument>*.sh</argument>
164 <argument>-exec</argument>
165 <argument>chmod</argument>
166 <argument>+x</argument>
167 <argument>{}</argument>
168 <argument>;</argument>
184 <groupId>io.fabric8</groupId>
185 <artifactId>docker-maven-plugin</artifactId>
186 <version>0.28.0</version>
187 <inherited>false</inherited>
191 <name>${image.name}</name>
193 <cleanup>try</cleanup>
194 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
195 <dockerFile>Dockerfile</dockerFile>
197 <tag>${project.docker.latestminortag.version}</tag>
198 <tag>${project.docker.latestfulltag.version}</tag>
199 <tag>${project.docker.latesttagtimestamp.version}</tag>
207 <id>generate-images</id>
208 <phase>package</phase>
216 <phase>deploy</phase>