Doh! Cut-and-paste typo... I was working on two problems at once (one with
JavaDoc, one with JUnit). My example should have shown the javadoc plugin
report being registered! Sorry! (If I don't register the javadoc plugin
report, then it doesn't show up in the Project Reports section of the web
site).

--Daniel Rabe

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 10:19 PM
To: Maven Users List
Subject: Re: Overriding javadoc goals


On Mon, 2003-11-24 at 20:55, Daniel Rabe wrote:
> 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 fact we tell people to continue using Ant all the time. If Ant works
for you use Ant.

> 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?

You should only be getting the junit report running. You shouldn't even
need to override the javadoc goal. This is a bug if that is happening.

> Thanks,
> Daniel Rabe
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to