【问题标题】:grails prject builds on mac but not on linuxgrails prject 在 mac 上构建,但不在 linux 上
【发布时间】:2013-06-23 17:43:38
【问题描述】:

我有一个 grails 应用程序,可以在我的 mac (10.8.4) 上构建,但不能在我的 linux 机器上构建(Red Hat Enterprise Linux Server 版本 6.3 (Santiago))。我在 linux 上收到以下错误:

export JAVA_HOME=/usr/java/jdk1.6.0_17
grails compile
| Environment set to development.....
> You currently already have a version of the plugin installed [webxml-1.4.1]. Do you want to update to [webxml-1.4]? [y,n] y
| Resolving plugin JAR dependencies.....
> You currently already have a version of the plugin installed [webxml-1.4]. Do you want to update to [webxml-1.4.1]? [y,n] y
| Resolving plugin JAR dependencies.....
| Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/data1/app/project/target/2.1.4/plugins/webxml-1.4/src/groovy" does not exist! (Use --stacktrace to see the full trace)

堆栈跟踪没有提供更多有用的信息。我没有在我的 Mac 上得到这个。两个系统都有 grails 2.1.4。我只看到 mac 有 java 1.6.0_51,而不是 linux 上的 1.6.0_17,但它似乎不太可能是问题的根源。有什么建议可以解决这个问题吗?

【问题讨论】:

    标签: linux macos grails


    【解决方案1】:

    手动清理/data1/app/project/target/2.1.4/plugins/,然后尝试运行
    grails clean && grails compile

    如果您有任何关于webxml 的提示,请选择no

    【讨论】:

    • 谢谢,它成功了。我还发现了这个answer,关于如何在非交互模式下进行这项工作。
    猜你喜欢
    • 2019-10-15
    • 2020-05-23
    • 2012-04-18
    • 2020-08-16
    • 2020-11-23
    • 2021-05-23
    • 2016-01-06
    • 2020-09-15
    • 1970-01-01
    相关资源
    最近更新 更多