gpt4 book ai didi

maven - 描述为 “:artifactId:version”的Maven Artifact 的默认groupId是什么?

转载 作者:行者123 更新时间:2023-12-02 15:48:27 24 4
gpt4 key购买 nike

我只是尝试添加grails插件为:

compile "org.grails.plugins:spring-websocket:1.3.1"

失败,但以下成功:
compile ":spring-websocket:1.3.1"

为什么会这样?

最佳答案

据我所知,两者是相同的(或应该是相同的)。实际上,我可以将以下内容添加到我的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.3

grails文档' Plugin Dependencies'说:

If you don't specify a group id the default plugin group id of org.grails.plugins is used.



我不知道为什么它对您不起作用,但应该如此。我已经在Grails 2.5.4上进行了所有检查,但是我相信Grails 2的早期版本可以以相同的方式运行。

关于maven - 描述为 “:artifactId:version”的Maven Artifact 的默认groupId是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43499608/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com