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

Unable to use the plugin - Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.9.4 #1526

Closed
OndrejSpanel opened this issue Oct 25, 2022 · 6 comments

Comments

@OndrejSpanel
Copy link

OndrejSpanel commented Oct 25, 2022

Expected behaviour

When I add addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.4") into project/plugins,sbt as instructed by documentation, the sbt file should still work.

Actual behaviour

Once I have added addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.4"), my SBT gives error when loading. The error is:

sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.9.4

Information

The issue can be reproduced both on my system and on github runners. See log of https://github.com/OpenGrabeso/loctio/actions/runs/3322523336/jobs/5491662284, which also contains additional info about the search:

	Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn] 		com.typesafe.sbt:sbt-native-packager:1.9.4 (sbtVersion=1.0, scalaVersion=2.12)
[warn] 
[warn] 	Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.9.4
[error]   Not found
[error]   Not found
[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.9.4/sbt-native-packager-1.9.4.pom
[error]   not found: /home/runner/.ivy2/localcom.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.4/ivys/ivy.xml
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.4/ivys/ivy.xml
[error]   not found: https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.4/ivys/ivy.xml

The complete project can be seen at https://github.com/OpenGrabeso/loctio/tree/docker

@OndrejSpanel
Copy link
Author

OndrejSpanel commented Oct 25, 2022

Note: when I search for the artifacts on Maven, I am shown this:

https://search.maven.org/artifact/com.github.sbt/sbt-native-packager/1.9.9/jar

Following link shown at the page as Download produces 404 error, though:

https://repo1.maven.org/maven2/com/github/sbt/sbt-native-packager/1.9.9/sbt-native-packager-1.9.9.jar

@guizmaii
Copy link
Contributor

sbtVersion=1.0 🤔

Which version of sbt are you using?

@OndrejSpanel
Copy link
Author

As you can see in the project, I am using 1.7.2 - I have recently upgraded to that, I was using 1.6.1. Project is open source, and it fails not only on my machine, but on GitHub runners as well, see links in the issue.

@OndrejSpanel
Copy link
Author

I have merged your PR, the error is still the same:

https://github.com/OpenGrabeso/loctio/actions/runs/3323086881/jobs/5492987647

Is it possible the plugin artifacts got deleted from Maven servers somehow?

[warn] 	Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
[warn] 		com.typesafe.sbt:sbt-native-packager:1.9.11 (sbtVersion=1.0, scalaVersion=2.12)
[warn] 
[warn] 	Note: Unresolved dependencies path:
[error] sbt.librarymanagement.ResolveException: Error downloading com.typesafe.sbt:sbt-native-packager;sbtVersion=1.0;scalaVersion=2.12:1.9.11
[error]   Not found
[error]   Not found
[error]   not found: https://repo1.maven.org/maven2/com/typesafe/sbt/sbt-native-packager_2.12_1.0/1.9.11/sbt-native-packager-1.9.11.pom
[error]   not found: /home/runner/.ivy2/localcom.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.11/ivys/ivy.xml
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.11/ivys/ivy.xml
[error]   not found: https://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.9.11/ivys/ivy.xml

@guizmaii
Copy link
Contributor

@guizmaii
Copy link
Contributor

@OndrejSpanel I think you can close your issue 🙂

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