[ 
https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herve Boutemy updated MJAVADOC-171:
-----------------------------------

    Attachment: mjavadoc-171-b.zip

ok, I reproduced the case with every m-javadoc-p version, and with Maven 2.2.1

here is the result (and the script to calculate it):

{noformat}$ ./mjavadoc-171.sh 
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.5.0_22
Java home: /home/opt/jdk1.5.0_22/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-11-generic" arch: "amd64" Family: "unix"
m-javadoc-p 2.0: 3 xmlbeans, 0 compiler
m-javadoc-p 2.1: 3 xmlbeans, 0 compiler
m-javadoc-p 2.2: 3 xmlbeans, 0 compiler
m-javadoc-p 2.3: 18 xmlbeans, 0 compiler
m-javadoc-p 2.4: 0 xmlbeans, 0 compiler
m-javadoc-p 2.5: 24 xmlbeans, 8 compiler
m-javadoc-p 2.6: 24 xmlbeans, 8 compiler
m-javadoc-p 2.6.1: 24 xmlbeans, 8 compiler
m-javadoc-p 2.7: 24 xmlbeans, 8 compiler
m-javadoc-p 2.8: 24 xmlbeans, 8 compiler{noformat}

Here is a few facts I got that can explain some results:
- test-javadoc goal was added in m-javadoc-p 2.3
- javadoc-aggregate and test-aggregate were added in m-javadoc-p 2.5, and they 
"Invoke the execution of the lifecycle phase generate-sources prior to 
executing itself."

this does not really explain why, but here are some facts

some numbers are different from yours: can you run the script on your machine 
and share your results?

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-171
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.0.8, Linux
>            Reporter: Stefan Seidel
>            Assignee: Herve Boutemy
>            Priority: Critical
>             Fix For: 2.8
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc-171-b.zip, mjavadoc171.patch, 
> mjavadoc-171.zip, mvnexec.zip
>
>
> In a multi-module project, all modules are "built" twice for each module. 
> This leads to huge performance problems when many modules are in a project. 
> In the attached sample project, the xmlbeans plugin is executed 27 times for 
> a project with one parent module and two submodules. 18 of these executions 
> can be attributed to the javadoc plugin. With version 2.2, only 3 invocations 
> (once for each project) are caused by the javadoc plugin.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to