You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefan Seidel (JIRA)" <ji...@codehaus.org> on 2008/02/01 11:27:58 UTC

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

Modules in multi-module projects are "built" too often
------------------------------------------------------

                 Key: MJAVADOC-171
                 URL: http://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
            Priority: Critical
         Attachments: 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ 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

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seidel reopened MJAVADOC-171:
------------------------------------


How many times ...

Sorry, but saying it's fixed doesn't mean it is. Why can you not just add a unit test?

Here's an addition to the list:
2.8: 26

Sorry to be a nuisance, but what can I do to finally get my site build run properly? Especially since 2.2 or 2.4 do not work with the maven-site-plugin:3.0?

> 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, mjavadoc171.patch, 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

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seidel reopened MJAVADOC-171:
------------------------------------


And added it again in 2.5
Here are the number of xmlbeans occurences by version:
2.2: 5
2.3: 20
2.4: 0
2.5: 26
2.6.1: 26
2.6: 26
2.7: 26

AFAICS, only 2.2 behaved correctly.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Fix Version/s:     (was: 2.7)
                   2.8

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seidel updated MJAVADOC-171:
-----------------------------------

    Attachment: 2.3.log

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 2.2.log, 2.3.log, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276411#comment-276411 ] 

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

I marked the resolution as "Cannot Reproduce" if it helps understanding the effective definitive status of this issue (that effectively seems to not be fixed for you, who are the only guy able to be able to say if it is fixed or not)

> 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, mjavadoc171.patch, 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

        

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

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned MJAVADOC-171:
-----------------------------------------

    Assignee:     (was: Benson Margulies)
    
> 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
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy reopened MJAVADOC-171:
------------------------------------


> 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, mjavadoc171.patch, 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276515#comment-276515 ] 

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

Hmmm
{noformat}$ unzip ../mvnexec.zip && cd forked && mvn -v && mvn site
Archive:  ../mvnexec.zip
   creating: forked/
  inflating: forked/pom.xml          
   creating: forked/sub1/
   creating: forked/sub1/src/
   creating: forked/sub1/src/test/
   creating: forked/sub1/src/test/java/
  inflating: forked/sub1/src/test/java/Simple2Test.java  
  inflating: forked/sub1/pom.xml     
   creating: forked/sub2/
   creating: forked/sub2/src/
   creating: forked/sub2/src/test/
   creating: forked/sub2/src/test/java/
  inflating: forked/sub2/src/test/java/SimpleTest.java  
  inflating: forked/sub2/pom.xml     
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-10-generic" arch: "amd64" Family: "unix"
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Unnamed - org.test.forked:parent:pom:1
[INFO]   Unnamed - org.test.forked:sub1:jar:1
[INFO]   Unnamed - org.test.forked:sub2:jar:1
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - org.test.forked:parent:pom:1
[INFO]    task-segment: [site]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-surefire-report-plugin

Reason: Error getting POM for 'org.apache.maven.plugins:maven-surefire-report-plugin' from the repository: Failed to resolve artifact, possibly due to a repository list that is not appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-surefire-report-plugin:pom:2.8.2-SNAPSHOT

from the specified remote repositories:
  Nexus (http://localhost:8081/nexus/content/groups/public)

 for project org.apache.maven.plugins:maven-surefire-report-plugin


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Aug 19 22:36:44 CEST 2011
[INFO] Final Memory: 15M/150M
[INFO] ------------------------------------------------------------------------{noformat}

> 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, mjavadoc171.patch, 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MJAVADOC-171 stopped by Herve Boutemy.

> 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, mjavadoc171.patch, 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

       Resolution: Fixed
    Fix Version/s:     (was: 2.4)
                   2.7
         Assignee: Herve Boutemy

this should be fixed with MJAVADOC-284
if you're still having problems, please open another Jira issue with a link to this one

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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.7
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seidel updated MJAVADOC-171:
-----------------------------------

    Attachment: mjavadoc-171.zip

This seems to be a problem with your local build environment. The maven-users mailing list is quite helpful in such cases. 

Anyway, here's a cleaner version, for convenience already with the plugin version via system property.

Run:
{code}
unzip mjavadoc-171.zip
mvn clean site -Djavadoc.plugin.version=2.8 | grep xmlbeans | grep execution | wc -l
{code}
(and replace the value for javadoc.plugin.version with the version to test).

Exact numbers may differ slightly, but the overall tendency is equivalent.

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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy reopened MJAVADOC-171:
------------------------------------


ok, I can reproduce the issue now
now I'll try to understand why it is doing such executions...

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

        

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

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies updated MJAVADOC-171:
--------------------------------------

    Priority: Major  (was: Critical)
    
> 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
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122256 ] 

Stefan Seidel commented on MJAVADOC-171:
----------------------------------------

{code}
mvn clean site
{code}
Sorry, should've said that before.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276619#comment-276619 ] 

Stefan Seidel commented on MJAVADOC-171:
----------------------------------------

Oh, and the "Maven 3" part of the pom.xml only is there to show that with Maven 3 and the maven-site-plugin:3.0 the problem is the same (even though only versions 2.7 and 2.8 of maven-javadoc-plugin run sucessfully under Maven 3 + maven-site-plugin 3.0).

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

        

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

Posted by "Andy Schlaikjer (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251469#action_251469 ] 

Andy Schlaikjer commented on MJAVADOC-171:
------------------------------------------

{quote}
I think I am running into the same problem with version 2.7 and maven 3. It is trying to fork compilations of sibling projects... Basically it ends up running out of heap space.
{quote}

I left a note [here|http://jira.codehaus.org/browse/MJAVADOC-286?focusedCommentId=251366&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_251366] with a work-around for this issue.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Resolution: Fixed

sorry to repeat myself too: if you're still having problems, please open another Jira issue with a link to this one

then, please help us make a repeatable IT
you're giving numbers I can't calculate myself
No doubt you're facing something
please help us learn how to calculate same numbers as you: a grep command to show precisely what you are counting, for example

but please don't reopen this issue 4 months after we tried to work with you: I don't care if the issue is not really resolved, the new issue is needed just to let us work together at reproducing what you are facing

> 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, mjavadoc171.patch, 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276970#comment-276970 ] 

Herve Boutemy edited comment on MJAVADOC-171 at 12/2/12 3:09 PM:
-----------------------------------------------------------------

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 everything, but since no reportSet has been defined these aggregate reports are run in addition to non-aggregate reports: see MSITE-454 for thought about avoid this by default, because it is not really expected by users

some numbers are different from yours: can you run the script on your machine and share your results?
                
      was (Author: hboutemy):
    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
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seidel updated MJAVADOC-171:
-----------------------------------

    Attachment: 2.2.log

It's not about twice. It's about _all_ modules are built twice for _each_ module. I have removed the maven-surefire-report-plugin from the parent pom (to show the problem more distinctively) and when I run clean site the following logs come out with version 2.3 and 2.2 respectively. Notice the vast increase of
{code}
[INFO] Building Unnamed - org.test.forked:...
[INFO] ------------------------------------------------------
[INFO] [xmlbeans:xmlbeans {execution: default}]
[INFO] Nothing to generate.
{code}
parts from 2.2 to 2.3.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 2.2.log, 2.3.log, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MJAVADOC-171:
-------------------------------------

    Fix Version/s:     (was: 2.8)
    
> 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
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Dan Tran (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229604#action_229604 ] 

Dan Tran commented on MJAVADOC-171:
-----------------------------------

for my case, i only need to build javadoc for one project, under multiple modules build, it triggers all sibbling project to build javadoc 

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Resolution: Cannot Reproduce

> 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, mjavadoc171.patch, 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

        

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

Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies reassigned MJAVADOC-171:
-----------------------------------------

    Assignee: Benson Margulies
    
> 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: Benson Margulies
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Fabulich updated MJAVADOC-171:
----------------------------------

    Attachment: mjavadoc171.patch

FYI, I can't get maven-javadoc-plugin to "mvn install" from trunk (I get test failures), but the 2.3 tag builds just fine; when I remove the @aggregator tag from the mojo, it seems to work perfectly.  I hypothesize that @aggregator is seriously broken, at least for reporting plugins (or perhaps just plugins that need to @execute forked lifecycles like this one), and at least in this case, it seems to be harmful and unnecessary.

http://www.nabble.com/%40aggregator-mojo-annotation-td15302246s177.html

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Steve Jerman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=239647#action_239647 ] 

Steve Jerman commented on MJAVADOC-171:
---------------------------------------

I think I am running into the same problem with version 2.7 and maven 3. It is trying to fork compilations of sibling projects... Basically it ends up running out of heap space.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122272 ] 

Vincent Siveton commented on MJAVADOC-171:
------------------------------------------

Don't know about xmlbeans plugin, but the javadoc plugin generates javadoc for main and test so twice sounds correct.

Could you give me a log file and point me the lack of execution?

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Assignee:     (was: Herve Boutemy)
    
> 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
>            Priority: Critical
>         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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Stefan Seidel (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276472#comment-276472 ] 

Stefan Seidel commented on MJAVADOC-171:
----------------------------------------

Hmm.I have created a test project and attached it to this issue long time ago. I've attached the log files and explained (hopefully clearly) what the difference is and what the problem is. Now what else is there what would be different for a new issue? And what makes you sure that you have fixed this issue?

The numbers I provided are: extract the "mvnexec.zip", run mvn site, count the number of xmlbeans invocations. I hope this is now reproducible.

> 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, mjavadoc171.patch, 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

        

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

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on MJAVADOC-171 started by Herve Boutemy.

> 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, mjavadoc171.patch, 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

        

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

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton closed MJAVADOC-171.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4

javadoc 2.4 should resolved it

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>             Fix For: 2.4
>
>         Attachments: 2.2.log, 2.3.log, mjavadoc171.patch, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MJAVADOC-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122164 ] 

Vincent Siveton commented on MJAVADOC-171:
------------------------------------------

What is your command line? I can not reproduce it yet.

> Modules in multi-module projects are "built" too often
> ------------------------------------------------------
>
>                 Key: MJAVADOC-171
>                 URL: http://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
>            Priority: Critical
>         Attachments: 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.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira