0

我正在从事一个大型 grails 项目,该项目有来自公司不同部门的大量插件贡献。我搬到了新电脑(mac 电脑),现在无法解决我遇到的问题。

项目使用 grails 2.0.0、groovy 1.8.6 和 java 1.6.0_32。然后我在项目目录(从我的终端)中执行 grails run-app,我收到此错误:

| Compiling 11 source files.
| Error Compilation error: startup failed:
Invalid commandline usage for javac.
javac: invalid flag: -Xlint:-options
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options



1 error

我尝试了所有我想到的东西——更改 java、升级 grails、搜索项目源以获取自定义的 -xlint 参数。没有这样的帮助...

也许任何人都可以提供一些提示来解决这个问题?它适用于项目中的其他人,但我们俩 - 不能在 PC 升级后使这个项目工作。

4

1 回答 1

0

我不认为

-Xlint:-options 

是一个有效的 java 参数:您需要在 grails/java 脚本/环境变量中找到此错字的位置并更正它。

有关正确的 Xlint 参数,请参阅以下内容,如果您确实打算使用它(我怀疑您没有,最好将其全部放在一起) http://marxsoftware.blogspot.com/2010/10/javacs- xlint-options.html

于 2012-06-14T22:23:44.760 回答