我正在使用Play 2.5.1。我已经包含了我的build.sbt和错误。我也在使用Jooq,我生成了一些代码,我不确定是否会导致问题。
使用激活器,我清理,编译,打包,然后运行dist。 Dist对我来说是失败的。这是否会阻止部署我的应用程序?
以下是我的错误。
[myproj] $ dist
[info] Wrote /home/me/git/myproj/target/scala-2.11/myproj_2.11-1.0-SNAPSHOT.pom
[info] Packaging /home/me/git/myproj/target/scala-2.11/myproj_2.11-1.0-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Main Scala API documentation to /home/me/git/myproj/target/scala-2.11/api...
[info] Packaging /home/me/git/myproj/target/scala-2.11/myproj_2.11-1.0-SNAPSHOT-web-assets.jar ...
[info] Done packaging.
[error] /home/me/git/myproj/app/jooq/JooqCodegenStrategy.java:8: not found: type Mode
[error] public String getJavaClassName(Definition definition, Mode mode) {
[error] ^
model contains 352 documentable templates
[error] one error found
[error] (compile:doc) Scaladoc generation failed
[error] Total time: 7 s, completed Apr 22, 2016 5:10:47 PM
[myproj] $
以下是我的build.sbt。
import sbt.Keys._
organization := "com.myproj"
name := "myproj"
scalaVersion := "2.11.7"
version := "1.0-SNAPSHOT"
val appDependencies = Seq(
cache,
javaWs,
javaJdbc,
javaJpa,
"mysql" % "mysql-connector-java" % "5.1.38",
"org.jooq" % "jooq" % "3.7.3",
"org.jooq" % "jooq-meta" % "3.7.3",
"org.jooq" % "jooq-scala" % "3.7.3",
"org.jooq" % "jooq-codegen" % "3.7.3",
"be.objectify" %% "deadbolt-java" % "2.5.0",
"com.feth" %% "play-authenticate" % "0.8.1-SNAPSHOT",
"com.feth" %% "play-easymail" % "0.8.1-SNAPSHOT",
"com.google.code.gson" % "gson" % "2.6.2",
"org.mindrot" % "jbcrypt" % "0.3m",
"org.webjars" % "bootstrap" % "3.2.0",
"org.easytesting" % "fest-assert" % "1.4" % "test",
"org.seleniumhq.selenium" % "selenium-java" % "2.52.0" % "test",
"org.apache.poi" % "poi" % "3.14",
"org.apache.poi" % "poi-ooxml" % "3.14",
"org.ocpsoft.prettytime" % "prettytime" % "4.0.0.Final"
)
resolvers += Resolver.sonatypeRepo("snapshots")
javacOptions ++= Seq("-Xlint:unchecked")
javacOptions ++= Seq("-Xlint:deprecation")
javacOptions ++= Seq("-Xdiags:verbose")
sources in (Compile,doc) := Seq.empty
unmanagedBase := baseDirectory.value / "libs"
lazy val root = project.in(file("."))
.enablePlugins(PlayJava, PlayEbean)
.settings(
libraryDependencies ++= appDependencies
)
includeFilter in (Assets, LessKeys.less) := "main.less"
excludeFilter in (Assets, LessKeys.less) := new PatternFilter("""[_].*\.less""".r.pattern)
routesGenerator := InjectedRoutesGenerator
感谢您的帮助!