Fix staging build 04/86704/2
authorTimoney, Dan (dt5972) <dtimoney@att.com>
Wed, 1 May 2019 12:27:56 +0000 (08:27 -0400)
committerTimoney, Dan (dt5972) <dtimoney@att.com>
Wed, 1 May 2019 14:40:31 +0000 (10:40 -0400)
Update to newly released oparent 2.0.0 to disable staging plugin,
which breaks staging build.

Change-Id: Iaa707b7b6be2d1245ecd1cf00268c8653e40ea08
Issue-ID: SDNC-735
Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
pomba/network-discovery-api/pom.xml
pomba/pom.xml

index d8db0a0..d3db665 100644 (file)
@@ -22,7 +22,7 @@ limitations under the License.
     <parent>
         <groupId>org.onap.oparent</groupId>
         <artifactId>oparent</artifactId>
-        <version>1.2.3</version>
+        <version>2.0.0</version>
         <relativePath/>
     </parent>
 
@@ -50,5 +50,30 @@ limitations under the License.
             <scope>test</scope>
         </dependency>
     </dependencies>
+    <profiles>
+        <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://nexus.onap.org</nexusUrl>
+                            <stagingProfileId>176c31dfe190a</stagingProfileId>
+                            <serverId>ecomp-staging</serverId>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 
 </project>
index 8a91074..23e9d8c 100644 (file)
@@ -22,7 +22,7 @@ limitations under the License.
     <parent>
         <groupId>org.onap.oparent</groupId>
         <artifactId>oparent</artifactId>
-        <version>1.2.3</version>
+        <version>2.0.0</version>
         <relativePath/>
     </parent>
 
@@ -53,4 +53,29 @@ limitations under the License.
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <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://nexus.onap.org</nexusUrl>
+                            <stagingProfileId>176c31dfe190a</stagingProfileId>
+                            <serverId>ecomp-staging</serverId>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>