compass项目启动报错 Caused by: org.compass.core.config.ConfigurationException : Schema system id [http://www.compass-project.org/schema/compass-core-config-2.0.xsd] not found at [/org/compass/core/compass-core-config-2.0.xsd], please check it has the correct location. Have you included compass in your class path?
compass.cfg.xml(在WEB-INF目录下)
<?xml version="1.0" encoding="UTF-8"?>
<compass-core-config xmlns="http://www.compass-project.org/schema/core-config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.compass-project.org/schema/core-config http://www.compass-project.org/schema/compass-core-config-2.0.xsd">
<compass name="default">
<connection>
<file path="C:/target" />
</connection>
<searchEngine>
<analyzer name="MyAnalyzer" type="CustomAnalyzer"
analyzerClass="net.paoding.analysis.analyzer.PaodingAnalyzer">
</analyzer>
</searchEngine>
</compass>
</compass-core-config>
Schema版本与所用的compass不一致
找到其dtd文件更改其版本