Closed solomax closed 7 years ago
Do you have an example project to reproduce this?
I'm using Oracle java 8 latest Maven 3.3.9 Ubuntu 16.04 all updates
Okay, reproducable using the given example project. Thank you!
I was able to reduce your problem to the following piece of Java code. As you can see, this is in no way related to the xml-maven-plugin, but due to using Xalan. As a consequence, I suggest that you continue by submitting a Xalan issue. I'll be closing the current issue.
final File xmlFile = new File("src/test/resources/gh11/errorvalues.xml");
if (!xmlFile.isFile()) {
throw new IllegalStateException("XML File not found: " + xmlFile);
}
final File xslFile = new File("src/test/resources/gh11/errortable.xsl");
if (!xmlFile.isFile()) {
throw new IllegalStateException("XSL File not found: " + xslFile);
}
final File appDir = new File("src/test/resources/gh11/app");
if (!appDir.isDirectory()) {
throw new IllegalStateException("App dir not found: " + appDir);
}
final TransformerFactory tf = TransformerFactory.newInstance();
final Transformer t = tf.newTransformer(new StreamSource(xslFile));
t.setParameter("languagesDir", appDir.getAbsolutePath());
final OutputStream os = System.out;
t.transform(new StreamSource(xmlFile), new StreamResult(os));
Thanks for investigation Unfortunately Xalan seems to be not maintained :( Latest release 2014, latest activity in user@ mailing list 2012 ....
Sorry, can't help you with that. Try using another XSL Library?
xml-maven-plugin has option to set XSL Library?
Unsure. But that is something I might help with.
Thanks a lot! Will try it and report back :)
Seems to work as expected Thanks a lot!
Hello,
we are using transform goal to generate some documentation files Yesterday I noticed generation fails with weird exception in case there is no internet connection:
mvn clean install -o
was used here is the exception detailsEverything works as expected in case there is active internet connection
Please let me know if you need sample project and/or any additional details Thanks a lot for your help