Grails不下载插件
Posted
技术标签:
【中文标题】Grails不下载插件【英文标题】:Grails not downloading plugins 【发布时间】:2014-06-29 12:00:27 【问题描述】:我的 grails 2.3.8 项目不再下载插件。这发生在最近几天。
我在 BuildConfig.groovy 中设置了详细输出
grails runApp
报告未解决的依赖关系:
module not found: org.grails.plugins#mail;1.0
==== grailsPlugins: tried
-- artifact org.grails.plugins#mail;1.0!mail.zip:
/Users/greg/Documents/development/git/liftyourgame-grails/webapp/lib/mail-1.0.zip
==== grailsHome: tried
/Applications/Dev/grails-2.3.8/lib/org.grails.plugins/mail/ivy-1.0.xml
-- artifact org.grails.plugins#mail;1.0!mail.zip:
/Applications/Dev/grails-2.3.8/lib/org.grails.plugins/mail/jars/mail-1.0.zip
/Applications/Dev/grails-2.3.8/lib/org.grails.plugins/mail/bundles/mail-1.0.zip
==== grailsHome: tried
/Applications/Dev/grails-2.3.8/dist/mail-1.0.pom
-- artifact org.grails.plugins#mail;1.0!mail.zip:
/Applications/Dev/grails-2.3.8/dist/mail-1.0.zip
==== grailsHome: tried
/Users/greg/.grails/2.3.8/cached-installed-plugins/mail-1.0.xml
-- artifact org.grails.plugins#mail;1.0!mail.zip:
/Users/greg/.grails/2.3.8/cached-installed-plugins/mail-1.0.zip
==== grailsHome: tried
/Applications/Dev/grails-2.3.8/plugins/mail-1.0.pom
-- artifact org.grails.plugins#mail;1.0!mail.zip:
/Applications/Dev/grails-2.3.8/plugins/mail-1.0.zip
==== grailsCentral: tried
http://grails.org/plugins/grails-mail/tags/RELEASE_1.0/mail-1.0.pom
-- artifact org.grails.plugins#mail;1.0!mail.zip:
http://grails.org/plugins/grails-mail/tags/RELEASE_1.0/grails-mail-1.0.zip
==== mavenCentral: tried
http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0/mail-1.0.pom
-- artifact org.grails.plugins#mail;1.0!mail.zip:
http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0/mail-1.0.zip
如果我直接下载
http://grails.org/plugins/grails-mail/tags/RELEASE_1.0/grails-mail-1.0.zip
下载正常。
不涉及代理。我还删除了 .grails 并再次运行该命令,结果相同。
【问题讨论】:
也许应该是 mail:1.0.5 ? 感谢您的建议,但没有改进。 【参考方案1】:这只会影响使用 Ivy 解析器的旧版 Grails。见https://***.com/a/23594402/259167
【讨论】:
添加到 BuildConfig.groovy grails.project.dependency.resolver = "maven"【参考方案2】:这是解决您的问题的方法。如果您可以手动下载需要的jar文件,则下载并放入lib文件夹中。
【讨论】:
以上是关于Grails不下载插件的主要内容,如果未能解决你的问题,请参考以下文章