org.springframework#spring-test;latest.release: 安装 grails 邮件插件时未找到

发布于 2024-10-22 18:28:10 字数 1355 浏览 5 评论 0原文

我在安装 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**

我尝试过的内容(所有这些都是上面提供的链接上的建议):

  1. 按如下方式放置运行时依赖项(仍然没有安装插件): runtime "org.springframework:spring-test:3.0.+"

  2. 排除依赖项,仍然无法安装插件。 运行时(':mail:1.0-SNAPSHOT'){ 排除“弹簧测试” }

  3. 未注释的 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):

  1. Put a runtime dependency as follows (still did not install the plugin):
    runtime "org.springframework:spring-test:3.0.+"

  2. Exclude the dependency, still no luck at getting the plugin installed.
    runtime( ':mail:1.0-SNAPSHOT' ) {
    excludes "spring-test"
    }

  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

跨年 2024-10-29 18:28:10

我终于再次找到了属于自己的答案。基本上,它会重新启动intellij,并且该插件将显示在插件下。由于某种原因,在执行“Grails/同步 Grails 设置”时,插件并未显示出来。

因此,要成功安装 gails 邮件插件,请执行以下操作

  1. activation1-1.jarma​​il.jar 添加到您的 lib 文件夹
  2. BuildConfig.groovy取消注释 mavenCenral()
  3. 运行 grails 命令:grails install-plugin mail
  4. 在 IntelliJ 中,如果
    中出现询问,请单击将 Grails 更改应用于 IDEA 项目结构
    黄色弹出窗口
  5. 如果 IntelliJ 仍然无法识别该插件,请执行 Grails/Synchronize Grails 操作
    右键单击“插件”或在项目名称中
  6. 如果 IntelliJ 仍然无法识别该插件,请重新启动 IntelliJ 执行 Grails/Synchronize Grails
  7. 该插件应已正确安装并可供使用。

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

  1. Add activation1-1.jar and mail.jar to your lib folder
  2. In BuildConfig.groovy uncomment mavenCenral()
  3. Run grails command: grails install-plugin mail
  4. In IntelliJ click on Apply Grails Changes to IDEA project structure if asked in the
    yellow popup
  5. If IntelliJ still does not recognize the plugin do Grails/Synchronize Grails either
    by right clicking on "Plugins" or in the project name
  6. If IntelliJ still does not recognize the plugin, restart IntelliJ do a Grails/Synchronize Grails.
  7. The plugin should be correctly installed and ready to use.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文