Maurice Zeijen created MBUILDCACHE-111:
------------------------------------------
Summary: Documentation uses build-cache-config 1.0.0 XML schema
instead of 1.2.0 schema
Key: MBUILDCACHE-111
URL: https://issues.apache.org/jira/browse/MBUILDCACHE-111
Project: Maven Build Cache Extension
Issue Type: Bug
Reporter: Maurice Zeijen
Several places in the documentation, like the
[Howto|https://maven.apache.org/extensions/maven-build-cache-extension/how-to.html]
page and the
[maven-build-cache-config.xml|https://maven.apache.org/extensions/maven-build-cache-extension/build-cache-config.html]
page, refer to the 1.0.0 version of the build-cache-config XML schema instead
of the newer 1.2.0 version.
Because I was not aware of there being a newer schema, we where using the 1.0.0
schema in combination with the 1.2.0 version of the build cache. Although this
works, it does cause validation issues in the IDE when new features are used
like the `glob` attribute on the `exclude` element, which causes confusion.
So instead of:
{code:java}
<cache xmlns="http://maven.apache.org/BUILD-CACHE-CONFIG/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.0.0
https://maven.apache.org/xsd/build-cache-config-1.0.0.xsd"> {code}
this should be used in the documentation:
{code:java}
<cache xmlns="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/BUILD-CACHE-CONFIG/1.2.0
https://maven.apache.org/xsd/build-cache-config-1.2.0.xsd"> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)