[英]ElasticSearch plugin causing server to stop in Grails 3.1.6
I'm trying to add ElasticSearch plugin in my Grails 3.1.6 project. 我正在尝试在Grails 3.1.6项目中添加ElasticSearch插件。 I installed plugin as: 我安装了插件:
dependencies {
//..
compile 'org.grails.plugins:elasticsearch:1.0.0.2'
//..}
And configured application.yml as 并将application.yml配置为
elasticSearch:
client:
node: local
datastoreImpl: hibernateDatastore
But when I try to run application, i'm getting error as below: 但是当我尝试运行应用程序时,我收到的错误如下:
BUILD SUCCESSFUL
Total time: 5.118 secs
|Running application...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error |
Failed to start server (Use --stacktrace to see the full trace)
Process finished with exit code 1
I'm using IntellijIdea v2016 as IDE. 我正在使用IntellijIdea v2016作为IDE。
Would someone please help me to figure out the error spot please. 有人请帮我弄清楚错误点。
Thanks. 谢谢。
This isn't related to the plugin, it's a Boot/Gradle problem caused by having a classpath that causes the process to fail because the combined length of the process command is larger than the max Windows allows. 这与插件无关,它是由于具有导致进程失败的类路径而导致的引导/ Gradle问题,因为进程命令的组合长度大于Windows允许的最大长度。 This was fixed in 3.1.2 but you have to add a small config setting to build.gradle
since it's not a problem in Linux or OSX: 这已在3.1.2中修复,但您必须在build.gradle
添加一个小配置设置,因为它在Linux或OSX中不是问题:
grails {
pathingJar = true
}
See https://github.com/grails/grails-core/issues/9125 for more info. 有关详细信息,请参阅https://github.com/grails/grails-core/issues/9125 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.