突然Grails / GGTS无法解决很多课程。怎么解决?

时间:2016-05-31 13:24:25

标签: java spring grails ggts

我正在使用GGTS 3.6.4。我试图包含一个类,正常情况下,所有依赖项崩溃。我试图清理项目,刷新它的依赖项并重新编译,但我所拥有的只是下面的错误。

运行项目是没用的:IDE只是提醒我“存在所需项目中的错误”,然后启动突然停止,没有任何警报。

所有服务都警告他们“无法解决课程”,如图所示。还有什么可以检查的?

enter image description here

修改

行动#1 refresh-dependencies> compile

  • refresh-dependencies在我的控制台|Configuring classpath |Dependencies refreshed中生成。
  • compile向我提供了我们可以在图片中看到的提醒

行动#2 clean-all> refresh-dependencies> compile

  • clean-all生成|Application cleaned.
  • refresh-dependencies生成|Installing ([MANY PLUGINS HERE!!!]) |Dependencies refreshed
  • compile生成|Compiling N source files,然后出现错误Compilation error: startup failed,第一个出现unable to resolve class Transactional。这第一个错误可以保存所有编译过程吗?然后它给我带来了警报。

操作#3 grails run-app --verbose通过DOS提示符(Win7)生成:

C:\Grails_IDE\workspace\vs3>grails run-app --verbose
Base Directory: C:\Grails_IDE\workspace\vs3
| Environment set to development.
| Error Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1
java.lang.NoClassDefFoundError: _GrailsClasspath_groovy$_run_closure1
        at _GrailsClasspath_groovy.run(_GrailsClasspath_groovy:39)
        at _GrailsClasspath_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsEvents_groovy.run(_GrailsEvents_groovy:32)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsWar_groovy.run(_GrailsWar_groovy:27)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at _GrailsRun_groovy.run(_GrailsRun_groovy:28)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:116)
        at RunApp.run(RunApp.groovy:25)
        at RunApp$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
teArray.java:45)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
llSite.java:112)
        at gant.Gant.prepareTargets(Gant.groovy:607)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInst
ance(GrailsScriptRunner.java:769)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(G
railsScriptRunner.java:571)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCa
ching(GrailsScriptRunner.java:470)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS
cript(GrailsScriptRunner.java:414)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(Grai
lsScriptRunner.java:378)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu
nner.java:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Refl
ectiveInterceptor.java:1254)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:235)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:263)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Refl
ectiveInterceptor.java:1254)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
sStarter.java:235)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
er.java:263)
Caused by: java.lang.ClassNotFoundException: _GrailsClasspath_groovy$_run_closur
e1
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:175)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:147)
        at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(Gra
ilsRootLoader.java:51)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 72 more
| Error Error executing script RunApp: _GrailsClasspath_groovy$_run_closure1

C:\Grails_IDE\workspace\vs3>

0 个答案:

没有答案