I am trying to create a Java Function in Oracle Cloud Infrastructure (OCI) using Maven. However, when
Build Error:
[ERROR] Failed to execute goal on project hello-java4: Could not resolve dependencies for project com.example.fn:hello-java4:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.oracle.oci.sdk:oci-java-sdk-auth:jar:3.36.0: Failed to read artifact descriptor for com.oracle.oci.sdk:oci-java-sdk-auth:jar:3.36.0: Could not transfer artifact com.oracle.oci.sdk:oci-java-sdk-auth:pom:3.36.0 from/to com.springsource.repository.bundles.release (): repository.springsource: Name or service not known
What I Have Tried ? Checked my pom.xml file to make sure the dependencies are correct. Tried using a different version of oci-java-sdk-auth, but the issue persists. Verified my network connectivity to make sure Maven can reach the repository. My pom.xml File:
<project xmlns=".0.0"
xmlns:xsi=";
xsi:schemaLocation=".0.0 .0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.fn</groupId>
<artifactId>hello-java4</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<java.version>17</java.version>
<fdk.version>1.0.200</fdk.version>
<oci.sdk.version>3.36.0</oci.sdk.version>
</properties>
<repositories>
<repository>
<id>oracle-maven</id>
<url>;/url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>false</enabled></snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-auth</artifactId>
<version>${oci.sdk.version}</version>
</dependency>
</dependencies>
</project>
Question:
How can I properly resolve the oci-java-sdk-auth dependency?
Is there a specific repository I need to use for OCI SDK dependencies in Maven?
Am I missing any additional configurations?