无法让Grails 1.1与Maven 2.1一起使用

时间:2009-05-19 07:20:18

标签: maven-2 grails

当我尝试使用Maven 2.0.9或2.1构建Grails 1.1项目时,我收到此错误:

[INFO] [grails:maven-compile {execution: default}]
Running pre-compiled script
Environment set to development
Plugin [debug-1.0.2] not installed, resolving..
Reading remote plugin list ...
Plugin list file corrupt, retrieving again..
   [delete] Deleting: C:\Dokumente und Einstellungen\DIGULAA\.grails\1.1\plugins-list-core.xml
      [get] Getting: http://svn.codehaus.org/grails/trunk/grails-plugins/.plugin-meta/plugins-list.xml
      [get] To: C:\Dokumente und Einstellungen\DIGULAA\.grails\1.1\plugins-list-core.xml
.
      [get] last modified = Thu May 14 10:44:43 CEST 2009
Error reading remote plugin list [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl], building locally...
Plugins list cache is corrupt [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]. Re-creating..
Unable to list plugins, please check you have a valid internet connection: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to start Grails

Embedded error: java.lang.reflect.InvocationTargetException
Cannot get property 'plugin' on null object

我的猜测是XML解析器存在问题,因为插件列表文件没有损坏; Grails无法读取它,开发人员吞下了异常:(

有没有人有同样的问题?解决方案是什么?

1 个答案:

答案 0 :(得分:0)

你又试过了吗?我认为插件存储库几天前还没有工作。