[ 
http://jira.codehaus.org/browse/MOJO-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99127
 ] 

Carlos Sanchez commented on MOJO-693:
-------------------------------------

the chances depend a lot on you, I have most of it applied, but

- you need to add the license header to your new files for legal reasons
- your path included changes to the xml files that shouldn't be changed 
(encoding issues?)
- system.out is not very nice
- I had to upload the dockbook jar and add minimal info to the pom, you can't 
repackage the docbook jar in a different way as they provide it and put it in 
org.docbook, so I removed the net/sourceforge/docbook subfolders and changed 
the code

Now I'm getting a MalformedURLException (I was playing with the resource:// 
values but I don't think that matters)

java.lang.RuntimeException: Unable to get a transformer instance from source 
resource://net/xhtml/docbook.xsl
        at 
org.codehaus.mojo.docbook.OLinkDBUpdater.updateOLinkDatabase(OLinkDBUpdater.java:170)
        at 
org.codehaus.mojo.docbook.OLinkDBUpdater.update(OLinkDBUpdater.java:108)
        at 
org.codehaus.mojo.docbook.TransformMojo.execute(TransformMojo.java:256)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: java.net.MalformedURLException: 
unknown protocol: resource
        at 
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:683)
        at 
org.codehaus.mojo.docbook.OLinkDBUpdater.updateOLinkDatabase(OLinkDBUpdater.java:166)
        ... 20 more
Caused by: javax.xml.transform.TransformerConfigurationException: 
javax.xml.transform.TransformerException: java.net.MalformedURLException: 
unknown protocol: resource
        at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
        at 
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:666)
        ... 21 more
Caused by: javax.xml.transform.TransformerException: 
java.net.MalformedURLException: unknown protocol: resource
        at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:819)
        ... 22 more
Caused by: java.net.MalformedURLException: unknown protocol: resource
        at java.net.URL.<init>(URL.java:574)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
        at 
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
        at 
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:795)
        ... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Mon Jun 11 13:12:09 PDT 2007
[INFO] Final Memory: 8M/16M
[INFO] ------------------------------------------------------------------------




if you add the license headers in a new patch I think it's ready to be 
committed if you later look at the error

> DocBook Profiling Support
> -------------------------
>
>                 Key: MOJO-693
>                 URL: http://jira.codehaus.org/browse/MOJO-693
>             Project: Mojo
>          Issue Type: New Feature
>          Components: docbook
>            Reporter: Lars Trieloff
>         Attachments: maven-docbook-profiling.patch, 
> maven-docbook-profiling.patch, maven-docbook-profiling.patch, MOJO-693.txt
>
>
> The following patch contains my previous patches (MOJO-617 MOJO-485 MOJO-484) 
> for the docbook plugin and adds support for DocBook profiling. This allows to 
> generate a Linux and a Windows version of the documentation from one single 
> DocBook document.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to