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>1.5.1-SNAPSHOT</version>
9 <modelVersion>4.0.0</modelVersion>
10 <packaging>pom</packaging>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-ueb-listener</artifactId>
13 <version>1.8.0-SNAPSHOT</version>
15 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
16 <description>Creates ueb-listener Docker container</description>
19 <image.name>onap/sdnc-ueb-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 <docker.push.phase>deploy</docker.push.phase>
25 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
34 <groupId>org.codehaus.groovy.maven</groupId>
35 <artifactId>gmaven-plugin</artifactId>
38 <phase>validate</phase>
43 <source>${basedir}/../TagVersion.groovy</source>
52 <artifactId>maven-resources-plugin</artifactId>
53 <version>2.6</version>
56 <id>copy-dockerfile</id>
58 <goal>copy-resources</goal>
59 </goals><!-- here the phase you need -->
60 <phase>validate</phase>
62 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
65 <directory>src/main/docker</directory>
67 <include>Dockerfile</include>
69 <filtering>true</filtering>
78 <goal>copy-resources</goal>
79 </goals><!-- here the phase you need -->
80 <phase>validate</phase>
82 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener/bin</outputDirectory>
85 <directory>src/main/scripts</directory>
87 <include>*.sh</include>
89 <filtering>false</filtering>
96 <id>copy-properties</id>
98 <goal>copy-resources</goal>
99 </goals><!-- here the phase you need -->
100 <phase>validate</phase>
102 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
105 <directory>src/main/properties</directory>
109 <filtering>false</filtering>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-dependency-plugin</artifactId>
126 <phase>initialize</phase>
130 <groupId>org.onap.ccsdk.sli.northbound</groupId>
131 <artifactId>ueb-listener</artifactId>
133 <version>${ccsdk.sli.northbound.version}</version>
136 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener</outputDirectory>
137 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
138 <overWriteReleases>true</overWriteReleases>
139 <overWriteSnapshots>true</overWriteSnapshots>
146 <artifactId>exec-maven-plugin</artifactId>
147 <groupId>org.codehaus.mojo</groupId>
148 <version>1.5.0</version>
154 <id>change shell permissions</id>
155 <phase>process-sources</phase>
160 <executable>/usr/bin/find</executable>
162 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
163 <argument>-name</argument>
164 <argument>*.sh</argument>
165 <argument>-exec</argument>
166 <argument>chmod</argument>
167 <argument>+x</argument>
168 <argument>{}</argument>
169 <argument>;</argument>
185 <groupId>io.fabric8</groupId>
186 <artifactId>docker-maven-plugin</artifactId>
187 <version>0.28.0</version>
188 <inherited>false</inherited>
192 <name>${image.name}</name>
194 <cleanup>try</cleanup>
195 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
196 <dockerFile>Dockerfile</dockerFile>
198 <tag>${project.docker.latestminortag.version}</tag>
199 <tag>${project.docker.latestfulltag.version}</tag>
200 <tag>${project.docker.latesttagtimestamp.version}</tag>
208 <id>generate-images</id>
209 <phase>package</phase>
217 <!--<phase>deploy</phase> -->
218 <phase>${docker.push.phase}</phase>