Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.5
-
None
-
Important
Description
In a multi-module project, I have this in pom module site descriptor
<breadcrumbs> <item name="${project.name}" href="${project.url}/index.html"/> <item name="${project.version}" href="${project.url}/v/${siteDeployClassifier}/en/index.html"/> </breadcrumbs>
While running mvn site, the build fail with this error :
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 1: ${project.url}/index.html at java.net.URI.create(URI.java:852) at org.apache.maven.doxia.site.decoration.inheritance.URIPathDescriptor.<init>(URIPathDescriptor.java:69) at org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler$URLContainer.rebaseLink(DefaultDecorationModelInheritanceAssembler.java:453) at org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.rebaseLinkItemPaths(DefaultDecorationModelInheritanceAssembler.java:300) at org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.mergeLinkItemLists(DefaultDecorationModelInheritanceAssembler.java:326) at org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleBodyInheritance(DefaultDecorationModelInheritanceAssembler.java:228) at org.apache.maven.doxia.site.decoration.inheritance.DefaultDecorationModelInheritanceAssembler.assembleModelInheritance(DefaultDecorationModelInheritanceAssembler.java:109) at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:1171) at org.apache.maven.doxia.tools.DefaultSiteTool.getDecorationModel(DefaultSiteTool.java:423) at org.apache.maven.plugins.site.descriptor.AbstractSiteDescriptorMojo.prepareDecorationModel(AbstractSiteDescriptorMojo.java:86) at org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo.createSiteRenderingContext(AbstractSiteRenderingMojo.java:279) at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:151) at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:135) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${project.url}/index.html at java.net.URI$Parser.fail(URI.java:2848) at java.net.URI$Parser.checkChars(URI.java:3021) at java.net.URI$Parser.parseHierarchical(URI.java:3105) at java.net.URI$Parser.parse(URI.java:3063) at java.net.URI.<init>(URI.java:588) at java.net.URI.create(URI.java:850) ... 34 more
Attachments
Attachments
Issue Links
- is depended upon by
-
MPOM-103 upgrade maven-site-plugin to 3.5.1
- Closed
- relates to
-
MSITE-135 inherited site.xml files are interpolated with the originating project's model values and not the consumer project's values
- Closed
-
DOXIASITETOOLS-158 early interpolation: support ${this.*} as expression in site.xml interpolation
- Closed