使用grails GWT plugin时,我很难刷新我的依赖项。
我插入了
compile ":gwt:0.8"
进入我的BuildConfig.groovy并运行:grails refresh-dependencies。我的Grails版本是2.3M1。
进程因以下错误而停止。我该如何解决这个问题?
| Loading Grails 2.3.0.M1
| Configuring classpath.
| Environment set to development.....
Gwt version 2.5.0 requested, downloading required dependencies
| Error Error loading event script from file [/Users/mg/Documents/Grails/GGTS-3.3M1- JUNO-4.2.2/testg23/target/work/plugins/gwt-0.8/scripts/_Events.groovy] No such property: resolveEngine for class: org.codehaus.groovy.grails.resolve.maven.aether.AetherDependencyManager (Use --stacktrace to see the full trace)
| Compiling 17 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
/Users/mg/Documents/Grails/GGTS-3.3M1-JUNO-4.2.2/testg23/target/work/plugins/gwt-0.8/src/java/grails/plugins/gwt/client/GwtActionService.java:3: error: package com.google.gwt.user.client.rpc does not exist
import com.google.gwt.user.client.rpc.RemoteService;
/Users/mg/Documents/Grails/GGTS-3.3M1-JUNO-4.2.2/testg23/target/work/plugins/gwt-0.8/src/java/grails/plugins/gwt/client/GwtActionService.java:12: error: cannot find symbol
public interface GwtActionService extends RemoteService {
symbol: class RemoteService
/Users/mg/Documents/Grails/GGTS-3.3M1-JUNO-4.2.2/testg23/target/work/plugins/gwt-0.8/src/java/grails/plugins/gwt/client/GwtActionServiceAsync.java:3: error: package com.google.gwt.user.client.rpc does not exist
import com.google.gwt.user.client.rpc.AsyncCallback;
/Users/mg/Documents/Grails/GGTS-3.3M1-JUNO-4.2.2/testg23/target/work/plugins/gwt- 0.8/src/java/grails/plugins/gwt/client/GwtActionServiceAsync.java:11: error: cannot find symbol
void execute(Action action, AsyncCallback callback);
symbol: class AsyncCallback
location: interface GwtActionServiceAsync
Note: /Users/mg/Documents/Grails/GGTS-3.3M1-JUNO-4.2.2/testg23/target/work/plugins/gwt-0.8/src/java/org/codehaus/groovy/grails/plugins/gwt/XMLJUnitResultFormatter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
1 error
答案 0 :(得分:1)
我成功安装了gwt插件。步骤进行:
GRAILS_HOME
。GWT_HOME
。compile ":gwt:0.8"
grails compile --refresh-dependencies
答案 1 :(得分:0)
Grails 2.3.M1中的默认依赖项解析引擎更改为Aether(因此排除在外)。
由于这是一个里程碑版本,最初可能会有一些hickup。如果您希望作为依赖项解析程序返回maven
或ivy
,请使用
grails.project.dependency.resolver = "maven" // or ivy