You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Babak Vahdat (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/23 15:09:40 UTC
[jira] [Issue Comment Edited] (CAMEL-3774) camel-manual generation
fails during release process
[ https://issues.apache.org/jira/browse/CAMEL-3774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13155872#comment-13155872 ]
Babak Vahdat edited comment on CAMEL-3774 at 11/23/11 2:08 PM:
---------------------------------------------------------------
@Hadrian,
I'm afraid I was wrong with my assumption as I didn't check [1] before commenting on this ticket where the default value of contentDivClass member variable of the Mojo HtmlToPdfMojo gets overriden with the one injected through the plugin configuration, that's 'wiki-content maincontent':
{code}
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>maven-html-to-pdf</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<page>http://camel.apache.org/book-in-one-page.html</page>
<contentDivClass>wiki-content maincontent</contentDivClass>
<head><![CDATA[
<link href="file:${basedir}/src/styles/print.css" rel="stylesheet" type="text/css" />
<style type="text/css">
@page :left {
@top-left {
content: "Apache Camel ${project.version} Developer's Manual";
}
}
</style>
]]></head>
<replaceToken><![CDATA[
<h3 id="replaceme">.*</h3>
]]></replaceToken>
<replaceValue><![CDATA[
<h3>Version ${project.version}</h3>
]]></replaceValue>
</configuration>
</plugin>
{code}
If what I claimed was right it should have always systematically failed which is apparently not the case. Still looking into it in the hope of some findings.
[1] https://svn.apache.org/repos/asf/camel/trunk/tooling/camel-manual/pom.xml
was (Author: bvahdat):
@Hadrian,
I'm afraid I was wrong with my assumption as I didn't check [1] before commenting on this ticket where the default value gets overriden with the one injected through the plugin configuration, that's 'wiki-content maincontent':
{code}
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>maven-html-to-pdf</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
<configuration>
<page>http://camel.apache.org/book-in-one-page.html</page>
<contentDivClass>wiki-content maincontent</contentDivClass>
<head><![CDATA[
<link href="file:${basedir}/src/styles/print.css" rel="stylesheet" type="text/css" />
<style type="text/css">
@page :left {
@top-left {
content: "Apache Camel ${project.version} Developer's Manual";
}
}
</style>
]]></head>
<replaceToken><![CDATA[
<h3 id="replaceme">.*</h3>
]]></replaceToken>
<replaceValue><![CDATA[
<h3>Version ${project.version}</h3>
]]></replaceValue>
</configuration>
</plugin>
{code}
If what I claimed was right it should have always systematically failed which is apparently not the case. Still looking into it in the hope of some findings.
[1] https://svn.apache.org/repos/asf/camel/trunk/tooling/camel-manual/pom.xml
> camel-manual generation fails during release process
> ----------------------------------------------------
>
> Key: CAMEL-3774
> URL: https://issues.apache.org/jira/browse/CAMEL-3774
> Project: Camel
> Issue Type: Task
> Affects Versions: 2.6.0
> Reporter: Hadrian Zbarcea
> Assignee: Hadrian Zbarcea
> Fix For: Future
>
>
> It works during a regular mvn install, but it fails during release:prepare. The bug is somewhere in the maven-html-to-pdf plugin. I hope a mock release using mvn -X will reveal the problem, but would take a frustrating amount of time. For now the available info is the output:
> {code}
> [INFO] [INFO] [html-to-pdf:compile {execution: default}]
> [INFO] [INFO] Downloading: http://camel.apache.org/book-in-one-page.html
> [INFO] ERROR: 'NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.'
> [INFO] [ERROR] Download or validation of 'http://camel.apache.org/book-in-one-page.html' failed: org.apache.camel.CamelException: Failed to convert the HTML to tidy Markup
> [INFO] [INFO] Stored dummy file: /w1/apache/release/camel270/tooling/camel-manual/target/site/manual/camel-manual-2.7.0.html since download of http://camel.apache.org/book-in-one-page.html failed.
> {code}
> The error points to a DOM related issue, but since the downloaded manual gets overwritten with the dummy file, I have no idea if the download got interrupted, or in what way the source gets corrupted.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira