1

我必须使用现有的 grails 项目,使用 grails 版本 2.0.4 当我尝试运行该项目时我遇到了 grails 插件“image-tools”错误

错误无法解决依赖关系(在 BuildConfig.groovy 中将日志级别设置为“警告”以获取更多信息):-org.grails.plugins:image-tools:1.0.5

在 BuildConfig.groovy 我有:

 plugins {
   ...
    compile ':image-tools:1.0.5'
   ...
}

应用程序属性:

 plugins.image-tools=1.0.5

所以我试图重新安装插件,但我总是得到这个错误:

| Environment set to development.....
:: problems summary ::
:::: WARNINGS
    module not found: commons-collections#commons-collections;3.1
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-collections/commons-collections/ivy-3.1.xml
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-collections/commons-collections/jars/commons-collections-3.1.jar
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-collections/commons-collections/bundles/commons-collections-3.1.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-collections-3.1.xml
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-collections-3.1.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-collections-3.1.xml
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-collections-3.1.jar
==== grailsHome: tried
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-collections-3.1.xml
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-collections-3.1.jar
==== grailsHome: tried
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/.gvm/grails/2.0.4/plugins/commons-collections-3.1.jar
==== image-tools plugin install resolver: tried
  -- artifact commons-collections#commons-collections;3.1!commons-collections.jar:
  /home/proxymit/grails-imagetools-master/commons-collections-3.1.jar
  /home/proxymit/grails-imagetools-master/grails-commons-collections-3.1.jar
    module not found: commons-codec#commons-codec;1.3
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-codec/commons-codec/ivy-1.3.xml
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-codec/commons-codec/jars/commons-codec-1.3.jar
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-codec/commons-codec/bundles/commons-codec-1.3.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-codec-1.3.xml
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-codec-1.3.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-codec-1.3.xml
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-codec-1.3.jar
==== grailsHome: tried
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-codec-1.3.xml
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-codec-1.3.jar
==== grailsHome: tried
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/.gvm/grails/2.0.4/plugins/commons-codec-1.3.jar
==== image-tools plugin install resolver: tried
  -- artifact commons-codec#commons-codec;1.3!commons-codec.jar:
  /home/proxymit/grails-imagetools-master/commons-codec-1.3.jar
  /home/proxymit/grails-imagetools-master/grails-commons-codec-1.3.jar
    module not found: commons-beanutils#commons-beanutils;1.8.0
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-beanutils/commons-beanutils/ivy-1.8.0.xml
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.8.0.jar
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-beanutils/commons-beanutils/bundles/commons-beanutils-1.8.0.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-beanutils-1.8.0.xml
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-beanutils-1.8.0.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-beanutils-1.8.0.xml
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-beanutils-1.8.0.jar
==== grailsHome: tried
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-beanutils-1.8.0.xml
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-beanutils-1.8.0.jar
==== grailsHome: tried
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/.gvm/grails/2.0.4/plugins/commons-beanutils-1.8.0.jar
==== image-tools plugin install resolver: tried
  -- artifact commons-beanutils#commons-beanutils;1.8.0!commons-beanutils.jar:
  /home/proxymit/grails-imagetools-master/commons-beanutils-1.8.0.jar
  /home/proxymit/grails-imagetools-master/grails-commons-beanutils-1.8.0.jar
    module not found: commons-lang#commons-lang;2.4
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-lang/commons-lang/ivy-2.4.xml
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-lang/commons-lang/jars/commons-lang-2.4.jar
  /home/proxymit/.gvm/grails/2.0.4/lib/commons-lang/commons-lang/bundles/commons-lang-2.4.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-lang-2.4.xml
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/.gvm/grails/2.0.4/src/libs/commons-lang-2.4.jar
==== grailsHome: tried
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-lang-2.4.xml
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/.gvm/grails/2.0.4/dist/commons-lang-2.4.jar
==== grailsHome: tried
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-lang-2.4.xml
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/.grails/2.0.4/cached-installed-plugins/commons-lang-2.4.jar
==== grailsHome: tried
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/.gvm/grails/2.0.4/plugins/commons-lang-2.4.jar
==== image-tools plugin install resolver: tried
  -- artifact commons-lang#commons-lang;2.4!commons-lang.jar:
  /home/proxymit/grails-imagetools-master/commons-lang-2.4.jar
  /home/proxymit/grails-imagetools-master/grails-commons-lang-2.4.jar
    ::::::::::::::::::::::::::::::::::::::::::::::
    ::          UNRESOLVED DEPENDENCIES         ::
    ::::::::::::::::::::::::::::::::::::::::::::::
    :: commons-collections#commons-collections;3.1: not found
    :: commons-codec#commons-codec;1.3: not found
    :: commons-beanutils#commons-beanutils;1.8.0: not found
    :: commons-lang#commons-lang;2.4: not found
    ::::::::::::::::::::::::::::::::::::::::::::::

| Error Could not resolve all dependencies for plugin image-tools
4

1 回答 1

2

终于成功了,我是这样做的:

我从以下网址下载了插件 zip:https ://github.com/ricardojmendez/grails-imagetools 然后我提取它

cd (plugin directory)
grails upgrade
grails create-plugin ImageTools
grails package-plugin
cd (to the project using the plugin)
grails install-plugin (path to created plugin)

然后我在 buildConfig.groovy 和 application.properties 中评论了其他已安装的插件

然后我从生成的 .zip 中安装插件

最后我取消注释其他插件和运行应用程序

于 2013-10-11T09:59:37.143 回答