【问题标题】:Compile error in Grails xwiki pluginGrails xwiki 插件中的编译错误
【发布时间】:2013-12-03 09:14:40
【问题描述】:

我拼命尝试使用 XWiki Grails 插件,但到目前为止没有运气。我做了什么:

  • grails create-app xwikitest
  • 在 BuildConfig.groovy 插件部分添加“compile”:xwiki-rendering:1.0-RC3。
  • cd xwikitest
  • 圣杯
  • 运行应用程序(无控制器,空网络应用程序) 现在 grails 会回答这些错误:

| Compiling 50 source files. | Error Compilation error: startup failed: Compile error during compilation with javac. /home/pierre/.grails/2.2.0/projects/xwikitest/plugins/xwiki-rendering-1.0-RC3/src/java/com/monochromeroad/grails/plugins/xwiki/XWikiComponentManager.java:34: type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object return componentManager.getInstance(componentType, hint); ^ /home/pierre/.grails/2.2.0/projects/xwikitest/plugins/xwiki-rendering-1.0-RC3/src/java/com/monochromeroad/grails/plugins/xwiki/XWikiComponentManager.java:42: type parameters of T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object return componentManager.getInstance(componentType); ^ 2 errors

1 个错误 |错误 运行脚本运行应用程序时出错:org.codehaus.groovy.grails.cli.ScriptExitException(使用--stacktrace查看完整跟踪)

在 Fedora 14 下运行 Grails 2.2.0

我可能遗漏了一些明显的东西,但我自己无法找到。 任何帮助表示赞赏,因为这太疯狂了。 TIA

【问题讨论】:

  • 我遇到了同样的错误。看来作者可能忘记包含一些需要的依赖库了。

标签: grails plugins xwiki


【解决方案1】:

在添加:xwiki-rendering:1.0-RC3 行后尝试做一个:

grails refresh-depencies

在您的项目根文件夹中。

【讨论】:

  • 谢谢,伯努瓦。这有效地完成了这项工作,但随后在 Xerces 上失败并显示消息 Error running script run-app: org/apache/xerces/dom/DeferredElementNSImpl。快速搜索将我带到this workaround。有没有人有真正的解决方法,因为这不完全是用户友好的?
猜你喜欢
  • 1970-01-01
  • 2015-02-03
  • 1970-01-01
  • 1970-01-01
  • 2012-01-15
  • 1970-01-01
  • 1970-01-01
  • 2013-04-07
  • 1970-01-01
相关资源
最近更新 更多