sbt

寒假第九天

那年仲夏 提交于 2020-02-10 14:44:02
寒假第九天   昨天安装了很久了sbt,但是最后以失败结束,做到很晚,就忘了写日记记录了。 接下啦讲述一下我主要遇到的问题有哪些。 首先根据厦门大学大数据林子雨老师的教程,安装sbt但是会出现以下错误: 然后我另找了一个教程 https://blog.csdn.net/u013256816/article/details/53014178 这个教程里面似乎有一个小错误,就是profile文件中环境配置建议用下面这条语句 export SBT_HOME=/usr/local/sbt/sbt (具体路径是自己安装的sbt路径) export PATH=${SBT_HOME}/bin:$PATH 然后出现了下面的信息: 然后网上看到的改正信息是这样的 我是绝望的。。。。。。。。。。。。。。 来源: https://www.cnblogs.com/birdmmxx/p/12290819.html

Idea配置sbt(window环境)

冷暖自知 提交于 2020-02-07 04:17:48
近开发spark项目使用到scala语言,这里介绍如何在idea上使用sbt来编译项目。 开发环境:windows 1. 下载sbt http://www.scala-sbt.org/download.html 我使用的是zip包,下载后解压到d:\tool\目录 2.添加配置 2.1 打开D:\tool\sbt\conf\sbtconfig.txt,在最后添加下面几行配置,注意指定的目录和文件 -Dsbt.ivy.home=D:/tool/sbt/.ivy2 -Dsbt.global.base=D:/tool/sbt/.sbt -Dsbt.repository.config=D:/tool/sbt/conf/repo.properties 第一行sbt.ivy.home指定了本地自定义的repository路径(如果不设置就是默认的用户目录C:\Users\Administrator\.ivy2) 2.2 在D:/tool/sbt/conf/目录下新建repo.properties文件,填写下面内容,指定镜像站的地址: [repositories] local comp-maven: http://repo.data.1verge.net/nexus/content/groups/public/ store_cn: http://maven.oschina.net/content

Forking tests fail because javaOptions seems to be misconfigured

£可爱£侵袭症+ 提交于 2020-02-07 03:45:31
问题 Using Play 2.X, I expect my tests to be forked by default (new way from Play 2.X) and especially well run. However, when using this SBT configuration in my Build.scala , I observe an OOM due to permgen space, like the following: Uncaught exception when running myspecs.AllSpecs: java.lang.OutOfMemoryError: PermGen space sbt.ForkMain$ForkError: PermGen space at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security

Forbidden Error with configuration `publishConfiguration := publishConfiguration.value.withOverwrite(true)` in SBT

被刻印的时光 ゝ 提交于 2020-02-06 07:47:26
问题 I have below build.sbt file. name := "tads-akka-cluster-events" organization := "technorati" version := "0.0.2" scalaVersion := "2.11.12" crossScalaVersions := Seq("2.12.9", "2.13.0") publishMavenStyle := true PB.targets in Compile := Seq( scalapb.gen() -> (sourceManaged in Compile).value ) libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf" credentials += Credentials("Artifactory Realm", "artifactory.svcs.opal.synacor.com"

How to exclude/excludeAll com.google.code.findbugs from a Play application?

家住魔仙堡 提交于 2020-02-06 06:12:54
问题 I have a play2.4.3 application. I'm trying to exclude com.google.code.findbugs library when I distribute my application (using activator dist command). I don't directly include it, here is how I think it's included in the project: http://mvnrepository.com/artifact/com.typesafe.play/play-java_2.10/2.4.3 depends on: http://mvnrepository.com/artifact/org.reflections/reflections/0.9.9 depends on: http://mvnrepository.com/artifact/com.google.code.findbugs/annotations/2.0.1 I want to use sbt's

How to exclude/excludeAll com.google.code.findbugs from a Play application?

女生的网名这么多〃 提交于 2020-02-06 06:12:52
问题 I have a play2.4.3 application. I'm trying to exclude com.google.code.findbugs library when I distribute my application (using activator dist command). I don't directly include it, here is how I think it's included in the project: http://mvnrepository.com/artifact/com.typesafe.play/play-java_2.10/2.4.3 depends on: http://mvnrepository.com/artifact/org.reflections/reflections/0.9.9 depends on: http://mvnrepository.com/artifact/com.google.code.findbugs/annotations/2.0.1 I want to use sbt's

How to exclude/excludeAll com.google.code.findbugs from a Play application?

荒凉一梦 提交于 2020-02-06 06:11:02
问题 I have a play2.4.3 application. I'm trying to exclude com.google.code.findbugs library when I distribute my application (using activator dist command). I don't directly include it, here is how I think it's included in the project: http://mvnrepository.com/artifact/com.typesafe.play/play-java_2.10/2.4.3 depends on: http://mvnrepository.com/artifact/org.reflections/reflections/0.9.9 depends on: http://mvnrepository.com/artifact/com.google.code.findbugs/annotations/2.0.1 I want to use sbt's

2020寒假生活学习日记(三)

主宰稳场 提交于 2020-02-03 12:18:59
安装sbt sbt是一款Spark用来对scala编写程序进行打包的工具,下载地址https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.11/sbt-launch.jar 下载后,执行如下命令拷贝至 /usr/local/sbt 中: 接着在 /usr/local/sbt 中创建 sbt 脚本( vim ./sbt ),添加如下内容: 为 ./sbt 脚本增加可执行权限: 最后运行如下命令,检验 sbt 是否可用 Scala应用程序代码 在终端中执行如下命令创建一个文件夹 sparkapp 作为应用程序根目录: 在 ./sparkapp/src/main/scala 下建立一个名为 SimpleApp.scala 的文件( vim ./sparkapp/src/main/scala/SimpleApp.scala ),添加代码如下: ./sparkapp 中新建文件 simple.sbt( vim ./sparkapp/simple.sbt ),添加内容如下,声明该独立应用程序的信息以及与 Spark 的依赖关系: 为保证 sbt 能正常运行,先执行如下命令检查整个应用程序的文件结构: 我们就可以通过如下代码将整个应用程序打包成 JAR(首次运行同样需要下载依赖包 ): /usr

How to run sbt task on make project in IntelliJ IDEA?

最后都变了- 提交于 2020-02-03 10:20:35
问题 I'm working on a scalajs project. My workflow is: make code changes, make project in IntelliJ, go to sbt and run fastOptJS task to produce js file, go to browser and test. I would like to remove the step of manually running fastOptJS task in sbt and make that happen automatically when I make project in IDEA. Is there any way to do that? UPD: It would be also nice to keep sbt running between fastOptJS calls, cause it takes time for sbt to start. 回答1: You can simply start the JavaScript

How to run sbt task on make project in IntelliJ IDEA?

帅比萌擦擦* 提交于 2020-02-03 10:19:02
问题 I'm working on a scalajs project. My workflow is: make code changes, make project in IntelliJ, go to sbt and run fastOptJS task to produce js file, go to browser and test. I would like to remove the step of manually running fastOptJS task in sbt and make that happen automatically when I make project in IDEA. Is there any way to do that? UPD: It would be also nice to keep sbt running between fastOptJS calls, cause it takes time for sbt to start. 回答1: You can simply start the JavaScript