Fix indentation problem and staging
[clamp.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 57eb804..c51948b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -7,6 +7,12 @@
        <version>1.0.1-SNAPSHOT</version>
        <name>ONAP CLAMP</name>
 
+       <parent>
+               <groupId>org.onap.oparent</groupId>
+               <artifactId>oparent</artifactId>
+               <version>1.0.0-SNAPSHOT</version>
+       </parent>
+
        <description>
            This project build the ONAP CLAMP JAR that contains AJSC + CLAMP code.
 
                                <version>1.6.7</version>
                                <extensions>true</extensions>
                                <configuration>
-                                       <serverId>ossrhajsc</serverId>
-                                       <nexusUrl>https://oss.sonatype.org/</nexusUrl>
-                                       <autoReleaseAfterClose>true</autoReleaseAfterClose>
+                                       <nexusUrl>${nexusproxy}</nexusUrl>
+                                       <stagingProfileId>176c31dfe190a</stagingProfileId>
+                                       <serverId>ecomp-staging</serverId>
                                        <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
                                </configuration>
                        </plugin>
                                                        </buildArgs>
                                                </configuration>
                                        </execution>
+                                       <execution>
+                                               <id>tag-image</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>tag</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <image>onap/clamp</image>
+                                                       <newName>${docker.push.registry}/onap/clamp</newName>
+                                                       <skipDockerTag>${skip.docker.tag}</skipDockerTag>
+                                               </configuration>
+                                       </execution>
                                        <execution>
                                                <id>push-image</id>
                                                <phase>deploy</phase>
                                                        <goal>push</goal>
                                                </goals>
                                                <configuration>
-                                                   <imageName>onap/clamp</imageName>
+                                                       <imageName>${docker.push.registry}/onap/clamp</imageName>
                                                        <skipDockerPush>${skip.docker.push}</skipDockerPush>
                                                </configuration>
                                        </execution>