1 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
2 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>
5 <name>openecomp-sdc-docker-backend</name>
6 <artifactId>openecomp-sdc-docker-backend</artifactId>
7 <packaging>pom</packaging>
10 <groupId>org.openecomp.sdc</groupId>
11 <artifactId>openecomp-sdc-docker-dist</artifactId>
12 <version>1.13.5-SNAPSHOT</version>
16 <docker.image.name>sdc-onboard-backend</docker.image.name>
20 <groupId>org.openecomp.sdc.onboarding</groupId>
21 <artifactId>api-docs</artifactId>
23 <version>${project.version}</version>
26 <groupId>org.openecomp.sdc.onboarding</groupId>
27 <artifactId>onboarding-be</artifactId>
29 <version>${project.version}</version>
36 <activeByDefault>false</activeByDefault>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-clean-plugin</artifactId>
53 <directory>${project.basedir}/artifacts/</directory>
54 <followSymlinks>false</followSymlinks>
56 <include>*.war</include>
57 <include>onboarding_configuration.yaml</include>
58 <include>logback.xml</include>
68 <artifactId>maven-resources-plugin</artifactId>
69 <version>3.0.2</version>
72 <id>copy-resources-war</id>
75 <goal>copy-resources</goal>
78 <outputDirectory>${project.basedir}/artifacts</outputDirectory>
82 ${project.parent.basedir}/../../openecomp-be/tools/swagger-ui/target/api-docs
85 <include>api-docs.war</include>
90 ${project.parent.basedir}/../../openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
93 <include>onboarding-be-${project.version}.war</include>
98 ${project.parent.basedir}/../../openecomp-be/lib/openecomp-sdc-notification-lib/openecomp-sdc-notification-worker/src/main/resources
101 <include>onboarding_configuration.yaml</include>
106 ${project.parent.basedir}/../../catalog-be/src/main/resources/config
109 <include>logback.xml</include>
119 <groupId>io.fabric8</groupId>
120 <artifactId>docker-maven-plugin</artifactId>
122 <verbose>${verbose}</verbose>
123 <apiVersion>${docker.api.version}</apiVersion>
124 <registry>${docker.registry}</registry>
127 <username>${docker.username}</username>
128 <password>${docker.password}</password>
133 <!-- Build backend image -->
135 <name>${docker.namespace}/${docker.image.name}</name>
136 <alias>${docker.image.name}</alias>
138 <cleanup>try</cleanup>
139 <dockerFileDir>${project.basedir}/artifacts</dockerFileDir>
143 ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
145 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-${maven.build.timestamp}</tag>
153 <id>clean-images</id>
154 <phase>pre-clean</phase>
159 <removeAll>true</removeAll>
160 <image>${docker.namespace}/${docker.image.name}</image>
165 <id>generate-images</id>
166 <phase>install</phase>
174 <phase>deploy</phase>
179 <image>${docker.namespace}/${docker.image.name}</image>