【问题标题】:I want to upgrade grails from 2.3.6 to 2.4.3, but facing issue with plugins我想将 grails 从 2.3.6 升级到 2.4.3,但面临插件问题
【发布时间】:2014-09-19 16:25:40
【问题描述】:

我目前正在使用 grails 版本。 2.3.6 并想升级到 2.4.3。

我依赖插件。其中一些在 grails 插件存储库中可用,但不是全部。 taggable: 1.1.0 已发布,但 grails 存储库仍显示 taggable:1.0.1。我需要剩余的插件最新版本,这样我就不会遇到编译错误的问题。

插件列表是。

plugins {
    compile ':mail:1.0', {
      excludes 'spring-test'
    }
    //compile ":spring-security-core:1.2.7.3"
    //compile ":spring-security-ui:0.2"
    compile ":spring-security-core:2.0-RC4"
    compile ":spring-security-ui:1.0-RC2"
    runtime ":jquery:1.10.2.2"
    compile ":ckeditor:3.6.6.1.1"
    compile ":simple-blog:0.2.1"
    compile ":taggable:1.0.1" // i got this one taggable:1.1.0...
    compile ":aws-sdk:1.6.0"
    compile ":blueprint:1.0.2"
    compile ":compress:0.4"
    compile ":cookie:0.4"
    compile ":commentable:0.8.1"
    compile ":database-migration:1.3.8"
    compile ":feeds:1.6"
    compile ":google-analytics:2.0"
    compile ":hibernate:3.6.10.3"
    compile ":mahout-recommender:0.5.2"
    compile ":mail-on-exception:0.1.1"
    compile ":mysql-connectorj:5.1.22.1"
    compile ":remote-pagination:0.3"
    compile ":resources:1.1.6"
    compile ":simple-captcha:0.9.4"
    //compile ":solr:0.2"
    compile ":tomcat:2.1.1"
    compile ":famfamfam:1.0.1"
    compile ":jquery-ui:1.8.24"
    compile ":webxml:1.4.1"
    compile ":quartz:1.0.1"
    runtime ":zipped-resources:1.0"
    runtime ":cached-resources:1.0"
    compile ":cache-headers:1.1.5"
  }

面临一些问题,例如“:mahout-recommender:0.5.2”等等。 请有人提供支持 grails 2.4.3 的最新版本的插件

【问题讨论】:

  • mahout 推荐者。 mahout-recommender-0.5.2/src/groovy/org/grails/mahout/recommender/MahoutRecommenderSupport.groovy:34:无法解析类 org.codehaus.groovy.grails.commons.ApplicationHolder 2.4.3 的替代品是什么
  • 将 grails 升级到 2.4.3 实在是太乏味了。就我而言,感觉最好还是坚持使用旧版本并跳过升级。

标签: upgrade grails-2.4


【解决方案1】:

ApplicationHolder 已在 grails 2.4 中删除,应使用 grails.util.Holders:http://grails.org/doc/2.4.3/guide/upgradingFrom23.html

根据https://github.com/limcheekin/mahout-recommender,最后一次提交是在 2012 年,所以我认为该插件的开发人员不再活跃。如果你想在 grails 2.4 中使用这个插件,你可能必须自己让它兼容。

【讨论】:

  • 感谢更新,我正在尝试为 mahout-recommender 做同样的事情,但缺少一些类,例如 import org.apache.mahout.cf.taste.eval.RecommenderBuilder。我怎样才能使它兼容。或任何替代品,如果你能提供给我。同样的问题 zipped-resources、cached-resources 等等。
  • 我正在使它与我自己兼容,但面临一些类的问题,例如。无法解析类 org.apache.mahout.cf.taste.common.TasteException
猜你喜欢
  • 1970-01-01
  • 2014-04-04
  • 2015-03-08
  • 1970-01-01
  • 2015-09-24
  • 2014-06-08
  • 1970-01-01
  • 1970-01-01
  • 2014-11-21
相关资源
最近更新 更多