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/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.1.4-SNAPSHOT</version>
11 <groupId>org.onap.sdnc.oam</groupId>
12 <artifactId>installation-ueb-listener</artifactId>
13 <version>2.1.4-SNAPSHOT</version>
14 <packaging>pom</packaging>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates ueb-listener Docker container</description>
23 <image.name>onap/sdnc-ueb-listener-image</image.name>
24 <sdnc.project.version>${project.version}</sdnc.project.version>
25 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
26 <ccsdk.docker.version>1.1.3</ccsdk.docker.version>
27 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
28 <docker.push.phase>deploy</docker.push.phase>
29 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
37 <groupId>org.codehaus.groovy.maven</groupId>
38 <artifactId>gmaven-plugin</artifactId>
41 <phase>validate</phase>
46 <source>${basedir}/../TagVersion.groovy</source>
55 <artifactId>maven-resources-plugin</artifactId>
56 <version>2.6</version>
59 <id>copy-dockerfile</id>
61 <goal>copy-resources</goal>
62 </goals><!-- here the phase you need -->
63 <phase>validate</phase>
65 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
68 <directory>src/main/docker</directory>
70 <include>Dockerfile</include>
72 <filtering>true</filtering>
81 <goal>copy-resources</goal>
82 </goals><!-- here the phase you need -->
83 <phase>validate</phase>
85 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener/bin</outputDirectory>
88 <directory>src/main/scripts</directory>
90 <include>*.sh</include>
92 <filtering>false</filtering>
99 <id>copy-properties</id>
101 <goal>copy-resources</goal>
102 </goals><!-- here the phase you need -->
103 <phase>validate</phase>
105 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
108 <directory>src/main/properties</directory>
112 <filtering>false</filtering>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-dependency-plugin</artifactId>
129 <phase>initialize</phase>
133 <groupId>org.onap.ccsdk.sli.northbound</groupId>
134 <artifactId>ueb-listener</artifactId>
136 <version>${ccsdk.sli.northbound.version}</version>
139 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener</outputDirectory>
140 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
141 <overWriteReleases>true</overWriteReleases>
142 <overWriteSnapshots>true</overWriteSnapshots>
149 <groupId>org.codehaus.mojo</groupId>
150 <artifactId>exec-maven-plugin</artifactId>
151 <version>1.5.0</version>
157 <id>change shell permissions</id>
158 <phase>process-sources</phase>
163 <executable>/usr/bin/find</executable>
165 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
166 <argument>-name</argument>
167 <argument>*.sh</argument>
168 <argument>-exec</argument>
169 <argument>chmod</argument>
170 <argument>+x</argument>
171 <argument>{}</argument>
172 <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>