0

尝试在 Ubuntu (8) 上运行带有 grails 2.0.3 的应用程序时遇到以下问题,该应用程序在 OSX 上运行良好:

:: 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

知道在哪里寻找问题吗?

4

3 回答 3

1

这可能是插件加载顺序的问题。

遇到类似问题时,我从 application.properties 中删除了所有插件,并在插件之后添加插件(每次服务器重新启动)。

于 2012-04-08T16:42:30.847 回答
1

所有插件和项目信息都保存在两个目录中

.grails

.ivy2

通常它们在您的用户主帐户下。

升级时,您应该使用 grails upgrade 命令。这将解决您的所有插件信息。

如果您遇到问题,您可以做的另一件事是删除您的 .grails 和 .ivy2 目录并从头开始重建您的项目。

于 2012-04-08T17:52:35.040 回答
0

我有同样的问题,这就是我发现这个问题的原因。我只需再次运行 run-app 命令就可以正常工作。

于 2012-08-30T11:53:57.717 回答