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.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.2.0-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
11 <packaging>pom</packaging>
12 <groupId>org.onap.sdnc.oam</groupId>
13 <artifactId>installation-ueb-listener</artifactId>
14 <version>1.5.0-SNAPSHOT</version>
16 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
17 <description>Creates ueb-listener Docker container</description>
20 <image.name>onap/sdnc-ueb-listener-image</image.name>
21 <sdnc.project.version>${project.version}</sdnc.project.version>
22 <ccsdk.docker.version>0.4-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>
44 println project.properties['sdnc.project.version'];
46 if ( project.properties['sdnc.project.version'] != null ) {
47 versionArray = project.properties['sdnc.project.version'].split('\\.');
50 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
52 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
54 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
57 println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
67 <artifactId>maven-resources-plugin</artifactId>
68 <version>2.6</version>
71 <id>copy-dockerfile</id>
73 <goal>copy-resources</goal>
74 </goals><!-- here the phase you need -->
75 <phase>validate</phase>
77 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
80 <directory>src/main/docker</directory>
82 <include>Dockerfile</include>
84 <filtering>true</filtering>
93 <goal>copy-resources</goal>
94 </goals><!-- here the phase you need -->
95 <phase>validate</phase>
97 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener/bin</outputDirectory>
100 <directory>src/main/scripts</directory>
102 <include>*.sh</include>
104 <filtering>false</filtering>
111 <id>copy-properties</id>
113 <goal>copy-resources</goal>
114 </goals><!-- here the phase you need -->
115 <phase>validate</phase>
117 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
120 <directory>src/main/properties</directory>
124 <filtering>false</filtering>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-dependency-plugin</artifactId>
141 <phase>initialize</phase>
145 <groupId>org.onap.ccsdk.sli.northbound</groupId>
146 <artifactId>ueb-listener</artifactId>
148 <version>${ccsdk.sli.northbound.version}</version>
151 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-listener</outputDirectory>
152 <excludes>bin/**,**/*-javadoc.jar,**/*-sources.jar</excludes>
153 <overWriteReleases>true</overWriteReleases>
154 <overWriteSnapshots>true</overWriteSnapshots>
161 <artifactId>exec-maven-plugin</artifactId>
162 <groupId>org.codehaus.mojo</groupId>
163 <version>1.5.0</version>
169 <id>change shell permissions</id>
170 <phase>process-sources</phase>
175 <executable>/usr/bin/find</executable>
177 <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument>
178 <argument>-name</argument>
179 <argument>*.sh</argument>
180 <argument>-exec</argument>
181 <argument>chmod</argument>
182 <argument>+x</argument>
183 <argument>{}</argument>
184 <argument>;</argument>
200 <groupId>io.fabric8</groupId>
201 <artifactId>docker-maven-plugin</artifactId>
202 <version>0.16.5</version>
203 <inherited>false</inherited>
207 <name>${image.name}</name>
209 <cleanup>try</cleanup>
210 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
211 <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile>
213 <tag>${project.version}</tag>
214 <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
215 <tag>${project.docker.latesttag.version}</tag>
223 <id>generate-images</id>
224 <phase>package</phase>
232 <!--<phase>deploy</phase>-->
233 <phase>${docker.push.phase}</phase>