Hello,

I tried your plugin ona sample docbook document but nothing got generated using either of
docbkx:generate-html
docbkx:generate-fo
docbkx:generate-manpages

Well, the directory did at target\docbkx\html for the first case.
Here is command line output:

C:\Documents and Settings\borutb\Desktop\Workspace\feed-index-server>mvn -X docbkx:generate-html
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\borutb\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\Documents and Settings\borutb\Desktop\lib\maven-2.0.4\bin\..\conf\pl
ugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'docbkx'.
[DEBUG] Retrieving parent-POM: com.agilejava.docbkx:docbkx::0.1 for project: com.agilejava.docbkx:docbkx-maven-plugin:maven-plugin
:1.69.1.0 from the repository.
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugin-parent::2.0 for project: null:maven-compiler-plugin:maven-plu
gin:2.0 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-site-plugin:maven-plugin:2.0-beta
-5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the
 repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Unnamed - com.interseek:feed-index-server:jar:1.0
[INFO]    task-segment: [docbkx:generate-html]
[INFO] ----------------------------------------------------------------------------
[DEBUG] com.agilejava.docbkx:docbkx-maven-plugin:maven-plugin:1.69.1.0:runtime (selected for runtime)
[DEBUG]   org.docbook:docbook-xml:jar:4.4:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: com.agilejava.docbkx:docbkx::0.1 for project: null:docbkx-maven-base:jar:0.1 from the repository.
[DEBUG]   com.agilejava.docbkx:docbkx-maven-base:jar:0.1:runtime (selected for runtime)
[DEBUG]     jaxen:jaxen:jar:1.0-FCS:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-project:jar:2.0 from the repository.
[DEBUG]     org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
[DEBUG]       org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
[DEBUG]         classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
[DEBUG]         junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact:jar:2.0 from the repositor
y.
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact-manager:jar:2.0 from the r
epository.
[DEBUG]       org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-repository-metadata:jar:2.0 from th
e repository.
[DEBUG]         org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
[DEBUG]         org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-profile:jar:2.0 from the repository.
[DEBUG]       org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
[DEBUG]     xml-resolver:xml-resolver:jar:1.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-plugin-api:jar:2.0 from the reposit
ory.
[DEBUG]     org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: plexus:plexus-root::1.0 for project: plexus:plexus-utils:jar:1.0.1 from the repository.
[DEBUG]     plexus:plexus-utils:jar:1.0.1:runtime (selected for runtime)
[DEBUG]     commons-io:commons-io:jar:1.1:runtime (selected for runtime)
[DEBUG]     saxpath:saxpath:jar:1.0-FCS:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.4 for project: null:plexus-archiver:jar:1.0-alpha-5 from
 the repository.
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: org.codehaus.plexus:plexus-components:pom:1.1.4 from
 the repository.
[DEBUG]     org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-5:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
[DEBUG] Configuring mojo 'com.agilejava.docbkx:docbkx-maven-plugin:1.69.1.0:generate-html' -->
[DEBUG]   (f) generateToc = /book toc
[DEBUG]   (f) ignoreImageScaling = 1
[DEBUG]   (f) includes = interface-home.xml,progress-report.xml
[DEBUG]   (f) sectionAutolabel = 1
[DEBUG]   (f) sectionLabelIncludesComponentLabel = 1
[DEBUG]   (f) sourceDirectory = C:\Documents and Settings\borutb\Desktop\Workspace\feed-index-server\src\docbkx
[DEBUG]   (f) stylesheetLocation = META-INF/docbkx/html/docbook.xsl
[DEBUG]   (f) targetDirectory = C:\Documents and Settings\borutb\Desktop\Workspace\feed-index-server\target\docbkx\html
[DEBUG]   (f) targetFileExtension = html
[DEBUG] -- end configuration --
[INFO] [docbkx:generate-html]
[INFO] Processing files matching interface-home.xml.
[INFO] Processing files matching progress-report.xml.
[INFO] Stylesheet location: jar:file:/C:/Documents and Settings/borutb/.m2/repository/com/agilejava/docbkx/docbkx-maven-plugin/1.6
9.1.0/docbkx-maven-plugin-1.69.1.0.jar!/META-INF/docbkx/html/docbook.xsl
[INFO] Setting catalog files to: jar:file:/C:/Documents and Settings/borutb/.m2/repository/org/docbook/docbook-xml/4.4/docbook-xml
-4.4.jar!/catalog.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Fri May 19 12:33:52 CEST 2006
[INFO] Final Memory: 7M/50M
[INFO] ------------------------------------------------------------------------


And here is an example Docbook document:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<book>
    <bookinfo>
        <title>DocBook document example</title>
        <author>
            <firstname>Ovidiu</firstname>
            <surname>Predescu</surname>
        </author>
        <copyright>
            <year>2001</year>
            <holder>Ovidiu Predescu</holder>
        </copyright>
    </bookinfo>
    <preface>
        <title>Example document</title>
        <para>A simple DocBook example document.</para>
    </preface>
    <chapter>
        <title>DocBook and XSLT-process mode for GNU Emacs/XEmacs</title>
        <para>The <emphasis>XSLT-process</emphasis> mode, when used with the
  DocBook-XSL stylesheets makes GNU Emacs/XEmacs the ideal DocBook
  processor.</para>
        <para>To find out more on how to use the
  <emphasis>XSLT-process</emphasis> mode for DocBook processing, point
  your browser to <ulink url="" class="moz-txt-link-rfc2396E" href="http://xslt-process.sourceforge.net/docbook.php">"http://xslt-process.sourceforge.net/docbook.php">http://xslt-process.sourceforge.net/docbook.php</ulink>.</para>
    </chapter>
</book>

Regards,
Borut

On 12.5.2006 22:06, Wilfred Springer wrote:
All,

With JavaOne around the corner, I figured it would be good time to make
some announcements, aka shameless advertising.

For those of you who are not completely satisfied by the kind of DocBook
support that Maven has on board, or the Mojo at mojo.codehaus.org,
here's a chance to try something different.

I just pushed a version from my own personal DocBook supporting plugin
to the Maven repository at http://agilejava.com/maven/ (which is -
contrary to what you might expect from it by its name - a Maven 2
repository). 

Being the father of this baby, I am of course convinced that it has some
nice distinguishing features, including:

     1. Based on the DocBook XSL stylesheets, however...
     2. Completely self-contained; you don't need to install the DocBook
        XSL stylesheets on your system. You don't even need to have the
        DTD's on your system, and you can run the plugin if you are
        offline.
     3. Dedicated configuration support for a huge collection of
        properties to influence the transformation. (In fact, it has
        dedicated properties for all XSL parameters documented in the
        DocBook XSL distribution.)
     4. It has been built using a dedicated Maven plugin to generate
        DocBook Maven plugins.

Feel free to give it a try. And read more about it on my web log:
http://agilejava.com/blog/ 

Cheers, 

Wilfred

  

--
bLOG
--
Naključna izjava tedna iz tednika Mladina:

Reply via email to