上下文:我创建了一个名为"samplePlugin“的新Grails插件。它有一个域类Person和一个集成测试PersonSpec。现在,当我运行grails test-app时,测试会失败,例外情况如下:
java.lang.IllegalStateException: Method on class [sampleplugin.Person] was used outside of a Grails application.If running in the context of a test using the mocki
我刚刚下载了Grails 2.0.4并将其解压缩到/opt/grails/grails-2.0.4/,并确保GRAILS_HOME环境变量是正确的。但是每当我尝试运行"grails“命令时,我都会得到以下错误:
Error opening zip file or JAR manifest missing : /opt/grails/grails-2.0.4几个月来,我一直在完全相同的机器上成
使用2.3.7版本创建Grails项目是可以的。2.2.4是有问题的。{ Starting process on NDMM0245-PC/192.168.10.178 | Configuring classpath
|The command Grails command (project) was terminated because it didn't produce new product output producedSee menu Windows>&g