我刚刚尝试添加一个grails插件,如下所示:
compile "org.grails.plugins:spring-websocket:1.3.1"它失败了,但以下操作成功了:
compile ":spring-websocket:1.3.1"为什么会发生这种情况?
发布于 2017-04-20 00:35:25
据我所知,这两者是相同的(或者应该是相同的)。实际上,我可以在我的BuildConfig.groovy中添加以下内容:
compile "org.grails.plugins:spring-websocket:1.3.1"我在我的依赖报告中看到了以下内容:
+--- org.grails.plugins:spring-websocket:1.3.1
| \--- org.springframework:spring-messaging:4.1.5.RELEASE
| \--- org.springframework:spring-websocket:4.1.5.RELEASE
| \--- com.fasterxml.jackson.core:jackson-databind:2.4.3
| \--- com.fasterxml.jackson.core:jackson-annotations:2.4.0
| \--- com.fasterxml.jackson.core:jackson-core:2.4.3grails文档'Plugin Dependencies‘说:
如果不指定组id,则使用默认的插件组id org.grails.plugins。
我不知道为什么它对你不起作用,但它应该起作用。我在Grails 2.5.4上检查了所有这些,但我相信Grails 2的早期版本也是以同样的方式运行的。
https://stackoverflow.com/questions/43499608
复制相似问题