C:\Users\rajnish.kumar>sbt about
"C:\Users\rajnish.kumar\.sbt\preloaded\org.scala-sbt\sbt\"1.0.4"\jars\sbt.jar"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading project definition from C:\Users\rajnish.kumar\project
[info] Set current project to rajnish-kumar (in build file:/C:/Users/rajnish.kumar/)
[info] This is sbt 0.13.15
[info] The current project is {file:/C:/Users/rajnish.kumar/}rajnish-kumar 0.1-SNAPSHOT
[info] The current project is built against Scala 2.10.6
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.10.6
C:\Users\rajnish>sbt about
"C:\Users\rajnish\.sbt\preloaded\org.scala-sbt\sbt\"1.0.4"\jars\sbt.jar"
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from C:\Users\rajnish\project
[info] Set current project to rajnish (in build file:/C:/Users/rajnish/)
[info] This is sbt 1.0.4
[info] The current project is {file:/C:/Users/rajnish/}rajnish 0.1-SNAPSHOT
[info] The current project is built against Scala 2.12.4
[info] Available Plugins: sbt.plugins.IvyPlugin, sbt.plugins.JvmPlugin, sbt.plugins.CorePlugin, sbt.plugins.JUnitXmlReportPlugin, sbt.plugins.Giter8TemplatePlugin
[info] sbt, sbt plugins, and build definitions are using Scala 2.12.4
为了在构建项目时真正强制使用SBT版本,您应该在project/build.properties
文件中指定该版本。下面是我的项目中这个文件的内容:
sbt.version = 1.0.4
如果我导航到根项目文件夹并运行sbt about
,它会显示
[info] This is sbt 1.0.4
[info] The current project is {file:/ssd2/projects/ADMP/}admp 1.0
[info] The current project is built against Scala 2.11.9
如果将build.properties
中的版本更改为
sbt.version = 1.0.1
[info] This is sbt 1.0.1
[info] The current project is {file:/ssd2/projects/ADMP/}admp 1.0
[info] The current project is built against Scala 2.11.9
手动安装 SBT Unix 将sbt-launch.jar包放到目录 ~/bin中 创建一个运行jar包的脚本 ~/bin/sbt, 脚本内容为: SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" java $SBT_OPTS -jar `dirname $0`/sbt-l
Linux 平台安装 SBT 通过通用的包安装 下载 ZIP 包或 TGZ 包解压 RPM 和 DEB RPM包 DEB包 注意: 请将任何和这两个包相关的问题反馈到sbt-launcher-package项目 issue Gentoo In the official tree there is no ebuild for sbt. But there are ebuilds to merge s
Windows 平台安装 SBT 通过 Windows 安装包安装 下载 msi 安装包并安装 通过通用的包安装 下载 ZIP 包或 TGZ 包解压 手动安装 参考手动安装 SBT
Mac 平台安装 SBT 通过第三方的包安装 注意:第三方的包可能没有提供最新版本,可以将相关任何问题反馈给包相关的维护者 通过 Macports 安装 $ port install sbt 通过 Homebrew 安装 $ brew install sbt 通过通用的包安装 下载 ZIP 包或 TGZ 包解压 手动安装 参考手动安装 SBT
创建一个用 SBT 构建的工程大致需要如下几步: 安装 SBT 并创建一个启动脚本 创建一个简单的项目,以 Hello World 为例 创建项目目录和项目代码相关文件 配置项目构建定义文件 参考运行 SBT章节学习SBT如何运行 参考配置文件 .sbt章节学习更多的 SBT 相关定义 基本上SBT的安装可以归纳为一个 Jar 文件和一个启动脚本,但是依赖于具体的平台,我们提供了几种平台的安装步骤
在运行这个命令时,我能够安装其他的pip库而不是pycopg2--pip install psycopg2。我使用的是Azure Linux VM-Ubuntu18.04LTS,并在settings.py中设置了数据库配置。以下是一个问题: 错误:无效命令“BDIST_WHEAL” psycopg2生成轮失败,运行setup.py clean for psycopg2生成psycopg2失败,安装