0
我正在开发一个大型的Grails项目,该项目有来自公司不同部分的大量插件贡献。我搬到了新电脑(mac one),现在可以解决我遇到的问题。grails -xlint错误阻止运行项目
项目使用grails 2.0.0,groovy 1.8.6和java 1.6.0_32。然后,我做的Grails运行的应用程序在项目目录(从我的终端),我收到此错误:
| 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升级后无法使此项目工作。
是否最新的Grails版本表现出同样的问题?我在这里发现了一个[jira问题](http://jira.grails.org/browse/GRAILS-8449),它说它不适用于2.0.3 –
我遇到了类似的项目,解决方案是从2.0.0到2.0.4。然而,由于类处理中的错误,该升级还打开了一堆集成测试的蠕虫。 – Jason
在我们的情况下升级到grails 2.0.4根本没有任何帮助。出现同样的问题。 – skatkov