You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2011/09/03 19:36:32 UTC

[jira] Commented: (MJAVADOC-171) Modules in multi-module projects are "built" too often

    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277700#comment-277700 ] 

Herve Boutemy commented on MJAVADOC-171:
----------------------------------------

IMHO, it's about m-javadoc-p having 4 goals, each having @requiresDependencyResolution compile
and the way Maven core needs to actually *run* scopes to do the resolution, and it does it multiple times

I still don't understand everything, nor have an idea if it's a bug or unexpected consequence of a feature

but it lead me to a workaround: if you define reportSets with less than the 4 reports, you'll divide the number of executions

if you configure javadoc report only, without test-javadoc or aggregate versions like this:
{code:xml}<plugin>
  <artifactId>maven-javadoc-plugin</artifactId>
  <version>2.8</version>
  <reportSets>
    <reportSet>
      <reports>
        <report>javadoc</report>
      </reports>
    </reportSet>
  </reportSets>
</plugin>{code}
the multiple executions will disappear (and a lot of m-javadoc-p version will simply blow up, I didn't study why, just came to the conclusion that new versions have less bugs than old ones)

> 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