Playframework 使用ScalaDoc生成的Play Framework DIST失败
我正在使用Play 2.5.1。我已经包括了build.sbt和错误。我也在使用Jooq,在那里我生成了一些代码,我不确定这是否是导致问题的原因 使用activator,我清理、编译、打包,然后运行dist。dist是我失败的地方。这会阻碍我的应用程序的部署吗 下面是我的错误Playframework 使用ScalaDoc生成的Play Framework DIST失败,playframework,jooq,Playframework,Jooq,我正在使用Play 2.5.1。我已经包括了build.sbt和错误。我也在使用Jooq,在那里我生成了一些代码,我不确定这是否是导致问题的原因 使用activator,我清理、编译、打包,然后运行dist。dist是我失败的地方。这会阻碍我的应用程序的部署吗 下面是我的错误 [myproj] $ dist [info] Wrote /home/me/git/myproj/target/scala-2.11/myproj_2.11-1.0-SNAPSHOT.pom [info] Packagin
[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
谢谢你的帮助 报告很奇怪,但这看起来不像scaladoc错误,而是编译错误。您是否能够在本地运行该项目?如果运行
sbt clean compile
,会发生什么情况?我正在使用Activator在终端中进行清理、编译、打包和dist。否则,我将从Intellij运行我的项目,项目运行良好(从Intellij和使用activator run的终端)。我将尝试删除Jooq,看看是否会出现相同的错误。我在我的项目中尝试了完全相同的步骤,这些步骤很相似,但不包括Jooq,并且成功了。我能够运行activator,然后进行清理、编译、打包和分发。没有问题。然后,我在我当前的项目中运行了完全相同的命令,dist这次工作了。我不知道为什么这次成功了,但其他的都没有。我会留意的。感谢您的反馈。报告很奇怪,但这看起来不像scaladoc错误,而是编译错误。您是否能够在本地运行该项目?如果运行sbt clean compile
,会发生什么情况?我正在使用Activator在终端中进行清理、编译、打包和dist。否则,我将从Intellij运行我的项目,项目运行良好(从Intellij和使用activator run的终端)。我将尝试删除Jooq,看看是否会出现相同的错误。我在我的项目中尝试了完全相同的步骤,这些步骤很相似,但不包括Jooq,并且成功了。我能够运行activator,然后进行清理、编译、打包和分发。没有问题。然后,我在我当前的项目中运行了完全相同的命令,dist这次工作了。我不知道为什么这次成功了,但其他的都没有。我会留意的。谢谢你的反馈。