在Ubuntu上运行应用程序时出现Grails依赖项错误
在Ubuntu(8)上运行grails 2.0.3应用程序时,我遇到了以下问题,该应用程序在OSX上运行良好:在Ubuntu上运行应用程序时出现Grails依赖项错误,grails,ubuntu,Grails,Ubuntu,在Ubuntu(8)上运行grails 2.0.3应用程序时,我遇到了以下问题,该应用程序在OSX上运行良好: :: problems summary :: :::: WARNINGS :::::::::::::::::::::::::::::::::::::::::::::: :: UNRESOLVED DEPENDENCIES :: ::::::::::::::::::::::::::::::::::::::::::::::
:: problems summary ::
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#resources;1.1.6: configuration not found in org.grails.plugins#resources;1.1.6: 'master'. It was required from org.grails.plugins#jquery-mobile;1.0.3 compile
::::::::::::::::::::::::::::::::::::::::::::::
:: problems summary ::
:::: WARNINGS
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#resources;1.1.6: configuration not found in org.grails.plugins#resources;1.1.6: 'master'. It was required from org.grails.plugins#jquery-mobile;1.0.3 compile
::::::::::::::::::::::::::::::::::::::::::::::
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.grails.plugins:resources:latest.integration
知道到哪里去找问题了吗?这可能是插件加载顺序的问题
遇到类似问题时,我从application.properties中删除了所有插件,并在插件之后添加了插件(每次重新启动服务器) 所有插件和项目信息都保存在两个目录中 格雷尔斯先生 及 .ivy2 通常它们在您的用户主页帐户下 升级时,应该使用grails upgrade命令。这将解析所有插件信息
如果您遇到问题,您可以做的另一件事是删除.grails和.ivy2目录并从头开始重建项目 我也有同样的问题,这就是为什么我发现了这个问题。只需再次运行run-app命令,我就可以正常工作。解决了我自己的问题,该问题是通过将grails2.0.1升级到2.0.3而产生的:我必须在BuildConfig中手动将资源插件版本从1.1.5更改为1.1.6。不知道为什么升级项目时不会自动发生这种情况。但在前8小时内,我不允许回答自己的问题:-/