Remove duplicate staging 19/85719/1 casablanca 1.4.5 3.0.2-ONAP
authorTimoney, Dan (dt5972) <dtimoney@att.com>
Thu, 18 Apr 2019 20:01:09 +0000 (16:01 -0400)
committerTimoney, Dan (dt5972) <dtimoney@att.com>
Thu, 18 Apr 2019 20:01:09 +0000 (16:01 -0400)
Surround staging config in build profile so that staging plugin is
not run for topmost pom.xml

Change-Id: I71863a7efc68efffc16ea12d70bce27df6f9bcf7
Issue-ID: CCSDK-1166
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
Former-commit-id: 7566807e10aaf852ea75293a3782407fe9ddb7bb

pom.xml

diff --git a/pom.xml b/pom.xml
index a900c75..6063d15 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
                                        <skipTests>false</skipTests>
                                </configuration>
                        </plugin>
-                       <plugin>
-                               <groupId>org.sonatype.plugins</groupId>
-                               <artifactId>nexus-staging-maven-plugin</artifactId>
-                               <version>1.6.7</version>
-                               <extensions>true</extensions>
-                               <configuration>
-                                       <nexusUrl>https://${onap.nexus.host}</nexusUrl>
-                                       <stagingProfileId>${onap.nexus.staging.profile-id}</stagingProfileId>
-                                       <serverId>${onap.nexus.staging.server-id}</serverId>
-                               </configuration>
-                       </plugin>
                </plugins>
        </build>
 
                        <module>installation</module>
                  </modules>
                </profile>
+               <profile>
+                       <id>nexus-staging</id>
+                       <activation>
+                           <property>
+                               <name>!altDeploymentRepository</name>
+                           </property>
+                       </activation>
+                       <build>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.sonatype.plugins</groupId>
+                                               <artifactId>nexus-staging-maven-plugin</artifactId>
+                                               <version>1.6.7</version>
+                                               <extensions>true</extensions>
+                                               <configuration>
+                                                       <nexusUrl>https://${onap.nexus.host}</nexusUrl>
+                                                       <stagingProfileId>176c31dfe190a</stagingProfileId>
+                                                       <serverId>ecomp-staging</serverId>
+                                               </configuration>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
 
        </profiles>
 </project>