maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Sesterhenn (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MSITE-769) Can't use property in breadcrumbs items in child module site descriptor
Date Wed, 02 Mar 2016 12:03:18 GMT

    [ https://issues.apache.org/jira/browse/MSITE-769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175491#comment-15175491
] 

Jörg Sesterhenn commented on MSITE-769:
---------------------------------------

I ran into the same issue. Is there a workaround that allows using Version 3.5 with this kind
of parent_site.xml_with_properties_in_breadcrumbs?

I believe that even if this gets fixed the change in MSITE-135 would be a problem for us,
since we expect the breadcrumb to point to the parent projects url. 
If I understand MSITE-135 right this shall no longer work.

Please give advice on how to achieve this with curent/future versions of the maven site plugin:

I want breadcrumbs to point back to parent projects like  "enterprise_parent_project_url -
parent_project_url - child_project_url - module_a_project_url" 
This worked before by deploying the site.xml with the enterprise parent pom containing something
like
{code}
<breadcrumbs>
  <item name="${project.name}" href="${project.url}/index.html"/>
</breadcrumbs>
{code}

> Can't use property in breadcrumbs items in child module site descriptor
> -----------------------------------------------------------------------
>
>                 Key: MSITE-769
>                 URL: https://issues.apache.org/jira/browse/MSITE-769
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: inheritance, site descriptor
>    Affects Versions: 3.5
>            Reporter: Tony Chemit
>            Priority: Critical
>         Attachments: MSITE-769.zip
>
>
> In a multi-module project, I have this in pom module site descriptor
> {noformat}
> <breadcrumbs>
>       <item name="${project.name}" href="${project.url}/index.html"/>
>       <item name="${project.version}" href="${project.url}/v/${siteDeployClassifier}/en/index.html"/>
>     </breadcrumbs>
> {noformat}
> While running mvn site, the build fail with this error :
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message