Hello I am having problem using XRadar with maven. I get all the reports via maven and the I Itry to aggregate them in XRadar but I get this error:
ERROR: 'File not found: Malformed URL D:\hudson_home\jobs\Latu-xradar\workspace\target\site\pmd.xml(base file://D:/hudson_home/jobs/Latu-xradar/workspace/)'
ERROR: 'com.sun.org.apache.xalan.internal.xsltc.TransletException: java.io.FileNotFoundException: D:\hudson_home\jobs\Latu-xradar\workspace\target\site\pmd.xml'
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xalan.internal.xsltc.TransletException: java.io.FileNotFoundException: D:\hudson_home\jobs\Latu-xradar\workspace\target\site\pmd.xml
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:06 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
[INFO] Merging data from tool's reports.
[DEBUG] The resource 'config/xradar-config-default.xml' found using the org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader@1522de2.
[DEBUG] The resource 'config/default-release.properties' found using the org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader@1522de2.
[INFO] Post processing merged files.
[Fatal Error] :1:1: Premature end of file.
22.1.2010 10:44:07 org.sourceforge.xradar.XSLTMerger merge
SEVERE: Premature end of file.
The file is obviously there (I am gathering the statistics on Hudson) and the proxy is set in maven settings.xml. Any idea what might be causing this issue?
Thanks
Petr Macek
This happens due to default XML/XSLT implementation that come with Java-5/6. A workaround is to put the libs in '<xradar>/lib/endorsed' into '<java>/lib/endorsed'.
With Ant you can set the java environment variable 'java.endorsed.dirs' to '<xradar>/lib/endorsed', Maven suppresses this Java environment variable.
The ideal solution would be if the xradar-maven-plugin would support a parameter like that such as the compile and surefire plugins do.