इसलिए अब तक मैं अपने स्कैला प्रोजेक्ट को एसबीटी (टाइपएफ़ स्टैक के माध्यम से) संकलित कर रहा हूं। मैं sbt-assembly के माध्यम से अब कई मशीनों में कोड चलाने के लिए चाहता हूं। निम्नलिखित दिशानिर्देशों में, मैंने केवल एक ही बदलाव किया है जो मेरी project/Build.scala
फ़ाइल में था।एसबीटी-असेंबली काम कर रहे
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases",
resolvers += "artifactory" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases",
libraryDependencies += "com.eed3si9n" % "sbt-assembly" % "0.8.3"
जब मैं चलाने sbt compile
हालांकि, मैं इस त्रुटि मिलती है:
sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly/scala_2.9.1/sbt_0.11.2;0.8.3: not found
यहाँ संबंधित हिस्सा है।
मैं क्या गलत कर रहा हूं?
धन्यवाद!
संपादित Build.scala
को उसी फ़ोल्डर में एक build.sbt
फ़ाइल बनाया गया (फ़ोल्डर /project/
है) और उस में इन दो पंक्तियों है:
Seq[Setting[_]](resolvers += "artifactory" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases",
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.8.3"))
अब त्रुटि है:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.8.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.8.3 (sbtVersion=0.11.2, scalaVersion=2.9.1)
[warn]
[error] {file:/Users/myname/current/projectname/project/}default-d7da9a/*:update: sbt.ResolveException: unresolved dependency: com.eed3si9n#sbt-assembly;0.8.3: not found
EDIT 2 एचएम, सफल होने के बाद sbt compile
, एस क्या मैं बस sbt
कंसोल दर्ज करने में सक्षम हूं और assembly
में टाइप कर सकता हूं?
> assembly
[error] Not a valid command: assembly
[error] Not a valid project ID: assembly
[error] Not a valid configuration: assembly
[error] Not a valid key: assembly
[error] assembly
[error]
संपादित 3 जेके समझ में आ गया। GitHub README में निर्दिष्ट build.sbt
जानकारी को जोड़ना था।
"के रूप में जानकारी गिटहब रीडमे में निर्दिष्ट "- लिंक कृपया? – Vasily802