【发布时间】:2018-03-13 02:58:01
【问题描述】:
我正在尝试升级 https://github.com/mulesoft/mule-module-cache 以在 Mule 3.4.0 CE 下运行,但在命令行上运行 mvn clean install 时得到以下结果
[10-16 13:51:05] WARN XmlBeanDefinitionReader [main]: Ignored XML validation warning org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-current.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
....
testExternalGenerator(org.mule.module.cache.ExpressionTest): Line 6 in XML document from URL [jar:file:/Users/me/.m2/repository/org/mule/modules/mule-module-spring-config/3.4.0/mule-module-spring-config-3.4.0.jar!/mule-spring-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. (org.mule.api.lifecycle.InitialisationException)
这出现是由于 mule-module-spring-config-3.4.0.jar 的 mule-spring-config.xml 使用 current 声明。如果这是我的配置文件,我会修改该文件以明确指向我想要的 URI,但是,唉,事实并非如此。这是第 6 行:
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd"
有没有办法让我使用Spring handler/schema approach 让current 指向3.1?
http:\//www.springframework.org/schema/beans/spring-beans-current.xsd=META-INF/spring-beans-3.1.xsd
或者我需要采取其他方法吗?
【问题讨论】:
-
你检查过我在 3.4.0 上编译的 fork 吗? github.com/ddossot/mule-module-cache
-
我以前没有 - 只是检查了一下,我的问题不再出现。这解决了我的直接问题。
-
Mirrors 在这里可能也对我有用,但我怀疑 mule-config 文件还有其他问题。