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-ueb-listener</artifactId>
15 <version>1.5.0-SNAPSHOT</version>
17 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
18 <description>Creates ueb-listener Docker container</description>
21 <image.name>onap/sdnc-ueb-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 <docker.push.phase>deploy</docker.push.phase>
27 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
36 <groupId>org.codehaus.groovy.maven</groupId>
37 <artifactId>gmaven-plugin</artifactId>
40 <phase>validate</phase>
45 <source>${basedir}/../TagVersion.groovy</source>
54 <artifactId>maven-resources-plugin</artifactId>
55 <version>2.6</version>
58 <id>copy-dockerfile</id>
60 <goal>copy-resources</goal>
61 </goals><!-- here the phase you need -->
62 <phase>validate</phase>
64 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
67 <directory>src/main/docker</directory>
69 <include>Dockerfile</include>
71 <filtering>true</filtering>
80 <goal>copy-resources</goal>
81 </goals><!-- here the phase you need -->
82 <phase>validate</phase>
84 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener/bin</outputDirectory>
87 <directory>src/main/scripts</directory>
89 <include>*.sh</include>
91 <filtering>false</filtering>
98 <id>copy-properties</id>
100 <goal>copy-resources</goal>
101 </goals><!-- here the phase you need -->
102 <phase>validate</phase>
104 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
107 <directory>src/main/properties</directory>
111 <filtering>false</filtering>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
128 <phase>initialize</phase>
132 <groupId>org.onap.ccsdk.sli.northbound</groupId>
133 <artifactId>ueb-listener</artifactId>
135 <version>${ccsdk.sli.northbound.version}</version>
138 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener</outputDirectory>
139 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
140 <overWriteReleases>true</overWriteReleases>
141 <overWriteSnapshots>true</overWriteSnapshots>
148 <artifactId>exec-maven-plugin</artifactId>
149 <groupId>org.codehaus.mojo</groupId>
150 <version>1.5.0</version>
156 <id>change shell permissions</id>
157 <phase>process-sources</phase>
162 <executable>/usr/bin/find</executable>
164 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
165 <argument>-name</argument>
166 <argument>*.sh</argument>
167 <argument>-exec</argument>
168 <argument>chmod</argument>
169 <argument>+x</argument>
170 <argument>{}</argument>
171 <argument>;</argument>
187 <groupId>io.fabric8</groupId>
188 <artifactId>docker-maven-plugin</artifactId>
189 <version>0.28.0</version>
190 <inherited>false</inherited>
194 <name>${image.name}</name>
196 <cleanup>try</cleanup>
197 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
198 <dockerFile>Dockerfile</dockerFile>
200 <tag>${project.docker.latestminortag.version}</tag>
201 <tag>${project.docker.latestfulltag.version}</tag>
202 <tag>${project.docker.latesttagtimestamp.version}</tag>
210 <id>generate-images</id>
211 <phase>package</phase>
219 <!--<phase>deploy</phase> -->
220 <phase>${docker.push.phase}</phase>