assembly时,标识mainClass

This commit is contained in:
brightestboy 2020-11-17 17:22:25 +08:00
parent 9606b3bb5a
commit b8d8f99e2c
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// put this at the top of the file
// 这个是打包之后jar包的名字
assemblyJarName in assembly := "RepChain.jar"
//mainClass in assembly := Some("rep.app.Repchain")
// 这个作用是在打包的时候,跳过测试
test in assembly := {}

View File

@ -101,4 +101,4 @@ fork in run := true
javaOptions in run ++= Seq("-Dlogback.configurationFile=conf/logback.xml")
mainClass in (Compile, run) := Some("rep.app.Repchain")
mainClass in packageBin := Some("rep.app.Repchain_Single")
mainClass in (Compile, packageBin) := Some("rep.app.Repchain")