В Eclipse (2019-06) я получаю следующую ошибку при проверке файла spring.xml
во всех моих проектах:
Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd).
schema_reference_4: Failed to read schema document: 'https://www.springframework.org/schema/tool/spring-tool-4.3.xsd', because
1) could not find the document;
2) the document could not be read;
3) the root element of the document ist not <xsd:schema>.
Файлы spring.xml
выглядят так:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd">
</beans>
Используемая версия Spring - 4.3.17.RELAESE
, и я могу убедиться, что источники являются частью моего хранилища Maven.Я также могу найти «отсутствующий» файл схемы spring-tool-4.3.xsd
в файле spring-beans-4.3.17.RELEASE.jar
(на org\springframework\beans\factory\xml\
).
По какой-то причине ошибка возникает только в ветви, где мы недавно обновились до Maven 3.6.1 (из 3.3.0), но я не могу найти никакого отношения к рассматриваемой проблеме.
Единственный важный вопрос, который я мог найти здесь, был этот .Но было решение пропустить номера версий xsd в файле spring.xml
, что я уже делаю.
EDIT Я только сейчас понимаю, что в сообщении об ошибке говорится, что он пытаетсянайдите файл xsd через http s , тогда как в определении указан только http.Может быть, это как-то связано с проблемой?