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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>1.2.0-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <artifactId>installation-dmaap-listener</artifactId>
13 <version>1.2.0-SNAPSHOT</version>
15 <name>Installation - dmaap-listener</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 <ccsdk.project.version>0.1.0-SNAPSHOT</ccsdk.project.version>
22 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
31 <groupId>org.codehaus.groovy.maven</groupId>
32 <artifactId>gmaven-plugin</artifactId>
35 <phase>validate</phase>
41 println project.properties['sdnc.project.version'];
43 if ( project.properties['sdnc.project.version'] != null ) {
44 versionArray = project.properties['sdnc.project.version'].split('\\.');
47 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
49 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
51 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
54 println 'New Tag for docker:' +
55 project.properties['project.docker.latesttag.version'];
65 <artifactId>maven-resources-plugin</artifactId>
66 <version>2.6</version>
69 <id>copy-dockerfile</id>
71 <goal>copy-resources</goal>
72 </goals><!-- here the phase you need -->
73 <phase>validate</phase>
75 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
78 <directory>src/main/docker</directory>
80 <include>Dockerfile</include>
82 <filtering>true</filtering>
91 <goal>copy-resources</goal>
92 </goals><!-- here the phase you need -->
93 <phase>validate</phase>
95 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener/bin</outputDirectory>
98 <directory>src/main/scripts</directory>
100 <include>*.sh</include>
102 <filtering>false</filtering>
109 <id>copy-properties</id>
111 <goal>copy-resources</goal>
112 </goals><!-- here the phase you need -->
113 <phase>validate</phase>
115 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
118 <directory>src/main/properties</directory>
122 <filtering>false</filtering>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-dependency-plugin</artifactId>
139 <phase>initialize</phase>
143 <groupId>org.onap.ccsdk.sli.northbound</groupId>
144 <artifactId>dmaap-listener</artifactId>
146 <version>${ccsdk.project.version}</version>
149 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
150 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
151 <overWriteReleases>true</overWriteReleases>
152 <overWriteSnapshots>true</overWriteSnapshots>
159 <artifactId>exec-maven-plugin</artifactId>
160 <groupId>org.codehaus.mojo</groupId>
161 <version>1.5.0</version>
167 <id>change shell permissions</id>
168 <phase>process-sources</phase>
173 <executable>/usr/bin/find</executable>
175 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
176 <argument>-name</argument>
177 <argument>*.sh</argument>
178 <argument>-exec</argument>
179 <argument>chmod</argument>
180 <argument>+x</argument>
181 <argument>{}</argument>
182 <argument>;</argument>
198 <groupId>io.fabric8</groupId>
199 <artifactId>docker-maven-plugin</artifactId>
200 <version>0.16.5</version>
201 <inherited>false</inherited>
205 <name>${image.name}</name>
207 <cleanup>try</cleanup>
208 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
209 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
211 <tag>${project.version}</tag>
212 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
213 <tag>${project.docker.latesttag.version}</tag>
221 <id>generate-images</id>
222 <phase>package</phase>
230 <phase>deploy</phase>