安装grails插件图像工具1.0.5

时间:2013-10-10 15:39:03

标签: grails grails-plugin

我必须使用grails版本2.0.4来处理现有的grails项目 当我试图运行该项目时,我的grails插件“image-tools”出错了

  

错误无法解析依赖关系(有关详细信息,请在BuildConfig.groovy中将日志级别设置为'warn'):    - org.grails.plugins:image-tools:1.0.5

在BuildConfig.groovy中

我有:

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

application.properties:

 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

1 个答案:

答案 0 :(得分: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

中插入插件

最后我取消注释了其他插件和run-app