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

Herve Boutemy closed MJAVADOC-171.
----------------------------------

    Resolution: Fixed
      Assignee: Herve Boutemy

part of the problem is fixed in MSHARED-266 (will work only for Maven 3), the 
remaining issue is in Maven Core with MNG-2184

I attached check test, with following results
{noformat}Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 
2014-02-14T18:37:52+01:00)
Maven home: /home/herve/local/maven2
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "amd64", family: "unix"
m-javadoc-p 2.0: 2 xmlbeans, 0 compiler, 2 javadoc
m-javadoc-p 2.1: 2 xmlbeans, 0 compiler, 2 javadoc
m-javadoc-p 2.2: 2 xmlbeans, 0 compiler, 2 javadoc
m-javadoc-p 2.3: 12 xmlbeans, 0 compiler, 4 javadoc
m-javadoc-p 2.4: 0 xmlbeans, 0 compiler, 4 javadoc
m-javadoc-p 2.5: 4 xmlbeans, 2 compiler, 4 javadoc
m-javadoc-p 2.6: 10 xmlbeans, 4 compiler, 6 javadoc
m-javadoc-p 2.6.1: 10 xmlbeans, 4 compiler, 6 javadoc
m-javadoc-p 2.7: 10 xmlbeans, 4 compiler, 6 javadoc
m-javadoc-p 2.8: 10 xmlbeans, 4 compiler, 6 javadoc
m-javadoc-p 2.9: 10 xmlbeans, 4 compiler, 6 javadoc
m-javadoc-p 2.9.1: 10 xmlbeans, 4 compiler, 6 javadoc{noformat}

6 javadocs is normal: main and test for the 2 modules and aggregated in parent
4 compiler: should be 2, but hit by MNG-2184 = Maven doesn't remember that 
compiler was run during parent aggregated test javadoc which forked 
generate-test-resources phase (which is after compile)
10 xmlbeans: should be 3, but same MNG-2184 problem, which costs more since 
xmlbeans is bound to generate-resources phase


so what could be done in m-site-p (3.4 will contain the fix by default: 
MSITE-454) and m-javadoc-p is done: remaining problems are in Maven Core with 
MNG-2184

(and I now finally understand what is happenning: that was the hardest part of 
the fix :) )

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: https://jira.codehaus.org/browse/MJAVADOC-171
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Maven 2.0.8, Linux
>            Reporter: Stefan Seidel
>            Assignee: Herve Boutemy
>         Attachments: 2.2.log, 2.3.log, mjavadoc-171-b.zip, 
> mjavadoc-171-fixed-M3.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 was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to