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

unresolved dependency: com.typesafe.sbt#sbt-native-packager;1.1.4: not found #1100

Closed
shshankar1 opened this issue Feb 11, 2018 · 7 comments
Closed

Comments

@shshankar1
Copy link

shshankar1 commented Feb 11, 2018

Expected behaviour

sbt compile should be successful.

Actual behaviour

Required version is not available in artifactory and giving below error:
[warn] ==== Typesafe repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/com/typesafe/sbt/sbt-native-packager_2.11_0.13/1.1.4/sbt-native-packager-1.1.4.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbt#sbt-native-packager;1.1.4: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::

Information

build.sbt:

addSbtPlugin("com.typesafe.sbt" %% "sbt-native-packager" % "1.1.4")

scalaVersion := "2.11.8"

name := "USparkScala Project"

val sparkVersion = "1.6.0"

resolvers ++= Seq(
  "bintray-sbt-plugin-releases" at "http://dl.bintray.com/content/sbt/sbt-plugin-releases",
  "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
)

libraryDependencies ++= Seq(
  "org.apache.spark" %% "spark-core"              % sparkVersion withSources()
)

/*
mappings in Universal ++= {
 directory(baseDirectory.value/"data") -> ""
}*/
@muuki88
Copy link
Contributor

muuki88 commented Feb 14, 2018

You need to put the

addSbtPlugin("com.typesafe.sbt" %% "sbt-native-packager" % "1.1.4")

into project/plugins.sbt not in your build.sbt. The plugins are added to the project that builds your project :)

I recommend the sbt plugins documenation as a good read :)

@muuki88 muuki88 closed this as completed Feb 14, 2018
@kalikho
Copy link

kalikho commented Apr 16, 2019

@muuki88 @shshankar1
Screenshot from 2019-04-16 09-01-01
I am getting the following error. I have placed the plugins in project/plugins.sbt.

@orientez
Copy link

@muuki88 @shshankar1
Screenshot from 2019-04-16 09-01-01
I am getting the following error. I have placed the plugins in project/plugins.sbt.

I have the same problem after adding plugins in project/plugins.sbt.

@muuki88
Copy link
Contributor

muuki88 commented Jun 24, 2019

Have you tried the latest version 1.3.23 ?

@greebie
Copy link

greebie commented Jul 19, 2019

https://dl.bintray.com/typesafe/ivy-releases/com.typesafe.sbt/sbt-native-packager/scala_2.12/sbt_1.0/1.3.25/ivys/ivy.xml is an invalid url. Is this related to typesafe moving to lightbend?

Going to https://repo.typesafe.com/ tells me that the files are being re-directed. They suggest you include:

Resolver.typesafeIvyRepo("releases") https://repo.typesafe.com/typesafe/ivy-releases/
Resolver.typesafeRepo("releases") https://repo.typesafe.com/typesafe/maven-releases/

for your plugins.

@normana400
Copy link

did the plugin get moved from "com.typesafe.sbt" to "com.github.sbt"?

addSbtPlugin("com.github.sbt" %% "sbt-native-packager" % "1.9.4")

@ekerstens
Copy link

This issue still seems relevant to the current documentation which points users to download from "com.typesafe". Was only able to figure out the install by finding this thread.

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

7 participants