Skip to content
Commits on Source (3)
jboss-modules (1.8.7-1) unstable; urgency=medium
* New upstream version 1.8.7.
-- Markus Koschany <apo@debian.org> Sun, 25 Nov 2018 13:52:57 +0100
jboss-modules (1.8.6-2) unstable; urgency=medium
* Add java11.patch and work around FTBFS with OpenJDK 11. (Closes: #912296)
......
......@@ -23,7 +23,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.modules</groupId>
<artifactId>jboss-modules</artifactId>
<version>1.8.6.Final</version>
<version>1.8.7.Final</version>
<name>JBoss Modules</name>
<parent>
......
......@@ -71,6 +71,8 @@ public class ModuleLoadException extends Exception {
* @return the unchecked error
*/
public ModuleLoadError toError() {
return new ModuleLoadError(getMessage(), getCause());
final ModuleLoadError error = new ModuleLoadError(getMessage(), getCause());
error.setStackTrace(getStackTrace());
return error;
}
}
......@@ -1019,6 +1019,9 @@ public final class ModuleXmlParser {
try {
coordinates = ArtifactCoordinates.fromString(name);
final File file = mavenResolver.resolveJarArtifact(coordinates);
if (file == null) {
throw new XmlPullParserException(String.format("Failed to resolve artifact '%s'", coordinates), reader, null);
}
resourceLoader = factory.createResourceLoader("", file.getPath(), name);
} catch (IOException | IllegalArgumentException e) {
throw new XmlPullParserException(String.format("Failed to add artifact '%s'", name), reader, e);
......