未找到玉兰花 XSD

Magnolia - Blossom XSD not found

我正在使用 Magnolia 5.3.4 和 Blossom 3.0.3,但在我的应用程序配置中无法克服这个错误,不知道为什么我会收到这个错误以及为什么无法访问它。任何人都遇到过这个问题并且知道如何解决它?

Multiple annotations found at this line:
    - schema_reference.4: Failed to read schema document 'http://www.magnolia-cms.com/schema/
     blossom.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>.
    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 
     'blossom:configuration'.

应用配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:blossom="http://www.magnolia-cms.com/schema/blossom"
       xsi:schemaLocation="
            http://www.springframework.org/schema/beans 
            http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
            http://www.springframework.org/schema/context 
            http://www.springframework.org/schema/context/spring-context-3.2.xsd
            http://www.springframework.org/schema/tx 
            http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
            http://www.magnolia-cms.com/schema/blossom 
            http://www.magnolia-cms.com/schema/blossom.xsd" >

<tx:annotation-driven />   
    <context:annotation-config />
    <blossom:configuration />
    </beans>

XSD以前在网站上,但一定是最近在更新/迁移中丢失了。在 Magnolia 的 JIRA 中创建了一个票证以将它们添加回来。门票是内部的,所以我不能告诉你。

但是,与此同时,作为解决方法,您可以在 IDE 中禁用 XML 验证或手动配置替代位置。例如,在 Eclipse 中,将位于 Preferences->XML->XML Catalog select User Specified Entries 下,然后是 Add 按钮。您可以在 Blossom 模块中找到 XSD 文件的副本。