Can you take a look at what I did in the javadoc plugin. I had a similar problem and perhaps you can do the same thing?
Arnaud On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Author: ltheussl > Date: Tue Feb 14 10:29:34 2006 > New Revision: 377797 > > URL: http://svn.apache.org/viewcvs?rev=377797&view=rev > Log: > PR: MPXDOC-181 > xdoc:init is called 6 times > Introduced new -noinit goals for all goals that are called internally > while keeping the same behavior of goals that existed before. > This is not very pretty, but I guess xdoc:init is a special case. > > Modified: > maven/maven-1/plugins/trunk/xdoc/plugin.jelly > maven/maven-1/plugins/trunk/xdoc/xdocs/changes.xml > > Modified: maven/maven-1/plugins/trunk/xdoc/plugin.jelly > URL: > http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/plugin.jelly?rev=377797&r1=377796&r2=377797&view=diff > ============================================================================== > --- maven/maven-1/plugins/trunk/xdoc/plugin.jelly (original) > +++ maven/maven-1/plugins/trunk/xdoc/plugin.jelly Tue Feb 14 10:29:34 2006 > @@ -564,7 +564,7 @@ > <!-- ================================================================== --> > > <goal name="xdoc" > - prereqs="xdoc:generate-from-pom, xdoc:transform" > + prereqs="xdoc:init, xdoc:generate-from-pom-noinit, xdoc:transform-noinit" > description="Generate html project documentation xdoc sources"/> > > <goal name="xdoc:init" > @@ -662,8 +662,12 @@ > > <goal > name="xdoc:generate-from-pom" > - prereqs="xdoc:init, xdoc:i18n-validation, xdoc:register-reports" > - description="Generates xdocs for site based on project descriptor"> > + prereqs="xdoc:init, xdoc:generate-from-pom-noinit" > + description="Generates xdocs for site based on project descriptor"/> > + > + <goal > + name="xdoc:generate-from-pom-noinit" > + prereqs="xdoc:i18n-validation, xdoc:register-reports"> > > <echo>Generating xdocs from POM ... </echo> > > @@ -877,9 +881,12 @@ > <!-- C O P Y R E S O U R C E S --> > <!-- ================================================================== --> > <!-- copy resources needed for xdocs --> > + > <goal name="xdoc:copy-resources" > - prereqs="xdoc:init" > - description="copy static resources for use in xdocs generated html"> > + prereqs="xdoc:init, xdoc:copy-resources-noinit" > + description="copy static resources for use in xdocs generated html"/> > + > + <goal name="xdoc:copy-resources-noinit"> > > <util:tokenize var="allLocales" delim=", " > trim="true">${maven.xdoc.locale.default}, > ${maven.xdoc.locale.supported}</util:tokenize> > > @@ -994,8 +1001,11 @@ > <!-- copy user resources --> > <!-- Note: this should also prereq xdoc:copy-user-bundles, but that doesn't > do anything yet --> > <goal name="xdoc:copy-user-resources" > - prereqs="xdoc:init" > - description="Copy user provided resources to docs destination"> > + prereqs="xdoc:init, xdoc:copy-user-resources-noinit" > + description="Copy user provided resources to docs destination"/> > + > + > + <goal name="xdoc:copy-user-resources-noinit"> > > <j:if test="${maven.docs.src.available}"> > <log:info> > @@ -1098,15 +1108,17 @@ > <!-- ================================================================== --> > <!-- D V S L D O C U M E N T A T I O N --> > <!-- ================================================================== --> > - > + > <goal name="xdoc:transform" > - prereqs="xdoc:init" > - description="Generate html project documentation xdoc sources"> > + prereqs="xdoc:init, xdoc:transform-noinit" > + description="Generate html project documentation xdoc sources"/> > + > + <goal name="xdoc:transform-noinit"> > > <!-- use JSL in Jelly to build the documentation --> > - <attainGoal name="xdoc:copy-resources"/> > - <attainGoal name="xdoc:copy-user-resources"/> > - <attainGoal name="xdoc:jelly-transform"/> > + <attainGoal name="xdoc:copy-resources-noinit"/> > + <attainGoal name="xdoc:copy-user-resources-noinit"/> > + <attainGoal name="xdoc:jelly-transform-noinit"/> > <xdoc:unGrabClassLoader/> > </goal> > > @@ -1152,9 +1164,12 @@ > </j:if> > </goal> > > - <goal name="xdoc:jelly-transform" > - prereqs="xdoc:init, xdoc:jelly-init, xdoc:register-reports" > - description="transform xdocs using jelly/jsl rather than dvsl"> > + <goal name="xdoc:jelly-transform" > + prereqs="xdoc:init, xdoc:jelly-transform-noinit" > + description="transform xdocs using jelly/jsl rather than dvsl"/> > + > + <goal name="xdoc:jelly-transform-noinit" > + prereqs="xdoc:jelly-init, xdoc:register-reports"> > > <j:set var="destdir" value="${maven.docs.dest}"/> > <j:set var="outputencoding" value="${maven.docs.outputencoding}"/> > > Modified: maven/maven-1/plugins/trunk/xdoc/xdocs/changes.xml > URL: > http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/xdoc/xdocs/changes.xml?rev=377797&r1=377796&r2=377797&view=diff > ============================================================================== > --- maven/maven-1/plugins/trunk/xdoc/xdocs/changes.xml (original) > +++ maven/maven-1/plugins/trunk/xdoc/xdocs/changes.xml Tue Feb 14 10:29:34 > 2006 > @@ -27,6 +27,7 @@ > </properties> > <body> > <release version="1.10-SNAPSHOT" date="in SVN"> > + <action dev="ltheussl" type="fix" > issue="MPXDOC-181"><code>xdoc:init</code> was called six times during one > <code>xdoc</code> run.</action> > <action dev="ltheussl" type="add" issue="MPXDOC-191">Include > dependencies' scope in dependencies page.</action> > <action dev="ltheussl" type="add" issue="MPXDOC-190">Include the new > theme <code>maven-stylus.css</code>.</action> > <action dev="ltheussl" type="add" issue="MPXDOC-189">Document the use > of pom settings by the xdoc plugin.</action> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
