3

I've been working on a grails project and had the source committed to git.

Then I installed a new version of my IDE(GGTS 3.1) and pulled the project from GIT into my workspace. The project runs fine but the Domain and Service folders are not displaying in the eclipse interface.

Domain and Service Folders are Missing

I've tried deleting and re-importing the project. I've tried cleaning and compiling the project. I've tried refreshing the dependencies. I've tried restarting the IDE.

I've added classes to the domain and service folder and checked to ensure they are there but eclipse will not recognize the folders.

How can I get these folders to display?

4

3 に答える 3

2

サービスフォルダーが表示されないという同じ問題がありました。私がしたことは:

  1. プロジェクトを右クリック > プロパティ
  2. Java ビルド パス > ソース
  3. フォルダーを追加 > 見つからないフォルダーを選択
  4. Ok

これにより、不足しているフォルダーがプロジェクト エクスプローラー バーに追加されます。

于 2015-01-04T15:37:34.090 に答える
2

ここには 2 つの可能性があります。

  1. Java モデルは、サービスおよびドメイン フォルダーをソース フォルダーとして認識しません。
  2. いくつかの例外がスローされ、それらは認識されていますが、表示されていません。

できることは次のとおりです。

  1. タイプを開く (CTRL+Shift+T)。そこに欠落しているクラスが表示されますか?
  2. Eclipse エラー ログを開きます。関連するエラーはありますか?
  3. パッケージ エクスプローラー ビューを開きます。そこに不足しているソース フォルダーが表示されますか?
  4. Grails Refresh の依存関係を実行する

上記の回答を編集して、以下の回答とコメントでお知らせください。

于 2012-11-11T21:43:32.363 に答える