Thanks for the various suggestions that people posted. I think I got this
figured out (finally)! Here's what I do... tell me if I'm insane.
First I run ant to generate my javadocs:
ant javadoc > target\javadoc\report.txt
Then I run maven. The postGoal for xdoc:register-reports contains these
lines:
<doc:registerReport
name="JavaDocs"
pluginName=""
link="apidocs/index"
description="JavaDoc API documentation."/>
<doc:registerReport
name="JavaDoc Report"
pluginName=""
link="javadoc"
description="Report on the generation of JavaDoc."/>
That just ensures that the links show up in my Project Reports.
Finally, my preGoal for xdoc:copy-user-resources converts the javadoc report
output to xml:
<doc:text-xdoc
title="Javadoc Report"
section="Javadoc Report"
inputFile="${maven.build.dir}/javadoc/report.txt"
output="${maven.build.dir}/generated-xdocs/javadoc.xml"/>
And the rest is automagic!
Thanks again to all who provided suggestions.
Daniel Rabe
-----Original Message-----
From: Daniel Rabe [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 7:44 PM
To: 'Maven Users List'
Subject: RE: Overriding javadoc goals
Yes, but then the javadoc report doesn't appear in the "Project Reports"
(what I was calling the table of contents).
--DanR
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 7:28 PM
To: Maven Users List
Subject: Re: Overriding javadoc goals
Can you de-register the javadoc report?
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Daniel Rabe <[EMAIL PROTECTED]> wrote on 25/11/2003 12:55:10 PM:
> I'm trying to make maven coexist peacefully with ant, and not having
much
> luck.
>
> I'd like to use maven just for the website generation. I already have
ant
> files that compile, run junit, run javadoc, etc. Our developers all
> use
ant,
> and know how to maintain the ant build files. Please don't tell me not
to
> use ant -- that just isn't going to be a reality on this project!
>
> In this particular case, I'd like to use ant to run javadoc, and use
maven
> to build the web site. I run my ant script to generate the javadoc to
the
> expected directory (./target/docs/apidocs, with a report in
> ./target/javadocs/report.txt). My project.xml contains: <reports>
> ...
> <report>maven-junit-report-plugin</report>
> </reports>
> That way the web site will have the junit link in its table of
> contents.
>
> My maven.xml contains:
> <goal name="javadoc:generate"/>
> I was hoping this would prevent the javadoc plugin from running
javadoc...
> but it doesn't. It runs javadoc, overwriting what I did with ant. Is
there
> any way around this?
>
> Thanks,
> Daniel Rabe
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]