1

我无法在基于 maven 的 grails 项目中安装 JAWR 插件,我尝试了以下命令

    mvn grails:install-plugin -DpluginName=Jawr
grails install-plugin Jawr

命令结果grails install-plugin Jawr如下

    groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.resolve.EnhancedDefaultDependencyDescriptor.addRuleForModuleId(
) is applicable for argument types: (org.apache.ivy.core.module.id.ModuleId, java.lang.String) values: [org.slf4j#slf4j-api, compile]
Possible solutions: addRuleForModuleId(org.apache.ivy.core.module.id.ModuleId, java.lang.String, java.lang.String, java.lang.String)
        at grails.util.BuildSettings.configureDependencyManager(BuildSettings.groovy:776)
        at grails.util.BuildSettings$configureDependencyManager.callCurrent(Unknown Source)
        at grails.util.BuildSettings.postLoadConfig(BuildSettings.groovy:682)
        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:671)
        at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source)
        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:653)
        at grails.util.BuildSettings$loadConfig.callCurrent(Unknown Source)
        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:630)

mvngrails:install-plugin -DpluginName=Jawr命令的结果如下

                ::::::::::::::::::::::::::::::::::::::::::::::

                ::          UNRESOLVED DEPENDENCIES         ::

                ::::::::::::::::::::::::::::::::::::::::::::::

                :: org.grails.plugins#Jawr;latest.integration: not found

                ::::::::::::::::::::::::::::::::::::::::::::::


Error resolving plugin [name:Jawr, group:org.grails.plugins, version:latest.integration].
Plugin not found for name [Jawr] and version [not specified]

请帮助我,如果有人有任何想法

提前致谢

4

1 回答 1

0

我认为您缺少类路径所需的条目,它无法下载 jar 文件...

检查此链接,并将其与您的类路径条目进行比较。

于 2011-05-25T05:45:13.670 回答