0

私は大きな grails プロジェクトに取り組んでおり、会社のさまざまな部分から大量のプラグインが提供されています。新しい PC (Mac One) に移動しましたが、今抱えている問題を解決できません。

プロジェクトでは、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 に答える