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

Cannot resolve version from Bintray nor Maven #143

Closed
lostiniceland opened this issue Jul 31, 2018 · 3 comments
Closed

Cannot resolve version from Bintray nor Maven #143

lostiniceland opened this issue Jul 31, 2018 · 3 comments

Comments

@lostiniceland
Copy link

I would like to use the scala-kafka-client for Scala 2.12. Unfortunately Gradle cannot download the artefacts. It seems some metadata on the repos is broken

* What went wrong:
Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve net.cakesolutions:scala-kafka-client_2.12:1.1.0.
  Required by:
      project :
   > Could not resolve net.cakesolutions:scala-kafka-client_2.12:1.1.0.
      > Could not parse POM https://bintray.com/cakesolutions/maven/net/cakesolutions/scala-kafka-client_2.12/1.1.0/scala-kafka-client_2.12-1.1.0.pom
         > Markup im Dokument vor dem Root-Element muss ordnungsgemäß formatiert sein.
> Could not resolve net.cakesolutions:scala-kafka-client-akka_2.12:1.1.0.
  Required by:
      project :
   > Could not resolve net.cakesolutions:scala-kafka-client-akka_2.12:1.1.0.
      > Could not parse POM https://bintray.com/cakesolutions/maven/net/cakesolutions/scala-kafka-client-akka_2.12/1.1.0/scala-kafka-client-akka_2.12-1.1.0.pom
         > Markup im Dokument vor dem Root-Element muss ordnungsgemäß formatiert sein.

The dependencies are specified as usual

repositories {
  mavenCentral()
  maven {
    url 'https://bintray.com/cakesolutions/maven'
  }
}

dependencies {
  ...
  compile group: 'net.cakesolutions', name: 'scala-kafka-client_2.12', version: '1.1.0'
  compile group: 'net.cakesolutions', name: 'scala-kafka-client-akka_2.12', version: '1.1.0'
  testCompile group: 'net.cakesolutions', name: 'scala-kafka-client-testkit_2.12', version: '1.1.0'
}
@simonsouter
Copy link
Contributor

Maybe you want to try 'https://dl.bintray.com/cakesolutions/maven' for the repository url.

@lostiniceland
Copy link
Author

lostiniceland commented Aug 1, 2018

Thanks. Have to test later this day since my proxy wont allow bintray :-/

Anyway, the artifact is available on Maven Central as well.
https://mvnrepository.com/artifact/net.cakesolutions/scala-kafka-client_2.12/1.1.0

EDIT: Sorry, didnt realize the localized error-message from Gradle. The error says (for Maven and Bintray) that the pom is malformed before the root-element

@lostiniceland
Copy link
Author

Well, after using the url provided by @simonsouter Gradle was able to download. Still, I would prefer Maven-Central because this is already mirrored in our company-proxy.

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

No branches or pull requests

2 participants