guix-more/maven-doxia-sitetools-fix-plexus-utils.patch

maven-doxia-sitetools-fix-plexus-utils.patch

1
From 9787463683fe062c5f069180eebfe493933e31da Mon Sep 17 00:00:00 2001
2
From: Julien Lepiller <julien@lepiller.eu>
3
Date: Fri, 25 Jan 2019 14:12:19 +0100
4
Subject: [PATCH] Port to plexus-utils 3.
5
6
Patch adapted from fedora.
7
---
8
 .../apache/maven/doxia/siterenderer/DefaultSiteRenderer.java  | 11 ++++++++++-
9
 1 file changed, 10 insertions(+), 1 deletion(-)
10
11
diff --git a/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java b/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
12
index 13eea52..181c2c1 100644
13
--- a/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
14
+++ b/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java
15
@@ -568,7 +568,16 @@ public class DefaultSiteRenderer
16
         // doxiaSiteRendererVersion
17
         InputStream inputStream = this.getClass().getResourceAsStream( "/META-INF/"
18
             + "maven/org.apache.maven.doxia/doxia-site-renderer/pom.properties" );
19
-        Properties properties = PropertyUtils.loadProperties( inputStream );
20
+        Properties properties;
21
+        try
22
+        {
23
+            properties = PropertyUtils.loadProperties( inputStream );
24
+        }
25
+        catch ( IOException exc )
26
+        {
27
+            properties = null;
28
+        }
29
+
30
         if ( inputStream == null )
31
         {
32
             getLogger().debug( "pom.properties for doxia-site-renderer could not be found." );
33
-- 
34
2.11.0
35
36