sbt

Spark, sbt package — No TypeTag available

人走茶凉 提交于 2019-12-24 07:17:04
问题 I am trying to build a simple TFIDF vectorizer in Spark and compile to jar to test it locally. However, I keep getting No TypeTag available for (Int, String). Here is my code: package com.valiant.ml import org.apache.spark.sql.SparkSession import org.apache.spark.ml.feature.{HashingTF, IDF, Tokenizer, StopWordsRemover} object TextClassification { def main(args: Array[String]) { val spark = SparkSession .builder .appName("TextClassification") .getOrCreate() val sentenceData = spark

Sbt Error retrieving required libraries

霸气de小男生 提交于 2019-12-24 05:59:48
问题 I tried updating sbt to 0.13.15, and now whenever i try to run sbt i get the following error. I'm not behind any proxy and the .pom link mentioned in the error downloads without a problem in the browser. Before upgrade sbt 0.13.7 worked without any problem for me. I'm on windows 10. Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 Getting org.scala-sbt sbt 0.13.15 (this may take some time)... :: problems summary :: :::: WARNINGS problem

Solution for debugging DCEVM enabled sbt-scala applications in IntelliJ IDEA

廉价感情. 提交于 2019-12-24 05:31:14
问题 I use DCEVM to reload classes in my Scala application. Sbt has a nice feature that it can auto-compile classes when their source code changes. So what I do is I open up two sbt instances and I run ~;compile;copy-resources in the first instance to auto-compile, and run in the second instance. To debug, I can use the remote debugger tool in IntelliJ that works pretty well except for one (but important) thing: whenever sbt reloads a class, IntelliJ no longer stops at break points. I have to

Questions about installing Deadbolt on Play 2.2.1

不羁岁月 提交于 2019-12-24 05:10:25
问题 As stated here if I put the resolvers in plugins.sbt Play doesn't see them. But it works if I move them in build.sbt . Is there a reason? Another problem: if there isn't the file play.plugins I get this error: "**Exception:** The Deadbolt Java plugin was not registered, or is disabled. Please check your conf/play.plugins file." But it isn't written in any installation guide that play.plugins is needed to install Deadbolt (maybe it was needed for older version). source 1 source 2 In conclusion

SBT plugin — execute custom task before compilation

依然范特西╮ 提交于 2019-12-24 04:21:57
问题 I've just written my first SBT Autoplugin which has a custom task that generates a settings file (if the file is not already present). Everything works as expected when the task is explicitly invoked, but I'd like to have it automatically invoked prior to compilation of the project using the plugin (without having the project modify it's build.sbt file). Is there a way of accomplishing this, or do I somehow need to override the compile command? If so, could anyone point me to examples of

org.scala-sbt#sbt;0.12.3: not found

不羁岁月 提交于 2019-12-24 03:59:08
问题 Please help. I have fought with that for several days but still no luck :( Tried to add some "resolvers" etc. But I have no any right direction to move along. Looks like no org.scala-sbt#sbt;0.12.3 but i can access http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivy.xml using my browser (so artifact is available). I'm behind the proxy server btw, but I have a feeling that doesn't matter ... Here is a log: [info] Loading project definition from C:\proj\blogger

How to copy/clone a maven2 repository server

妖精的绣舞 提交于 2019-12-24 03:49:12
问题 I want to create a local maven2 repository so we can download dependencies faster. we use sbt what is the simplest way to take all or some depedencies from http://oss.sonatype.org/content/repositories/releases and put it in our server I was thinking of a script to download some jars and put it in a sftp server and use sftp resolver with sbt https://github.com/harrah/xsbt/wiki/Resolvers 回答1: A pretty simple way would be to install a repository manager. A popular one is Sonatype Nexus (the

When is there a sbt version for 2.13?

99封情书 提交于 2019-12-24 03:48:05
问题 I would like to develop a sbt plugin that has dependencies that are only available for Scala 2.13 . I found on https://github.com/sbt/sbt/issues/5032 this list: SBT 0.x runs only on Scala 2.10.x SBT 1.x runs only on Scala 2.12.x SBT 2.x will run only on Scala 2.13.x or 3.0.x SBT 3.x will run only on Scala 3.0.x or Scala 3.1.x Where the last two lines was a guess by the author mr-git . However I did not find any other glue if there is actually a version for Scala 2.13 . Does anybody know?

How to avoid re-compiling generated source code

拜拜、爱过 提交于 2019-12-24 03:32:12
问题 Generating boilerplate source code with sbt works fine: sourceGenerators in Compile <+= sourceManaged in Compile map { srcDir => DslBoilerplate.generate(srcDir, Seq( "path/to/a/definition/file" )) } When I run sbt compile this also compiles the generated source code files, thus producing some class files. I just don't want the generated source code to be re-compiled every time I re-compile the project during development. So, from the class files I made a jar file and used this instead of the