Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.4
-
None
Description
When doing a release of a Maven project, I get the stacktrace below. Since JDK 9 b175, the java.version system property is simply "9". However, Doxia depends on commons-lang 2.4, which assumes java.version has at least 3 characters.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181) ... 21 more Caused by: java.lang.ExceptionInInitializerError at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.generateDocument(DefaultSiteRenderer.java:732) at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:268) at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:337) at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:178) at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:132) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116) at java.base/java.lang.String.substring(String.java:1885) at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133) at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818) ... 27 more
Attachments
Issue Links
- is depended upon by
-
MSITE-796 Unable to generate site with JDK9 - java.lang.ExceptionInInitializerError / Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
- Closed
- is related to
-
DOXIASITETOOLS-178 Upgrade to Commons Lang 3
- Closed
- mentioned in
-
Page Loading...