org.springframework#spring-test;latest.release: 安装 grails 邮件插件时未找到
我在安装 grails 邮件插件 (grails install-plugin mail) 时遇到依赖性问题。我还在 grails 用户邮件列表中发布了这个问题作为回复@以下链接: http://grails.1312388.n4.nabble.com/Installing-quot-mail-quot-plugin-fails-td3245058.html
我的设置如下: Grails 应用程序版本:1.3.7 集成开发环境:IntelliJ lib:mail.jar、activation-1.1.jar BuildConfig.groovy:grailsPlugins() grailsHome() grailsCentral() //mavenCentral() 当我安装邮件插件时,我收到以下消息
**:: org.springframework#spring-test;latest.release: not found**
我尝试过的内容(所有这些都是上面提供的链接上的建议):
按如下方式放置运行时依赖项(仍然没有安装插件): runtime "org.springframework:spring-test:3.0.+"
排除依赖项,仍然无法安装插件。 运行时(':mail:1.0-SNAPSHOT'){ 排除“弹簧测试” }
未注释的 mavenCentral()。这使得插件正确安装,但它没有与我正在使用的所有其他插件一起显示在“插件”部分下的 IntelliJ 中。因此,当我尝试从控制器或 Marc Palmer 在以下链接中建议的服务使用邮件插件时,找不到类: http://s3.amazonaws.com/AnyWare/Blog/Screencasts/Grails%20Rocks%20Screencast% 20%231%20-%20Grails%20Mail.mov
任何帮助将不胜感激。
谢谢, - 达里奥
I am getting dependency issues when installing the grails mail plugin (grails install-plugin mail). I have also posted this issue in the grails user mailing list as a reply @ the following link: http://grails.1312388.n4.nabble.com/Installing-quot-mail-quot-plugin-fails-td3245058.html
My setup is as follows:
Grails app version: 1.3.7
IDE: IntelliJ
lib: mail.jar, activation-1.1.jar
BuildConfig.groovy: grailsPlugins()
grailsHome()
grailsCentral()
//mavenCentral()
When I install the mail plugin I get the following message
**:: org.springframework#spring-test;latest.release: not found**
What I have tried (All these were suggestion on the link provided above):
Put a runtime dependency as follows (still did not install the plugin):
runtime "org.springframework:spring-test:3.0.+"Exclude the dependency, still no luck at getting the plugin installed.
runtime( ':mail:1.0-SNAPSHOT' ) {
excludes "spring-test"
}Uncommented mavenCentral(). This got the plugin installed correctly, but it did not show up in IntelliJ under the Plugins section with all the other plugins I am using. So when I was trying to use the Mail plugin either from a controller or from a service like Marc Palmer suggests in the following link the classes were not found: http://s3.amazonaws.com/AnyWare/Blog/Screencasts/Grails%20Rocks%20Screencast%20%231%20-%20Grails%20Mail.mov
Any help would be appreciated.
Thanks,
- Dario
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于再次找到了属于自己的答案。基本上,它会重新启动intellij,并且该插件将显示在插件下。由于某种原因,在执行“Grails/同步 Grails 设置”时,插件并未显示出来。
因此,要成功安装 gails 邮件插件,请执行以下操作
中出现询问,请单击将 Grails 更改应用于 IDEA 项目结构
黄色弹出窗口
右键单击“插件”或在项目名称中
I have finally found my own answer again. Basically, it came down to restart intellij and the plugin will show under plugins. For some reason while doing "Grails/Synchronize Grails Settings" was not making the plugin show up.
So to successfully install the gails mail plugin do as follows
yellow popup
by right clicking on "Plugins" or in the project name