我有春天roo 1.1.2。我創建新項目,像springroo不能設置gwt
project --topLevelPackage leraning.roogwt
然後我設置的持久性,並添加一個實體
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity --class ~.MyEntity
field string description
設置GWT
gwt setup
,當我嘗試將它打包,編譯錯誤發生
perform package
個錯誤
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] User cannot be resolved to a type
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] UserService cannot be resolved to a type
[Thread-8] [ERROR] UserServiceFactory cannot be resolved
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] UserService cannot be resolved to a type
[Thread-8] [ERROR] UserServiceFactory cannot be resolved
[Thread-8] [ERROR] User cannot be resolved to a type
和詳細代碼
[Thread-8] [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (default) on project roogwt: Compiler errors :
[Thread-8] [ERROR] error at import com.google.appengine.api.users.User;
[Thread-8] [ERROR] ^^^^^^^^^^^^^^^^^^^
[Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server \gae\UserServiceWrapper.java:3:0::0 The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] error at public User getCurrentUser();
[Thread-8] [ERROR] ^^
[Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server\gae\UserServiceWrapper.java:16:0::0 User cannot be resolved to a type
[Thread-8] [ERROR] error at import com.google.appengine.api.users.UserService;
[Thread-8] [ERROR] ^^^^^^^^^^^^^^^^^^^
[Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server\gae\GaeAuthFilter.java:3:0::0 The import com.google.appengine cannot be re.....
<similar errors in other files>
現在我試圖從expenses.roo開始構建項目,gae也存在同樣的問題(無法導入包,無法解析類型等) –
您是否收到任何缺少錯誤類型的maven artifcats?你有沒有嘗試更新你的Maven回購? – Nilesh
沒有依賴關係問題,因爲依賴關係在編譯之前解決,但在這裏編譯錯誤。你是什麼意思「更新maven回購」? –