quick hack for removing wrong error messages for poms with an xsd declaration
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@332953 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76ca1f8a39
commit
4db9dd4a20
@ -181,6 +181,14 @@ public class JaxpMsvBean
|
|||||||
|
|
||||||
public void error(SAXParseException e) throws SAXException
|
public void error(SAXParseException e) throws SAXException
|
||||||
{
|
{
|
||||||
|
if (e.getMessage() != null && e.getMessage().indexOf("xsi:schemaLocation") > -1)
|
||||||
|
{
|
||||||
|
// unexpected attribute "xsi:schemaLocation"
|
||||||
|
// ignore, this is due to a valid xsd declaration
|
||||||
|
// Jaxp ignores additionals namespaces declared in the xml file (xmlns:xsi) and it can't validate
|
||||||
|
// using multiple schema at once
|
||||||
|
return;
|
||||||
|
}
|
||||||
errorMessage(e, MSV_ERROR);
|
errorMessage(e, MSV_ERROR);
|
||||||
setValid(false);
|
setValid(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user