Change nexus-staging config
[ccsdk/parent.git] / springboot / springboot1 / pom.xml
index 37d4d0a..3d5cf6f 100755 (executable)
                </profile>
 
                <!-- End of profiles from ONAP oparent -->
+               
+               <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>${onap.nexus.staging.profile-id}</stagingProfileId>
+                                                       <serverId>${onap.nexus.staging.server-id}</serverId>
+                                               </configuration>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
 
        </profiles>
 
                                        </execution>
                                </executions>
                        </plugin>
-                       <plugin>
-                               <groupId>org.sonatype.plugins</groupId>
-                               <artifactId>nexus-staging-maven-plugin</artifactId>
-                               <version>1.6.7</version>
-                               <extensions>true</extensions>
-                               <configuration>
-                                       <nexusUrl>${onap.nexus.url}</nexusUrl>
-                                       <stagingProfileId>176c31dfe190a</stagingProfileId>
-                                       <serverId>ecomp-staging</serverId>
-                               </configuration>
-                       </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>versions-maven-plugin</artifactId>