Open ashwinbhaskar opened 2 years ago
Thanks for the filing issue. Moving to Java client repo
I was able to make this work by using this sbt plugin. Adding the snippet for someone that is stuck like me and would want to use the plugin instead. Add this to your build.sbt
file
ThisBuild / resolvers += Resolver.githubPackages("infinyon")
ThisBuild / githubTokenSource := TokenSource.Environment("GITHUB_TOKEN") // Make sure you set the environment variable `GITHUB_TOKEN` before starting sbt
What happened I use SBT and I am trying to download the fluvio java client. This is in my build.sbt file
When I compile I get this error
unauthorized: https://maven.pkg.github.com/infinyon/fluvio-client-java/com.infinyon/fluvio-16/0.12.11/ivys/ivy.xml (GitHub Package Registry)
When I navigate to
https://maven.pkg.github.com/infinyon/fluvio-client-java/com.infinyon/fluvio-16/0.12.11/ivys/ivy.xml
on my browser. It asks me to enter username and token. After entering it displays this messagemaven package "com.infinyon.fluvio-16.0.12.11" does not exist under owner "infinyon"
Expected behavior Should allow me to download the client because my auth is correct.
Describe the setup
fluvio version
How to reproduce it (as minimally and precisely as possible) Steps to reproduce the behavior:
build.sbt
and paste the followingThisBuild / credentials += Credentials("Artifactory Realm", "maven.pkg.github.com", "", "")
ThisBuild / resolvers += Resolver.url("fluvio", url("https://maven.pkg.github.com/infinyon/fluvio-client-java"))(Resolver.ivyStylePatterns)
lazy val root = project .in(file(".")) .settings( name := "fluvio-test", version := "0.1.0-SNAPSHOT",
)