[DMI] Fix for DMI merge master Job working
- Configured ECOMP snapshot and release repository for onap dmi and stub
with root.
Issue-ID: CPS-2499
Change-Id: I65aa559e5460b418c1a002a1e486e474500f1d00
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
diff --git a/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml b/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
index 0cdac6e..e513d92 100644
--- a/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
+++ b/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
@@ -31,6 +31,13 @@
<properties>
<app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app>
+
+ <maven.deploy.plugin.version>3.1.2</maven.deploy.plugin.version>
+
+ <!-- ONAP Nexus Repository Configuration -->
+ <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
+ <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
+ <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
</properties>
<dependencies>
@@ -103,6 +110,11 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>${maven.deploy.plugin.version}</version>
+ </plugin>
</plugins>
</pluginManagement>
</build>
@@ -114,7 +126,7 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
- <image.name>onap-dmi-plugin-demo-and-csit-stub</image.name>
+ <image.name>dmi-plugin-demo-and-csit-stub</image.name>
</properties>
<build>
<plugins>
@@ -127,4 +139,18 @@
</build>
</profile>
</profiles>
+
+ <distributionManagement>
+ <repository>
+ <id>ecomp-releases</id>
+ <name>ECOMP Release Repository</name>
+ <url>${onap.nexus.url}${releaseNexusPath}</url>
+ </repository>
+ <snapshotRepository>
+ <id>ecomp-snapshots</id>
+ <name>ECOMP Snapshot Repository</name>
+ <url>${onap.nexus.url}${snapshotNexusPath}</url>
+ </snapshotRepository>
+ </distributionManagement>
+
</project>
\ No newline at end of file