OParent deps not downloaded by children 99/9699/2
authorAnaël Closson <ac2550@intl.att.com>
Thu, 31 Aug 2017 15:03:05 +0000 (17:03 +0200)
committerAnaël Closson <ac2550@intl.att.com>
Mon, 4 Sep 2017 08:18:18 +0000 (10:18 +0200)
When compiling a project that use OParent as parent project, despite
the usage of ONAP nexus repositories in the project repositories
configuration, the dependencies of org.onap.oparent:oparent are only
searched on maven central which results in build failure for those
projects.

Issue-Id: INT-128
Change-Id: Iba9b92cc563685ffe9454d824191028b357bc9f1
Signed-off-by: Anaël Closson <ac2550@intl.att.com>
oparent/pom.xml

index 820e8e2..ae98f2b 100644 (file)
     <!-- If following file exist, auto-generation of sdk will be done -->
     <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
   </properties>
+  <repositories>
+    <repository>
+      <id>central</id>
+      <name>Maven 2 repository 2</name>
+      <url>http://repo2.maven.org/maven2/</url>
+    </repository>
+    <repository>
+      <id>ecomp-releases</id>
+      <name>ONAP Release Repository</name>
+      <url>https://nexus.onap.org/content/repositories/releases/</url>
+    </repository>
+    <repository>
+      <id>ecomp-snapshots</id>
+      <name>ONAP Snapshot Repository</name>
+      <url>https://nexus.onap.org/content/repositories/snapshots/</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+    </repository>
+  </repositories>
   <profiles>
     <profile>
       <id>generate-json</id>