Grails does not recognize any online / plugin dependency
尝试在新机器上运行我的 Grails 项目,设置如下:
- 圣杯 2.3.8
- java 1.8 - 我曾经在 1.6 或 7 中运行这个项目,但我希望,这不是原因
- 视窗 XP 32b
- Idea 12.1.7 Ultimate 作为 IDE
在我看来,grails 无法下载任何在线依赖项,例如下面是包含邮件和邮件确认插件解析信息的输出的一部分。但是当我将 zip 文件的 http 路径放到浏览器中时,它会下载它,因此与存储库的连接正在机器上运行。
在之前运行项目的机器上,此配置有效。我可以通过编辑 BuildConfig.groovy 添加插件,它已被下载、添加并准备好使用。
这里是 BuildConfig.groovy 的一些有趣的部分(我还没有把所有的部门都留在那里):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | repositories { inherits true // Whether to inherit repository definitions from plugins grailsPlugins() grailsHome() grailsCentral() mavenLocal() mavenCentral() // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories //mavenRepo"http://snapshots.repository.codehaus.org" //mavenRepo"http://repository.codehaus.org" //mavenRepo"http://download.java.net/maven/2/" //mavenRepo"http://repository.jboss.com/maven2/" // Due to spring security plugins 2.0 mavenRepo"http://repo.spring.io/milestone" } dependencies { // This dependency is added due to usage of grails mail plugin: compile"javax.mail:mail:1.5.0-b01" } plugins { runtime":hibernate:3.6.10.13" runtime":jquery:1.8.3" runtime":resources:1.2.7" // Uncomment these (or add new ones) to enable additional resources capabilities //runtime":zipped-resources:1.0" //runtime":cached-resources:1.0" //runtime":yui-minify-resources:0.1.5" build":tomcat:7.0.52.1" runtime":database-migration:1.4.0" // Mail service & mail confirmation providers: compile":mail:1.0.7" compile":email-confirmation:2.0.8" compile":scaffolding:2.0.3" compile":cache:1.0.1" compile":spring-security-core:2.0-RC2" compile":spring-security-acl:2.0-RC1" compile":lang-selector:0.3" compile":i18n-templates:1.1.0.1" } |
任何想法,我是否必须手动安装 ivy、maven 或其他东西?或者我应该从哪里获取信息到底是什么失败了?
这是一个新系统,所以除了我上面描述的工具之外没有太多东西。
提前致谢!
输出:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |Configuring classpath :: problems summary :: :::: WARNINGS module not found: org.grails.plugins#mail;1.0.7 ==== grailsPlugins: tried -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Documents and Settings\\admin\\IdeaProjects\\CarEcho\\lib\\mail-1.0.7.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\mail\\ivy-1.0.7.xml -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\mail\\jars\\mail-1.0.7.zip C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\mail\\bundles\\mail-1.0.7.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\dist\\mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Program Files\\grails-2.3.8\\dist\\mail-1.0.7.zip ==== grailsHome: tried C:\\Documents and Settings\\admin\\.grails\\2.3.8\\cached-installed-plugins\\mail-1.0.7.xml -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Documents and Settings\\admin\\.grails\\2.3.8\\cached-installed-plugins\\mail-1.0.7.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\plugins\\mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Program Files\\grails-2.3.8\\plugins\\mail-1.0.7.zip ==== grailsCentral: tried http://grails.org/plugins/grails-mail/tags/RELEASE_1.0.7/mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: http://grails.org/plugins/grails-mail/tags/RELEASE_1.0.7/grails-mail-1.0.7.zip ==== localMavenResolver: tried C:\\Documents and Settings\\admin\\.m2\ epository\\org/grails/plugins\\mail\\1.0.7\\mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: C:\\Documents and Settings\\admin\\.m2\ epository\\org/grails/plugins\\mail\\1.0.7\\mail-1.0.7.zip ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.7/mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: http://repo1.maven.org/maven2/org/grails/plugins/mail/1.0.7/mail-1.0.7.zip ==== http://repo.spring.io/milestone: tried http://repo.spring.io/milestone/org/grails/plugins/mail/1.0.7/mail-1.0.7.pom -- artifact org.grails.plugins#mail;1.0.7!mail.zip: http://repo.spring.io/milestone/org/grails/plugins/mail/1.0.7/mail-1.0.7.zip module not found: org.grails.plugins#email-confirmation;2.0.8 ==== grailsPlugins: tried -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Documents and Settings\\admin\\IdeaProjects\\CarEcho\\lib\\email-confirmation-2.0.8.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\email-confirmation\\ivy-2.0.8.xml -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\email-confirmation\\jars\\email-confirmation-2.0.8.zip C:\\Program Files\\grails-2.3.8\\lib\\org.grails.plugins\\email-confirmation\\bundles\\email-confirmation-2.0.8.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\dist\\email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Program Files\\grails-2.3.8\\dist\\email-confirmation-2.0.8.zip ==== grailsHome: tried C:\\Documents and Settings\\admin\\.grails\\2.3.8\\cached-installed-plugins\\email-confirmation-2.0.8.xml -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Documents and Settings\\admin\\.grails\\2.3.8\\cached-installed-plugins\\email-confirmation-2.0.8.zip ==== grailsHome: tried C:\\Program Files\\grails-2.3.8\\plugins\\email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Program Files\\grails-2.3.8\\plugins\\email-confirmation-2.0.8.zip ==== grailsCentral: tried http://grails.org/plugins/grails-email-confirmation/tags/RELEASE_2.0.8/email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: http://grails.org/plugins/grails-email-confirmation/tags/RELEASE_2.0.8/grails-email-confirmation-2.0.8.zip ==== localMavenResolver: tried C:\\Documents and Settings\\admin\\.m2\ epository\\org/grails/plugins\\email-confirmation\\2.0.8\\email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: C:\\Documents and Settings\\admin\\.m2\ epository\\org/grails/plugins\\email-confirmation\\2.0.8\\email-confirmation-2.0.8.zip ==== mavenCentral: tried http://repo1.maven.org/maven2/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: http://repo1.maven.org/maven2/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.zip ==== http://repo.spring.io/milestone: tried http://repo.spring.io/milestone/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.pom -- artifact org.grails.plugins#email-confirmation;2.0.8!email-confirmation.zip: http://repo.spring.io/milestone/org/grails/plugins/email-confirmation/2.0.8/email-confirmation-2.0.8.zip |
尝试将其添加到 BuildConfig.groovy 中的存储库中。它应该使它工作。
1 | mavenRepo"https://repo.grails.org/grails/plugins" |