gnodet commented on code in PR #13117:
URL: https://github.com/apache/maven/pull/13117#discussion_r4018814915


##########
compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java:
##########
@@ -75,6 +75,11 @@ protected Model read(Reader reader, boolean strict, 
InputSource source) throws I
             return new Model(model);
         } catch (XMLStreamException e) {
             throw new XmlPullParserException(e.getMessage(), null, e);
+        } catch (RuntimeException e) {
+            if (e.getCause() instanceof XMLStreamException cause) {
+                throw new XmlPullParserException(cause.getMessage(), null, 
cause);
+            }
+            throw e;

Review Comment:
   Fixed in 1c031658df0930cff55a2f2a344699a59a1ca755 — `RuntimeException` guard 
added to `SettingsXpp3Reader.read(XMLStreamReader, boolean)` and 
`MetadataXpp3Reader.read(XMLStreamReader, boolean)`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to