From 85e7f402fbf7e2527736cd0654c9ce905a57c6dd Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Thu, 23 Dec 2021 02:42:15 +0100 Subject: [PATCH] Fix build errors --- .../plexus/metadata/merge/Driver.java | 5 +++ pom.xml | 34 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java b/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java index 99ba55dd3..e9ed66a3d 100644 --- a/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java +++ b/plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java @@ -42,6 +42,9 @@ public class Driver implements Locator, XMLReader, Attributes { + protected static final String EXTERNAL_GENERAL_ENTITIES_PROPERTY = + "http://xml.org/sax/features/external-general-entities"; + protected static final String DECLARATION_HANDLER_PROPERTY = "http://xml.org/sax/properties/declaration-handler"; @@ -200,6 +203,8 @@ public void setFeature (String name, boolean value) } } else if(VALIDATION_FEATURE.equals(name)) { pp.setFeature(XmlPullParser.FEATURE_VALIDATION, value); + } else if(EXTERNAL_GENERAL_ENTITIES_PROPERTY.equals(name)) { + // ignore } else { pp.setFeature(name, value); //throw new SAXNotRecognizedException("unrecognized feature "+name); diff --git a/pom.xml b/pom.xml index 366499fef..04fc66df8 100644 --- a/pom.xml +++ b/pom.xml @@ -118,6 +118,15 @@ + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + false + true + + org.apache.maven.plugins maven-release-plugin @@ -126,6 +135,31 @@ true + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0 + + + maven-project-info-reports-plugin + 3.1.2 + + + maven-checkstyle-plugin + 3.1.2 + + + com.puppycrawl.tools + checkstyle + 9.2 + + + org.apache.maven.shared + maven-shared-resources + 4 + + +