Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 85e7f40

Browse files
committed
Fix build errors
1 parent 31f3f0a commit 85e7f40

File tree

2 files changed

+39
-0
lines changed
  • plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge

2 files changed

+39
-0
lines changed

plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
public class Driver implements Locator, XMLReader, Attributes
4343
{
4444

45+
protected static final String EXTERNAL_GENERAL_ENTITIES_PROPERTY =
46+
"http://xml.org/sax/features/external-general-entities";
47+
4548
protected static final String DECLARATION_HANDLER_PROPERTY =
4649
"http://xml.org/sax/properties/declaration-handler";
4750

@@ -200,6 +203,8 @@ public void setFeature (String name, boolean value)
200203
}
201204
} else if(VALIDATION_FEATURE.equals(name)) {
202205
pp.setFeature(XmlPullParser.FEATURE_VALIDATION, value);
206+
} else if(EXTERNAL_GENERAL_ENTITIES_PROPERTY.equals(name)) {
207+
// ignore
203208
} else {
204209
pp.setFeature(name, value);
205210
//throw new SAXNotRecognizedException("unrecognized feature "+name);

pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@
118118
<build>
119119
<pluginManagement>
120120
<plugins>
121+
<plugin>
122+
<groupId>org.codehaus.mojo</groupId>
123+
<artifactId>cobertura-maven-plugin</artifactId>
124+
<version>2.7</version>
125+
<configuration>
126+
<check>false</check>
127+
<skip>true</skip>
128+
</configuration>
129+
</plugin>
121130
<plugin>
122131
<groupId>org.apache.maven.plugins</groupId>
123132
<artifactId>maven-release-plugin</artifactId>
@@ -126,6 +135,31 @@
126135
<autoVersionSubmodules>true</autoVersionSubmodules>
127136
</configuration>
128137
</plugin>
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-enforcer-plugin</artifactId>
141+
<version>3.0.0</version>
142+
</plugin>
143+
<plugin>
144+
<artifactId>maven-project-info-reports-plugin</artifactId>
145+
<version>3.1.2</version>
146+
</plugin>
147+
<plugin>
148+
<artifactId>maven-checkstyle-plugin</artifactId>
149+
<version>3.1.2</version>
150+
<dependencies>
151+
<dependency>
152+
<groupId>com.puppycrawl.tools</groupId>
153+
<artifactId>checkstyle</artifactId>
154+
<version>9.2</version>
155+
</dependency>
156+
<dependency>
157+
<groupId>org.apache.maven.shared</groupId>
158+
<artifactId>maven-shared-resources</artifactId>
159+
<version>4</version>
160+
</dependency>
161+
</dependencies>
162+
</plugin>
129163
</plugins>
130164
</pluginManagement>
131165
<plugins>

0 commit comments

Comments
 (0)