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.2-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <artifactId>installation-dmaap-listener</artifactId>
13 <version>1.2.2-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</ccsdk.project.version>
22 <ccsdk.sli.northbound.version>0.1.1</ccsdk.sli.northbound.version>
23 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <groupId>org.codehaus.groovy.maven</groupId>
33 <artifactId>gmaven-plugin</artifactId>
36 <phase>validate</phase>
42 println project.properties['sdnc.project.version'];
44 if ( project.properties['sdnc.project.version'] != null ) {
45 versionArray = project.properties['sdnc.project.version'].split('\\.');
48 if (project.properties['sdnc.project.version'].endsWith("-amsterdam"))
50 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
52 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
55 println 'New Tag for docker:' +
56 project.properties['project.docker.latesttag.version'];
66 <artifactId>maven-resources-plugin</artifactId>
67 <version>2.6</version>
70 <id>copy-dockerfile</id>
72 <goal>copy-resources</goal>
73 </goals><!-- here the phase you need -->
74 <phase>validate</phase>
76 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
79 <directory>src/main/docker</directory>
81 <include>Dockerfile</include>
83 <filtering>true</filtering>
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/dmaap-listener/bin</outputDirectory>
99 <directory>src/main/scripts</directory>
101 <include>*.sh</include>
103 <filtering>false</filtering>
110 <id>copy-properties</id>
112 <goal>copy-resources</goal>
113 </goals><!-- here the phase you need -->
114 <phase>validate</phase>
116 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
119 <directory>src/main/properties</directory>
123 <filtering>false</filtering>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-dependency-plugin</artifactId>
140 <phase>initialize</phase>
144 <groupId>org.onap.ccsdk.sli.northbound</groupId>
145 <artifactId>dmaap-listener</artifactId>
147 <version>${ccsdk.sli.northbound.version}</version>
150 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/dmaap-listener</outputDirectory>
151 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
152 <overWriteReleases>true</overWriteReleases>
153 <overWriteSnapshots>true</overWriteSnapshots>
160 <artifactId>exec-maven-plugin</artifactId>
161 <groupId>org.codehaus.mojo</groupId>
162 <version>1.5.0</version>
168 <id>change shell permissions</id>
169 <phase>process-sources</phase>
174 <executable>/usr/bin/find</executable>
176 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
177 <argument>-name</argument>
178 <argument>*.sh</argument>
179 <argument>-exec</argument>
180 <argument>chmod</argument>
181 <argument>+x</argument>
182 <argument>{}</argument>
183 <argument>;</argument>
199 <groupId>io.fabric8</groupId>
200 <artifactId>docker-maven-plugin</artifactId>
201 <version>0.16.5</version>
202 <inherited>false</inherited>
206 <name>${image.name}</name>
208 <cleanup>try</cleanup>
209 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
210 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
212 <tag>${project.version}</tag>
213 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
214 <tag>${project.docker.latesttag.version}</tag>
222 <id>generate-images</id>
223 <phase>package</phase>
231 <phase>deploy</phase>