我正在尝试升级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 处理程序/模式方法使当前点指向3.1?
http:\//www.springframework.org/schema/beans/spring-beans-current.xsd=META-INF/spring-beans-3.1.xsd
还是我需要采取不同的方法?