sbt

Access maven repo over https in sbt

怎甘沉沦 提交于 2020-05-29 01:30:42
问题 I have a java project which uses sbt(scala) for build. Up until yesterday this was working, but today I am seeing an issue in pulling a repo from maven esolving org.codehaus.plexus#plexus-component-api;1.0-alpha-16 ... [error] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom [warn] module not found: org.codehaus.plexus#plexus-component-api;1.0-alpha-16 [warn] ==== typesafe-ivy-releases:

Access maven repo over https in sbt

有些话、适合烂在心里 提交于 2020-05-29 01:30:32
问题 I have a java project which uses sbt(scala) for build. Up until yesterday this was working, but today I am seeing an issue in pulling a repo from maven esolving org.codehaus.plexus#plexus-component-api;1.0-alpha-16 ... [error] SERVER ERROR: HTTPS Required url=http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-component-api/1.0-alpha-16/plexus-component-api-1.0-alpha-16.pom [warn] module not found: org.codehaus.plexus#plexus-component-api;1.0-alpha-16 [warn] ==== typesafe-ivy-releases:

Can't fetch plugins from repositories with scala's sbt

谁说我不能喝 提交于 2020-05-28 03:21:10
问题 I try to compile/build scala project with sbt, there are two plugins mentioned in project/plugins.sbt: addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.17") addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.4") Error while importing sbt project: [error] sbt.librarymanagement.ResolveException: download failed: com.typesafe.play#sbt-plugin;2.6.17!sbt-plugin.jar [error] download failed: com.typesafe.sbt#sbt-native-packager;1.3.4!sbt-native- packager.jar Seems that problem in

How I can list all sbt dependencies?

て烟熏妆下的殇ゞ 提交于 2020-05-25 17:14:12
问题 I need to list all sbt dependencies in order to check if already exists a debian package (I also notice that there is a DEB package but it seems that external dependencies are not packaged). At the moment I did a list of sbt dependencies with the following steps: Install sbt manually I created a simple script that extract all jar files in ~/.ivi2 directory (excluding sbt jar). Here the result of the execution: Group;Artifact;Artifact+Version org.scala-lang;jline;jline-2.10.5 org.scala-lang

Is there a simple way to specify a global dependency exclude in SBT

廉价感情. 提交于 2020-05-24 21:06:07
问题 How would you exclude a transitive dependency globally? My project depends on a lot of the Twitter libraries or on libraries that depend on the Twitter libraries. I don't want slf4j-jdk14 in my classpath, no matter what (I use logback as slf4j binding). Currently I do this: "com.twitter" %% "finagle-thriftmux" % "6.16.0" exclude("org.slf4j", "slf4j-jdk14") but every time someone adds another dependency that uses slf4j-jdk14 I might get it back into the classpath. 回答1: Since sbt 0.13.8 In sbt

How to alias a sequence of tasks?

二次信任 提交于 2020-05-24 20:23:39
问题 I have custom tasks in my SBT (0.12.2) project. Let's call them a , b and c . So when I'm in the interactive mode of SBT I can just type a and the task associated with a is executed. I also can type ;a;b;c and the three tasks are executed in sequence; the same way something like ;clean;compile would do. What I also can do from the interactive shell is create an alias to run them all: alias all=;a;b;c . Now when I type all the tasks are executed in an obvious manner. What I'm trying to achieve

IntelliJ Cannot Import sbt Project

梦想与她 提交于 2020-05-24 08:09:01
问题 I have upgraded IntelliJ to version CE 2017.3 from a CE 2017.2.5, and now I cannot build my sbt project. The build gets stuck on the first step: "Build: sync MyProjName: syncing... dump project structure from sbt" I have deleted the .idea directory and the the MyProjName/project/target directory. I did an sbt build from the command line, which worked. Then I started IntelliJ again and tried to import MyProjName/build.sbt as a project. I have also logged out/in. Did this several times. The

IntelliJ Cannot Import sbt Project

自古美人都是妖i 提交于 2020-05-24 08:08:27
问题 I have upgraded IntelliJ to version CE 2017.3 from a CE 2017.2.5, and now I cannot build my sbt project. The build gets stuck on the first step: "Build: sync MyProjName: syncing... dump project structure from sbt" I have deleted the .idea directory and the the MyProjName/project/target directory. I did an sbt build from the command line, which worked. Then I started IntelliJ again and tried to import MyProjName/build.sbt as a project. I have also logged out/in. Did this several times. The

IntelliJ Cannot Import sbt Project

假装没事ソ 提交于 2020-05-24 08:08:26
问题 I have upgraded IntelliJ to version CE 2017.3 from a CE 2017.2.5, and now I cannot build my sbt project. The build gets stuck on the first step: "Build: sync MyProjName: syncing... dump project structure from sbt" I have deleted the .idea directory and the the MyProjName/project/target directory. I did an sbt build from the command line, which worked. Then I started IntelliJ again and tried to import MyProjName/build.sbt as a project. I have also logged out/in. Did this several times. The

Dependencies for Spark-Streaming and Twiter-Streaming in SBT

安稳与你 提交于 2020-05-16 03:11:11
问题 I was trying to use the following dependencies in my build.sbt, but it keeps giving "unresolved dependency" issue. libraryDependencies += "org.apache.bahir" %% "spark-streaming-twitter_2.11" % "2.2.0.1.0.0-SNAPSHOT" libraryDependencies += "org.apache.spark" %% "spark-streaming" % "2.2.0" I'm using Spark 2.2.0. What are the correct dependencies? 回答1: The question was posted a while ago, but I ran into the same problem this week. Here is the solution for those who still have the problem : As