Repchain配置过程28876
这是Repchain区块链项目的配置安装过程,地址是https://gitee.com/BTAJL/repchain/tree/RepChain_1.1.0_RC/,版本是Repchain_1.1.0_RC。
安装环境
Zulu-OpenJDK 11.0.8Scala 2.12.12Sbt 1.3.5IDEA 2020.3Repchain_1.1.0_RC
安装步骤
将https://gitee.com/BTAJL/repchain/tree/RepChain_1.1.0_RC/中的项目下载到本地,并解压检查sbt和scala的根目录是否加入到环境变量中配置Sbt的镜像,即在C:\Users\你的用户名\.sbt目录下创建repositories文件,并写入
[repositories]localpublic: http://maven.aliyun.com/nexus/content/groups/public/typesafe:http://dl.bintray.com/typesafe/ivy-releases/ , [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnlyivy-sbt-plugin:http://dl.bintray.com/sbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]sonatype-oss-releasessonatype-oss-snapshots
在sbt的根目录\sbt\conf\sbtconfig.txt中加入-Dsbt.override.build.repos=true
sbt在项目的根目录下下载项目依赖项(命令行)。
compile进行编译(上面配置的镜像速度很快)
在cmd中run第二个入口,会得到报错信息,会有一些模块没导入,但我们可以通过第7步来解决
20:53:55.604 [Repchain-akka.actor.default-dispatcher-16] ERROR akka.actor.OneForOneStrategy - 'void org.fusesource.leveldbjni.internal.NativeOptions.init()'akka.actor.ActorInitializationException: akka://Repchain/user/modulemanager: exception during creation
将项目导入到idea中进行构建,由于idea会使用scala插件自带的sbt插件,会下载很多的库,而且速度较慢,我们将其jdk修改为自己的openjdk并且启动器改为自己下载的sbt安装目录的启动器,如下图所示,不同步就不会构建成功,等待同步完毕,点击构建按钮。