gpt4 book ai didi

gwt - springroo 无法设置 gwt

转载 作者:行者123 更新时间:2023-12-05 00:38:39 25 4
gpt4 key购买 nike

我有 spring roo 1.1.2。我正在创建新项目,例如

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>

最佳答案

我在 Roo 示例费用.roo 项目中遇到了同样的问题。我通过将缺少的 maven 依赖项添加到项目中来解决它。

从 Roo shell 运行:

dependency add --groupId com.google.appengine --artifactId appengine-api-1.0-sdk --version 1.4.0

关于gwt - springroo 无法设置 gwt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5327946/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com