jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Javadoc Plugin
  • MJAVADOC-181

Javadoc report not generated for multi-module project if run from parent level.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.6
  • Labels:
    None
  • Environment:
    W2K, JDK 6u5, Maven 2.0.8
  • Testcase included:
    yes

Description

For the following project design (s. attached testcase):

parent
- library // javadoc:aggregate!
- module-a
- module-b
- application

javadoc report for 'library' is not generated (not invoked), if 'mvn site' is
called at 'parent' level (but is properly done if run at 'library' level itself).

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    maven_release_failure_caused_by_mjavadoc.txt
    06/Jan/11 9:14 PM
    4 kB
    Stevo Slavic
  2. Hide
    Zip Archive
    maven-site-javadoc-testcase.zip
    18/Mar/08 1:44 PM
    6 kB
    André Fügenschuh
    1. XML File
      parent/application/pom.xml 1 kB
    2. Java Source File
      parent/application/src/.../java/app/App.java 0.4 kB
    3. XML File
      parent/library/module-a/pom.xml 0.6 kB
    4. Java Source File
      parent/library/module-a/.../aaa/App.java 0.4 kB
    5. XML File
      parent/library/module-b/pom.xml 0.6 kB
    6. Java Source File
      parent/library/module-b/.../bbb/App.java 0.4 kB
    7. XML File
      parent/library/pom.xml 1 kB
    8. XML File
      parent/pom.xml 1 kB
    Download Zip
    Show
    Zip Archive
    maven-site-javadoc-testcase.zip
    18/Mar/08 1:44 PM
    6 kB
    André Fügenschuh
  3. Text File
    MJAVADOC-181.patch
    17/Sep/08 10:41 PM
    0.8 kB
    James William Dumay
  4. Text File
    MJAVADOC-181-1.patch
    22/Sep/08 2:24 PM
    1 kB
    Felix Knecht

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-179 Aggregate report ignores sourcepath customization of subprojects

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

New Feature - A new feature of the product, which has yet to be developed. MJAVADOC-97 enable internal/external dependency references as links

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is superceded by

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-311 Aggregated javadoc report not generated for multi-module project at sub-level if run from parent level.

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
relates to

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-284 detectOfflineLinks sets off extra spurious executions of javadoc

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
James William Dumay added a comment - 17/Sep/08 7:31 PM - edited

I can confirm that this is also a problem with my builds too.

Show
James William Dumay added a comment - 17/Sep/08 7:31 PM - edited I can confirm that this is also a problem with my builds too.
Hide
Permalink
James William Dumay added a comment - 17/Sep/08 10:41 PM

Patch fixes aggregate goal - it was checking the aggregate parameter when there was no need to.

Show
James William Dumay added a comment - 17/Sep/08 10:41 PM Patch fixes aggregate goal - it was checking the aggregate parameter when there was no need to.
Hide
Permalink
Felix Knecht added a comment - 22/Sep/08 2:24 PM - edited

The problem is that the deprecated aggregate is still validated even if the latest (not deprecated) configuration using the aggregate goal is used. This results in an unwanted
JavadocReport.canGenerateReport return=false, because aggregate (not set -> default=false) and isAggregator=true (see JavadocReport.java:

/** {@inheritDoc} */
public boolean canGenerateReport()
{
boolean canGenerate;
if ( aggregate != isAggregator() )
{
canGenerate = false;
).
This configuration will never generate an aggregated javadoc.
Applied patch (MJAVADOC-181-1.patch) overwrites the canGenerateReport method. Deprecated aggregate shall not be used if the newer goal is used.

Show
Felix Knecht added a comment - 22/Sep/08 2:24 PM - edited The problem is that the deprecated aggregate is still validated even if the latest (not deprecated) configuration using the aggregate goal is used. This results in an unwanted JavadocReport.canGenerateReport return=false, because aggregate (not set -> default=false) and isAggregator=true (see JavadocReport.java: /** {@inheritDoc} */ public boolean canGenerateReport() { boolean canGenerate; if ( aggregate != isAggregator() ) { canGenerate = false; ). This configuration will never generate an aggregated javadoc. Applied patch (MJAVADOC-181-1.patch) overwrites the canGenerateReport method. Deprecated aggregate shall not be used if the newer goal is used.
Hide
Permalink
Felix Knecht added a comment - 22/Sep/08 2:26 PM

IMO this is not a major issue but a blocker, because it avoids using the newer, non deprecated configuration of the javadoc plugin.

Regards
Felix

Show
Felix Knecht added a comment - 22/Sep/08 2:26 PM IMO this is not a major issue but a blocker, because it avoids using the newer, non deprecated configuration of the javadoc plugin. Regards Felix
Hide
Permalink
Julien HENRY added a comment - 10/Nov/08 7:38 AM

It is a blocker issue for me. I can't use the old way because my generated source files are not taken into account. The new way is working when running mvn javadoc:aggregate but not when running mvn site.

Please apply the patch and release a new version!

Show
Julien HENRY added a comment - 10/Nov/08 7:38 AM It is a blocker issue for me. I can't use the old way because my generated source files are not taken into account. The new way is working when running mvn javadoc:aggregate but not when running mvn site. Please apply the patch and release a new version!
Hide
Permalink
Vincent Siveton added a comment - 21/Jul/09 7:25 AM

Should be fixed by MJAVADOC-97
I added an IT in r796271, snap deployed

Show
Vincent Siveton added a comment - 21/Jul/09 7:25 AM Should be fixed by MJAVADOC-97 I added an IT in r796271, snap deployed
Hide
Permalink
Herve Boutemy added a comment - 04/Jan/11 3:33 PM

I don't understand: the IT generates apidocs in module-a and module-b but not in library
IIUC, the expected result was the contrary, no?
can someone confirm that the actual result with maven-javadoc-plugin 2.6 and 2.7 is really what was expected?
(FYI, I'm running into trouble with MJAVADOC-286, where the fix breaks the actual behaviour, and the more I think at it, the more I'm convinced this issue IT checks the contrary to the expected result...)

Show
Herve Boutemy added a comment - 04/Jan/11 3:33 PM I don't understand: the IT generates apidocs in module-a and module-b but not in library IIUC, the expected result was the contrary, no? can someone confirm that the actual result with maven-javadoc-plugin 2.6 and 2.7 is really what was expected? (FYI, I'm running into trouble with MJAVADOC-286, where the fix breaks the actual behaviour, and the more I think at it, the more I'm convinced this issue IT checks the contrary to the expected result...)
Hide
Permalink
Stevo Slavic added a comment - 06/Jan/11 9:14 PM

I think I just got hit by this issue - release:perform fails on multi-module project because of javadoc plugin. See maven_release_failure_caused_by_mjavadoc.txt for relevant build output.

Show
Stevo Slavic added a comment - 06/Jan/11 9:14 PM I think I just got hit by this issue - release:perform fails on multi-module project because of javadoc plugin. See maven_release_failure_caused_by_mjavadoc.txt for relevant build output.
Hide
Permalink
André Fügenschuh added a comment - 07/Jan/11 7:31 PM

@ Herve
You are right. I don't know the IT, but the original intention was to aggregate javadocs at 'library' level (for 'module-[a|b]') and generate non-aggregate javadocs for 'application'.

As for me, this issue hasn't been resolved, see: MSITE-518.

Show
André Fügenschuh added a comment - 07/Jan/11 7:31 PM @ Herve You are right. I don't know the IT, but the original intention was to aggregate javadocs at 'library' level (for 'module-[a|b]') and generate non-aggregate javadocs for 'application'. As for me, this issue hasn't been resolved, see: MSITE-518.

People

  • Assignee:
    Vincent Siveton
    Reporter:
    André Fügenschuh
Vote (11)
Watch (16)

Dates

  • Created:
    18/Mar/08 1:44 PM
    Updated:
    10/Mar/11 6:35 AM
    Resolved:
    21/Jul/09 7:25 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.