You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daniel Rabe <dr...@opentext.com> on 2003/11/25 02:55:10 UTC

Overriding javadoc goals

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


Re: Overriding javadoc goals

Posted by Jason van Zyl <jv...@maven.org>.
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
jason@zenplex.com
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Overriding javadoc goals

Posted by di...@multitask.com.au.
Can you de-register the javadoc report?
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/



Daniel Rabe <dr...@opentext.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org