dcxp / opentelemetry-kotlin

Apache License 2.0
34 stars 2 forks source link

Unauthorized to download maven artifact #149

Open cwrau opened 1 year ago

cwrau commented 1 year ago

When trying to use this library I'm getting a 401;

Could not GET 'https://maven.pkg.github.com/dcxp/opentelemetry-kotlin/io/opentelemetry/kotlin/api/all/1.0.451/all-1.0.451.pom'. Received status code 401 from server: Unauthorized
JochenGuckSnk commented 1 year ago

@cwrau can u please try to add

maven {
   url = uri("https://maven.pkg.github.com/dcxp/opentelemetry-kotlin")
   credentials {
      username =<gitUser>
      password =<PAT>
   }
}

to your project configuration?

cwrau commented 1 year ago

@cwrau can u please try to add

maven {
   url = uri("https://maven.pkg.github.com/dcxp/opentelemetry-kotlin")
   credentials {
      username =<gitUser>
      password =<PAT>
   }
}

to your project configuration?

Mh, haven't tried that yet, but that wouldn't be an acceptable solution as we don't want to force everyone to create a github PAT just for this dependency.

Especially not for CI

JochenGuckSnk commented 1 year ago

The other opportunity would be to publish the artifact on maven central, but i have no experience with this. In addition the project would a new versioning mechanism would be nice. Maybe semantic versioning + gitflow.