Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java client installation fails due to missing packages upstream #87

Open
turtleDev opened this issue Jul 11, 2024 · 0 comments
Open

Java client installation fails due to missing packages upstream #87

turtleDev opened this issue Jul 11, 2024 · 0 comments

Comments

@turtleDev
Copy link
Contributor

turtleDev commented Jul 11, 2024

Description
Following the steps to install the java client here, I ran into the following error:

> Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileJava'.
> Could not resolve all files for configuration ':app:compileClasspath'.
   > Could not find io.odpf:raccoon:0.1.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/io/odpf/raccoon/0.1.5/raccoon-0.1.5.pom
     Required by:
         project :app

Taking a look at the maven repository, I can't find io.raystack.raccoon, However I can locate io.odpf.raccoon.
https://mvnrepository.com/artifact/io.odpf/raccoon

The version available is 0.1.5-rc instead of 0.1.5 as stated in the docs.

To Reproduce

$ mkdir java-raccoon-example
$ cd java-raccoon-example
$ gradle init --type=java-application
$ vim app/build.gradle  # add "implementation group: 'io.raystack', name: 'raccoon', version: '0.1.5'" to dependencies
# vim app/src/main/java/org/example/App.java # add "import io.raystack.raccoon;"
$ gradle build
> Task :app:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileJava'.
> Could not resolve all files for configuration ':app:compileClasspath'.
   > Could not find io.odpf:raccoon:0.1.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/io/odpf/raccoon/0.1.5/raccoon-0.1.5.pom
     Required by:
         project :app

* Try:
> If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
1 actionable task: 1 executed

Expected behavior
The java application should compile without any dependency errors.

Additional context
Gradle Version:


------------------------------------------------------------
Gradle 8.9
------------------------------------------------------------

Build time:    2024-07-11 14:37:41 UTC
Revision:      d536ef36a19186ccc596d8817123e5445f30fef8

Kotlin:        1.9.23
Groovy:        3.0.21
Ant:           Apache Ant(TM) version 1.10.13 compiled on January 4 2023
Launcher JVM:  11.0.23 (Debian 11.0.23+9-post-Debian-1deb11u1)
Daemon JVM:    /usr/lib/jvm/java-11-openjdk-amd64 (no JDK specified, using current Java home)
OS:            Linux 5.10.0-30-amd64 amd64

Java Version:

openjdk 11.0.23 2024-04-16
OpenJDK Runtime Environment (build 11.0.23+9-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.23+9-post-Debian-1deb11u1, mixed mode, sharing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 2024
Development

No branches or pull requests

1 participant