【问题标题】:Not able to compile grails project无法编译 grails 项目
【发布时间】:2014-02-17 11:59:25
【问题描述】:

我无法清理、编译我的个人 grails 项目。 如果我尝试在项目“X_Project”上运行 compile --stacktrace 或 --verbose 会抛出以下错误

执行问题:compile --stacktrace 命令 'GrailsCommand(P/X_Project> --noreloading compile --stacktrace)' 被终止,因为它有一段时间没有产生新的输出。

查看到目前为止产生的输出的详细信息。

如果您认为该命令只是需要更多时间,您可以在 Grails 首选项页面中增加时间限制。

查看菜单 Windows >> 首选项 >> Grails >> 启动

Command: GrailsCommand(P/X_Project> --noreloading compile --stacktrace)
---- System.out ----
Loading Grails 2.2.3
---- System.err ----
Couldn't collect a stacktrace because Grails process was not found
------System.out:-----------
 Loading Grails 2.2.3
------System.err:-----------

无法收集堆栈跟踪,因为未找到 Grails 进程。

我现在有点迷茫。也许有人可以提示我在哪里搜索错误/问题。

正在使用的版本:Grails 2.2.3,Groovy/Grails Tool Suite 版本:3.3.0.RELEASE。

提前谢谢...

【问题讨论】:

    标签: grails


    【解决方案1】:

    我会尝试的第一件事是从控制台自己运行 Grails 项目。确保您的操作系统具有正确的 grails 安装路径。转到项目文件夹并运行:grails run-app

    如果它从控制台运行,那么您知道问题出在 IDE 中。现在您需要做出决定:从控制台运行 Grails 项目或使用 IDE - 您的选择。这是我的 2 美分:

    现在我首先不是 Groovy/Grails Tool Suite 的忠实粉丝。当我使用 Eclipse 时,我习惯于单独安装 Eclipse,然后安装 Groovy & Grails 插件。这种方法允许您拥有一个没有任何限制的“标准”Eclipse 并运行 Groovy & Grails 而不受特定版本的限制。现在说了,你可以试试这个方法。

    如果您不想要 Eclipse,您可以随时使用 IntelliJ - 它与 Grails 配合得非常好。恕我直言,它与 Grails 的工作比 Groovy/Grails Tool Suite 更好。

    【讨论】:

      猜你喜欢
      • 2012-11-08
      • 2022-01-15
      • 2020-12-04
      • 2013-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多