You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/11/28 20:04:11 UTC
[jira] [Commented] (MSITE-752) Cannot use server side includes.
[ https://issues.apache.org/jira/browse/MSITE-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15030629#comment-15030629 ]
Michael Osipov commented on MSITE-752:
--------------------------------------
And here is exactly the problematic spot:
{code:java}
buf.append( LESS_THAN ).append( BANG ).append( MINUS ).append( MINUS ).append( SPACE );
buf.append( cmt );
buf.append( SPACE ).append( MINUS ).append( MINUS ).append( GREATER_THAN );
{code}
in [{{XhtmlBaseSink}}|http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven.doxia/doxia-core/1.6/org/apache/maven/doxia/sink/XhtmlBaseSink.java?av=f#1881], line 1881+.
Please checkout that module, remove those spaces, install locally and depend your MSITE on the fixed SNAPSHOT. If that works, we can solve your problem. The other problem is how the {{XhtmlBaseParser}} [parses comments|http://grepcode.com/file/repo1.maven.org/maven2/org.apache.maven.doxia/doxia-core/1.4/org/apache/maven/doxia/parser/XhtmlBaseParser.java#789]. It removes too much of the formatting between {{<!--}} and {{-->}}.
> Cannot use server side includes.
> --------------------------------
>
> Key: MSITE-752
> URL: https://issues.apache.org/jira/browse/MSITE-752
> Project: Maven Site Plugin
> Issue Type: Bug
> Affects Versions: 3.4
> Environment: Java version: 1.8.0_45, vendor: Oracle Corporation
> Java home: /usr/local/jdk-1.8.0/jre
> Default locale: de_DE, platform encoding: UTF-8
> Reporter: Christian Schulte
> Attachments: MSITE-752.zip
>
>
> Please see the attached example project. The 'index.xml' document contains some server side include directives. Executing 'mvn site', the server side includes won't work as the comments have been processed in a way that
> {code}
> <!--#set var="code" value="" -->
> {code}
> becomes
> {code}
> <!-- #set var="code" value="" -->
> {code}
> Note the extra space.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)