如何在基于maven的grails项目中安装JAWR插件

时间:2011-05-19 12:52:58

标签: grails maven jawr

我无法在基于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)

mvn grails: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]

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

提前致谢

1 个答案:

答案 0 :(得分:0)

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

检查this link,并将其与类路径条目进行比较。