What happened
I use SBT and I am trying to download the fluvio java client. This is in my build.sbt file
ThisBuild / credentials += Credentials("Artifactory Realm", "maven.pkg.github.com", "my-user-name", "my accees token with read packages role")
ThisBuild / resolvers += Resolver.url("fluvio", url("https://maven.pkg.github.com/infinyon/fluvio-client-java"))(Resolver.ivyStylePatterns)
libraryDependencies += "com.infinyon" % "fluvio-16" % "0.12.11"
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 message
maven 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
- Are you using a local Fluvio install? Minikube? Fluvio Cloud? - yes
- What version of Fluvio are you using?
fluvio version
How to reproduce it (as minimally and precisely as possible)
Steps to reproduce the behavior:
- Run the commands
sbt new scala/scala3.g8
##Give a name to project, say fluvio-test
cd fluvio-test
- Open the file
build.sbt and paste the following
val scala3Version = "3.1.2"
ThisBuild / credentials += Credentials("Artifactory Realm", "maven.pkg.github.com", "<username>", "<access-token>")
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",
scalaVersion := scala3Version,
libraryDependencies ++= Seq(
"com.infinyon" % "fluvio-16" % "0.12.11",
"org.scalameta" %% "munit" % "0.7.29" % Test
)
)
- Run
sbt compile in the root folder of the project.
Additional context
Add any other context about the problem here.
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.xmlon 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 versionHow to reproduce it (as minimally and precisely as possible)
Steps to reproduce the behavior:
build.sbtand paste the followingsbt compilein the root folder of the project.Additional context
Add any other context about the problem here.