From: Siegfried G. <sie...@it...> - 2004-11-15 07:39:01
|
Hi Felipe, don't know if this is coincidence or not but we have some activities on=20 the maven-plugins site regarding the sdocbooc plugin (see below) > The soggested plugin is messy and produces a bad formatted > documentation.. Can you help me on how to use the default plugin Can you send me/us a sample so that we can reproduce the behaviour?! In=20 the case of a real problem it would be helpful if we could use your=20 document as test sample. >Provider org.apache.xalan.processor.TransformerFactoryImpl not found >com.werken.werkz.UnattainableGoalException: Unable to obtain goal [docbo= ok:trans >form] -- C:\Documents and Settings\Administrador\.maven\cache\maven-docb= ook-plug >in-1.2\plugin.jelly:42:9: <ant:style> Provider org.apache.xalan.processo= r.Transf >ormerFactoryImpl not found > at com.werken.werkz.Goal.fire(Goal.java:646) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:19= 3) > at org.apache.maven.plugin.PluginManager.attainGoals(PluginManag= er.java: >634) This looks like not finding XALAN on the classpath. Having said that I'm = not sure about your version since the latest is 1.4 SNAPSHOT ... Cheers, Siegfried Goeschl ?-------- Original Message -------- Subject: Maven-plugins-developer digest, Vol 1 #65 - 2 msgs Date: Sun, 14 Nov 2004 20:21:47 -0800 From: mav...@li... Reply-To: mav...@li... To: mav...@li... Send Maven-plugins-developer mailing list submissions to mav...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/maven-plugins-developer or, via email, send a message with subject or body 'help' to mav...@li... You can reach the person managing the list at mav...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Maven-plugins-developer digest..." Today's Topics: 1. Re: Docbook (Per Olesen) 2. RE: Docbook (Carlos Sanchez) --__--__-- Message: 1 From: Per Olesen <po...@no...> Organization: Nordija A/S To: mav...@li... Subject: Re: [Maven-plugins-developer] Docbook Date: Sun, 14 Nov 2004 09:45:57 +0100 Cc: "Carlos Sanchez" <ap...@ca...> Hi Carlos, > I see last sdocbook plugin version is quite old, is it discontinued? It is not discontinued, it has just not had any release in a long time :-= ) I=20 put up the current 1.4-SNAPSHOT a long time ago with the intention of=20 releasing it when it had had some testing. That is some time ago now. > Can I improve and release it? Certainly, do you have anything special in mind? If it is simple, maybe i= t is=20 easiest if you simply provide me with a patch!? I myself would like to include newest version of the docbooks stylesheets= ,=20 even though you can point to outside installation of those now. > Maybe it's a good idea substitute the maven docbook plugin by this one. Maybe and maybe not. I do not really know how much relation these two pro= jects=20 have with eachother (maven and maven-plugins), how maven controls their=20 plugins, how many users the other plugin has etc. (I do not even know if = this=20 plugin has few or many users, though I would guess on few). /Per --=20 Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10 email: po...@no... - cell#: +45 23 38 95 81 --__--__-- Message: 2 From: "Carlos Sanchez" <ca...@ap...> To: "'Per Olesen'" <po...@no...>, "'Maven-plugins-developer'" <Mav...@li...urceforge.n= et> Subject: RE: [Maven-plugins-developer] Docbook Date: Sun, 14 Nov 2004 16:14:10 +0100 This is a multi-part message in MIME format. ------=3D_NextPart_000_0003_01C4CA64.FB3E9720 Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: 7bit Hi, I'd like this patch to be applied and release a new version of the plugin= . You should also remove the maven.xml. I think maven docbook should be removed as it seems to be discontinued an= d not very useful, and this one renamed from sdocbook to docbook. It shouldn't be included in maven as it depends in jimi, which c= an't be redistributed. What do you think about? I have used this code in maven.xml to use another stylesheet version and = custom stylesheets. It'd be great if the plugin could be more customizable, in the meantime it can be added to the docs. <postGoal name=3D"sdocbook:prepare-filesystem"> <j:set var=3D"unzipped" value=3D"false" /> <util:available file=3D"${maven.sdocbook.generated.fo}"> <j:set var=3D"unzipped" value=3D"true" /> <echo>Using previusly unzipped docbook files</echo> </util:available> <j:if test=3D"${!unzipped}"> <!-- unzip docbook files --> <ant:unzip dest=3D"${maven.build.dir}" src=3D"${pom.getDependencyPath('docbook:docbook-xsl')}"/> =20 <!-- use a custom fo stylesheet --> <move file=3D"${maven.sdocbook.stylesheets.dir}/fo/docbook.xs= l" tofile=3D"${maven.sdocbook.stylesheets.dir}/fo/docbook-ba= k.xsl"/> <copy file=3D"${maven.sdocbook.src.dir}/styles/fo/docbook.xsl= " todir=3D"${maven.sdocbook.stylesheets.dir}/fo"/> <!-- use a custom html stylesheet --> <move file=3D"${maven.sdocbook.stylesheets.dir}/html/docbook.= xsl" tofile=3D"${maven.sdocbook.stylesheets.dir}/html/docbook-= bak.xsl"/> <copy file=3D"${maven.sdocbook.src.dir}/styles/html/docbook.x= sl" todir=3D"${maven.sdocbook.stylesheets.dir}/html"/> <copy todir=3D"${maven.sdocbook.stylesheets.dir}"> <fileset dir=3D"${maven.sdocbook.src.dir}/images"/> </copy> </j:if> </postGoal> With this properties: maven.sdocbook.resources.include=3D**/*.gif,**/*.svg,**/*.jpg maven.sdocbook.stylesheets.dir=3D${maven.build.dir}/docbook-xsl-1.66.1 and <dependency> <groupId>docbook</groupId> <artifactId>docbook-xsl</artifactId> <version>1.66.1</version> <url>http://docbook.sourceforge.net</url> <type>zip</type> </dependency> Custom stylesheets can be found at http://cvs.sourceforge.net/viewcvs.py/= acegisecurity/acegisecurity/docbook/styles/html/ and http://cvs.sourceforge.net/viewcvs.py/acegisecurity/acegisecurity/docbook= /styles/fo=20 It needs some testing, maybe for a 1.5 version Regards > -----Original Message----- > From: mav...@li...=20 > [mailto:mav...@li...]=20 > On Behalf Of Per Olesen > Sent: Sunday, November 14, 2004 9:46 AM > To: mav...@li... > Cc: Carlos Sanchez > Subject: Re: [Maven-plugins-developer] Docbook >=20 > Hi Carlos, >=20 > > I see last sdocbook plugin version is quite old, is it discontinued? >=20 > It is not discontinued, it has just not had any release in a=20 > long time :-) I put up the current 1.4-SNAPSHOT a long time=20 > ago with the intention of releasing it when it had had some=20 > testing. That is some time ago now. >=20 > > Can I improve and release it? >=20 > Certainly, do you have anything special in mind? If it is=20 > simple, maybe it is easiest if you simply provide me with a patch!? >=20 > I myself would like to include newest version of the docbooks=20 > stylesheets, even though you can point to outside=20 > installation of those now. >=20 > > Maybe it's a good idea substitute the maven docbook plugin=20 > by this one. >=20 > Maybe and maybe not. I do not really know how much relation=20 > these two projects have with eachother (maven and=20 > maven-plugins), how maven controls their plugins, how many=20 > users the other plugin has etc. (I do not even know if this=20 > plugin has few or many users, though I would guess on few). >=20 > /Per >=20 > -- > Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10 > email: po...@no... - cell#: +45 23 38 95 81 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Maven-plugins-developer mailing list > Mav...@li... > https://lists.sourceforge.net/lists/listinfo/maven-plugins-developer >=20 >=20 ------=3D_NextPart_000_0003_01C4CA64.FB3E9720 Content-Type: text/plain; name=3D"patch.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=3D"patch.txt" Index: plugin.jelly =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D RCS file: /cvsroot/maven-plugins/maven-plugins/sdocbook/plugin.jelly,v retrieving revision 1.5 diff -u -r1.5 plugin.jelly --- plugin.jelly 12 Apr 2004 09:42:05 -0000 1.5 +++ plugin.jelly 13 Nov 2004 21:04:02 -0000 @@ -92,7 +92,7 @@ <j:set var=3D3D"basename" =3D value=3D3D"${file.name.substring(0,index)}"/> =3D20 <!-- Use XSLT processor to transform DOCBOOK into HTML --> =3D= 20 - <java classname=3D3D"org.apache.xalan.xslt.Process" fork=3D3D"yes"= > + <java classname=3D3D"org.apache.xalan.xslt.Process" fork=3D3D"yes"= =3D failonerror=3D3D"true"> <jvmarg value=3D3D"-Xbootclasspath/p:${_bootclasspath}"/> <classpath> =3D20 <pathelement =3D location=3D3D"${plugin.getDependencyPath('avalon-framework')}"/> @@ -181,7 +181,7 @@ <j:set var=3D3D"index" value=3D3D"${file.name.lastIndexOf('.')}"/> <j:set var=3D3D"basename" =3D value=3D3D"${file.name.substring(0,index)}"/> =3D20 - <java classname=3D3D"org.apache.xalan.xslt.Process" fork=3D3D"yes"= > + <java classname=3D3D"org.apache.xalan.xslt.Process" fork=3D3D"yes"= =3D failonerror=3D3D"true"> <jvmarg value=3D3D"-Xbootclasspath/p:${_bootclasspath}"/> <classpath> =3D20 <pathelement =3D location=3D3D"${maven.sdocbook.stylesheets.dir}/extensions/xalan25.jar"/> @@ -191,9 +191,11 @@ <pathelement location=3D3D"${catalogManagerPropertiesDir}"/>= =3D <!-- includes the users CatalogManager.properties in classpath --> </j:if> </classpath> + <sysproperty key=3D3D"user.language" value=3D3D"en"/> <sysproperty key=3D3D"javax.xml.parsers.DocumentBuilderFactory" = =3D value=3D3D"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> <sysproperty key=3D3D"javax.xml.parsers.SAXParserFactory" =3D value=3D3D"org.apache.xerces.jaxp.SAXParserFactoryImpl"/> + <j:if test=3D3D"${useEntityResolver =3D3D=3D3D 'true'}"> <arg value=3D3D"-ENTITYRESOLVER"/> <arg =3D value=3D3D"org.apache.xml.resolver.tools.CatalogResolver"/> @@ -206,6 +208,7 @@ <arg value=3D3D"${maven.sdocbook.generated.fo}/${basename}.fo"/> <arg value=3D3D"-xsl"/> <arg =3D value=3D3D"${maven.sdocbook.stylesheets.dir}/fo/docbook.xsl"/> + <arg line=3D3D"${maven.sdocbook.fo.params}"/> </java> =3D20 @@ -249,7 +252,7 @@ <j:set var=3D3D"basename" =3D value=3D3D"${file.name.substring(0,index)}"/> =3D20 <!-- Run FOP to transform FO into PDF --> - <java classname=3D3D"org.apache.fop.apps.Fop" fork=3D3D"yes"> + <java classname=3D3D"org.apache.fop.apps.Fop" fork=3D3D"yes" =3D failonerror=3D3D"true"> <jvmarg value=3D3D"-Xbootclasspath/p:${_bootclasspath}"/> <classpath> =3D20 <pathelement =3D location=3D3D"${plugin.getDependencyPath('avalon-framework')}"/> @@ -261,6 +264,7 @@ <sysproperty key=3D3D"user.language" value=3D3D"en"/> <sysproperty key=3D3D"javax.xml.parsers.DocumentBuilderFactory" = =3D value=3D3D"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> <sysproperty key=3D3D"javax.xml.parsers.SAXParserFactory" =3D value=3D3D"org.apache.xerces.jaxp.SAXParserFactoryImpl"/> + <arg value=3D3D"-fo"/> <arg value=3D3D"${file.absolutePath}"/> <arg value=3D3D"-pdf"/> ------=3D_NextPart_000_0003_01C4CA64.FB3E9720-- --__--__-- _______________________________________________ Maven-plugins-developer mailing list Mav...@li... https://lists.sourceforge.net/lists/listinfo/maven-plugins-developer End of Maven-plugins-developer Digest __________ NOD32 1.922 (20041112) Information __________ Diese E-Mail wurde vom NOD32 Antivirus System gepr=FCft http://www.nod32.com --=20 Siegfried Goeschl IT20one GmbH Bandgasse 2/22 1070 Wien |