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.1.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.4.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 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
23 <docker.push.phase>deploy</docker.push.phase>
24 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
33 <groupId>org.codehaus.groovy.maven</groupId>
34 <artifactId>gmaven-plugin</artifactId>
37 <phase>validate</phase>
43 println project.properties['sdnc.project.version'];
45 if ( project.properties['sdnc.project.version'] != null ) {
46 versionArray = project.properties['sdnc.project.version'].split('\\.');
49 if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT"))
51 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
53 project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
56 println 'New Tag for docker:' + 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/ueb-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>ueb-listener</artifactId>
147 <version>${ccsdk.sli.northbound.version}</version>
150 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/ueb-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>-->
232 <phase>${docker.push.phase}</phase>