Adjust docker versions and names

Issue-ID: AAF-995
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: If9f9bd19b34c655d8277b2d981d357812c3371b2
diff --git a/certService/pom.xml b/certService/pom.xml
index 393d3bc..194e2ae 100644
--- a/certService/pom.xml
+++ b/certService/pom.xml
@@ -42,6 +42,8 @@
         <docker.tag>${project.version}</docker.tag>
         <springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs
         </springdoc-openapi-maven-plugin.apiDocsUrl>
+        <docker-maven-plugin.image-name>onap/${project.artifactId}</docker-maven-plugin.image-name>
+        <springdoc-openapi-maven-plugin.version>0.2</springdoc-openapi-maven-plugin.version>
     </properties>
 
     <dependencyManagement>
@@ -190,7 +192,7 @@
             <plugin>
                 <groupId>org.springdoc</groupId>
                 <artifactId>springdoc-openapi-maven-plugin</artifactId>
-                <version>0.2</version>
+                <version>${springdoc-openapi-maven-plugin.version}</version>
                 <executions>
                     <execution>
                         <phase>integration-test</phase>
@@ -237,7 +239,7 @@
                                 </goals>
                                 <configuration>
                                     <removeAll>true</removeAll>
-                                    <image>onap/cert-service</image>
+                                    <image>${docker-maven-plugin.image-name}</image>
                                 </configuration>
                             </execution>
                             <execution>
@@ -269,7 +271,7 @@
                                     <goal>push</goal>
                                 </goals>
                                 <configuration>
-                                    <image>onap/cert-service</image>
+                                    <image>${docker-maven-plugin.image-name}</image>
                                 </configuration>
                             </execution>
                         </executions>
@@ -284,7 +286,7 @@
                             </authConfig>
                             <images>
                                 <image>
-                                    <name>onap/cert-service</name>
+                                    <name>${docker-maven-plugin.image-name}</name>
                                     <alias>cert-service</alias>
                                     <build>
                                         <dockerFile>${project.basedir}/Dockerfile</dockerFile >