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

Impossible to aggregate javadoc if snapshot never built

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.2
  • Fix Version/s: None
  • Labels:
    None
  • Testcase included:
    yes

Description

In a multi-module projet, I build an aggregated Javadoc for the site.

The project is built with "mvn clean deploy site-deploy"

When I add a new project, the next build always fails because the javadoc plugin can't find at least one snapshot for the new added module

In the following example, I added a new module tele.persistance:pers-commons, which have never been built before.
Maven tries to download it but it can't find it (never build before).

 [INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not find the model file '/continuum-folders/working-directory/116/../pom.xml'.
[INFO] Skipped "About" report, file "index.html" already exists for the English version.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "JavaDocs" report.
[INFO] snapshot tele:commons:1.2.0-alpha-1-SNAPSHOT: checking for updates from mirror.snapshots
[INFO] snapshot tele.persistance:pers-data:1.2.0-alpha-1-SNAPSHOT: checking for updates from mirror.snapshots
[INFO] snapshot tele.persistance:pers-api:1.2.0-alpha-1-SNAPSHOT: checking for updates from mirror.snapshots
[INFO] snapshot tele.persistance:pers-commons:1.2.0-alpha-1-SNAPSHOT: checking for updates from mirror.snapshots
Downloading: http://proxy/maven2-snapshots/repository/tele/persistance/pers-commons/1.2.0-alpha-1-SNAPSHOT/pers-commons-1.2.0-alpha-1-SNAPSHOT.jar
[WARNING] Unable to get resource 'tele.persistance:pers-commons:jar:1.2.0-alpha-1-SNAPSHOT' from repository mirror.snapshots (http://proxy/maven2-snapshots/repository)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) tele.persistance:pers-commons:jar:1.2.0-alpha-1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=tele.persistance -DartifactId=pers-commons \
          -Dversion=1.2.0-alpha-1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
  	1) tele.persistance:pers-dao:jar:1.2.0-alpha-1-SNAPSHOT
  	2) tele.persistance:pers-commons:jar:1.2.0-alpha-1-SNAPSHOT

----------
1 required artifact is missing.

for artifact: 
  tele.persistance:pers-dao:jar:1.2.0-alpha-1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  mirror.snapshots (http://proxy/maven2-snapshots/repository)

If I make an intermediate "install", everything works fine

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

Attachments

  1. Hide
    Zip Archive
    clean javadoc-plugin-test-case with classifier use.zip
    06/Mar/08 3:25 AM
    5 kB
    Damien Lecan
    1. XML File
      javadoc-plugin-test-case/module1/pom.xml 0.9 kB
    2. Java Source File
      javadoc-plugin-test-case/.../TestModule1.java 0.2 kB
    3. Java Source File
      javadoc-plugin-test-case/.../TestModule1.java 0.2 kB
    4. XML File
      javadoc-plugin-test-case/module2/pom.xml 1.0 kB
    5. Java Source File
      javadoc-plugin-test-case/.../TestModule2.java 0.2 kB
    6. XML File
      javadoc-plugin-test-case/pom.xml 2 kB
    Download Zip
    Show
    Zip Archive
    clean javadoc-plugin-test-case with classifier use.zip
    06/Mar/08 3:25 AM
    5 kB
    Damien Lecan
  2. Hide
    Zip Archive
    javadoc-plugin-test-case.zip
    23/Jul/07 1:10 PM
    6 kB
    Antonio Petrelli
    1. File
      javadoc-plugin-test-case/.../org.eclipse.jdt.core.prefs 0.2 kB
    2. File
      javadoc-plugin-test-case/.classpath 0.4 kB
    3. Java Source File
      javadoc-plugin-test-case/.../TestModule1.java 0.2 kB
    4. XML File
      javadoc-plugin-test-case/module1/pom.xml 0.6 kB
    5. Java Source File
      javadoc-plugin-test-case/.../TestModule2.java 0.2 kB
    6. XML File
      javadoc-plugin-test-case/module2/pom.xml 0.8 kB
    7. File
      javadoc-plugin-test-case/.project 0.5 kB
    8. XML File
      javadoc-plugin-test-case/pom.xml 0.9 kB
    Download Zip
    Show
    Zip Archive
    javadoc-plugin-test-case.zip
    23/Jul/07 1:10 PM
    6 kB
    Antonio Petrelli
  3. Hide
    Zip Archive
    javadoc-plugin-test-case with classifier use.zip
    06/Mar/08 3:23 AM
    158 kB
    Damien Lecan
    1. XML File
      javadoc-plugin-test-case/module1/pom.xml 0.9 kB
    2. Java Source File
      javadoc-plugin-test-case/.../TestModule1.java 0.2 kB
    3. Java Source File
      javadoc-plugin-test-case/.../TestModule1.java 0.2 kB
    4. File
      javadoc-plugin-test-case/.../TestModule1.class 0.5 kB
    5. HTML File
      javadoc-plugin-test-case/.../allclasses-frame.html 0.8 kB
    6. HTML File
      javadoc-plugin-test-case/.../allclasses-noframe.html 0.8 kB
    7. HTML File
      javadoc-plugin-test-case/.../constant-values.html 5 kB
    8. HTML File
      javadoc-plugin-test-case/.../deprecated-list.html 5 kB
    9. HTML File
      javadoc-plugin-test-case/.../help-doc.html 9 kB
    10. HTML File
      javadoc-plugin-test-case/.../index-all.html 6 kB
    11. HTML File
      javadoc-plugin-test-case/.../index.html 1 kB
    12. HTML File
      javadoc-plugin-test-case/.../overview-tree.html 5 kB
    13. File
      javadoc-plugin-test-case/.../package-list 0.0 kB
    14. GIF File
      javadoc-plugin-test-case/.../inherit.gif 0.1 kB
    15. File
      javadoc-plugin-test-case/.../stylesheet.css 1 kB
    16. HTML File
      javadoc-plugin-test-case/.../TestModule1.html 5 kB
    17. HTML File
      javadoc-plugin-test-case/.../package-frame.html 0.9 kB
    18. HTML File
      javadoc-plugin-test-case/.../package-summary.html 6 kB
    19. HTML File
      javadoc-plugin-test-case/.../package-tree.html 5 kB
    20. HTML File
      javadoc-plugin-test-case/.../package-use.html 5 kB
    21. HTML File
      javadoc-plugin-test-case/.../TestModule1.html 9 kB
    22. File
      javadoc-plugin-test-case/.../maven-base.css 2 kB
    23. File
      javadoc-plugin-test-case/.../maven-theme.css 3 kB
    24. File
      javadoc-plugin-test-case/.../print.css 0.2 kB
    25. HTML File
      javadoc-plugin-test-case/.../dependencies.html 5 kB
    26. HTML File
      javadoc-plugin-test-case/.../dependency-convergence.html 6 kB
    27. GIF File
      javadoc-plugin-test-case/.../collapsed.gif 0.1 kB
    28. GIF File
      javadoc-plugin-test-case/.../expanded.gif 0.1 kB
    29. PNG File
      javadoc-plugin-test-case/.../external.png 0.2 kB
    30. GIF File
      javadoc-plugin-test-case/.../icon_error_sml.gif 1.0 kB
    Showing 30 of 134 items Download Zip
    Show
    Zip Archive
    javadoc-plugin-test-case with classifier use.zip
    06/Mar/08 3:23 AM
    158 kB
    Damien Lecan
  4. Text File
    log.txt
    06/Feb/08 9:39 AM
    404 kB
    Damien Lecan
  5. Hide
    Zip Archive
    mymobiliartest.zip
    15/Mar/12 3:43 PM
    48 kB
    Patrick M.J. Roth
    1. File
      mymobiliartest/fails_with_javadoc.bat 0.0 kB
    2. XML File
      mymobiliartest/.../pom.xml 2 kB
    3. Java Source File
      mymobiliartest/.../JaxbHelper.java 0.5 kB
    4. Java Source File
      mymobiliartest/.../LiferayHelper.java 0.4 kB
    5. Java Source File
      mymobiliartest/.../LayoutBuilder.java 2 kB
    6. Java Source File
      mymobiliartest/.../LayoutUtil.java 2 kB
    7. Java Source File
      mymobiliartest/.../PermissionUtil.java 1 kB
    8. Java Source File
      mymobiliartest/.../SetupAction.java 0.4 kB
    9. File
      mymobiliartest/.../Language-ext_de.properties 0.7 kB
    10. File
      mymobiliartest/.../Language-ext_fr.properties 0.7 kB
    11. File
      mymobiliartest/.../Language-ext_it.properties 0.7 kB
    12. File
      mymobiliartest/.../portal-ext.properties 0.2 kB
    13. XML File
      mymobiliartest/.../setup.xml 4 kB
    14. XML File
      mymobiliartest/.../setupLocal.xml 5 kB
    15. XML File
      mymobiliartest/.../setup_definition.xsd 5 kB
    16. XML File
      mymobiliartest/.../liferay-hook.xml 0.5 kB
    17. XML File
      mymobiliartest/.../service.xml 0.2 kB
    18. XML File
      mymobiliartest/.../web.xml 0.4 kB
    19. XML File
      mymobiliartest/.../pom.xml 2 kB
    20. Java Source File
      mymobiliartest/.../Dummy.java 0.1 kB
    21. XML File
      mymobiliartest/.../config.xml 0.8 kB
    22. File
      mymobiliartest/.../MANIFEST.MF 0.0 kB
    23. Microsoft Excel
      mymobiliartest/.../translations.xls 63 kB
    24. XML File
      mymobiliartest/pom.xml 7 kB
    25. Text File
      mymobiliartest/verify.log 60 kB
    26. File
      mymobiliartest/works_without_javadoc.bat 0.0 kB
    Download Zip
    Show
    Zip Archive
    mymobiliartest.zip
    15/Mar/12 3:43 PM
    48 kB
    Patrick M.J. Roth
  6. Text File
    tiles-log.txt
    06/Mar/08 12:47 PM
    15 kB
    Antonio Petrelli

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MNG-3283 Plugins that require dependency resolution in early phases cause dependency resolution issue

  • Major - Major loss of function.
  • Reopened - This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.
is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-260 Javadoc report not generated for multi-module project if run from parent level - error resolving dependencies

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

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-264 mvn clean install site doesn't work

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

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-276 Initial builds of a multi-module project fail

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-111 Can't release when I use javadoc aggregate/groups

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

Bug - A problem which impairs or prevents the functions of the product. MNG-3023 Reactor projects should be included in dependency resolution

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

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-119 Aggregate does not work for multiple module project when doing install.

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

Bug - A problem which impairs or prevents the functions of the product. MNG-3685 Dependency can't be resolved but has been found in the reactor.

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
Show 3 more links (1 is related to, 2 relates to)

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Antonio Petrelli added a comment - 03/Apr/07 10:58 AM

The same problem appears during the use of the release plugin: the release fails and I have to install the checked-out code locally before retrying the release.

Show
Antonio Petrelli added a comment - 03/Apr/07 10:58 AM The same problem appears during the use of the release plugin: the release fails and I have to install the checked-out code locally before retrying the release.
Hide
Permalink
Arne Degenring added a comment - 12/Apr/07 5:03 AM

I face the same problem. It seems to be a regression, as the problem does not occur with maven-javadoc-plugin 2.0.

Show
Arne Degenring added a comment - 12/Apr/07 5:03 AM I face the same problem. It seems to be a regression, as the problem does not occur with maven-javadoc-plugin 2.0.
Hide
Permalink
Damien Lecan added a comment - 14/May/07 9:55 AM

Same thing with releases version of artifacts.

This is a major issue in a multi-module project when you want to release the project and the aggregated javadoc.

As the maven-release-plugin does "deploy site-deploy" when release:perform, this step always fails because of this bug.

Show
Damien Lecan added a comment - 14/May/07 9:55 AM Same thing with releases version of artifacts. This is a major issue in a multi-module project when you want to release the project and the aggregated javadoc. As the maven-release-plugin does "deploy site-deploy" when release:perform, this step always fails because of this bug.
Hide
Permalink
Antonio Petrelli added a comment - 23/Jul/07 1:10 PM

Attached a small test case.
I noticed that the bug is triggered if a module depends on another, even if in correct order.
This bug is still present in the 2.3 version of the plugin.

Show
Antonio Petrelli added a comment - 23/Jul/07 1:10 PM Attached a small test case. I noticed that the bug is triggered if a module depends on another, even if in correct order. This bug is still present in the 2.3 version of the plugin.
Hide
Permalink
Antonio Petrelli added a comment - 20/Dec/07 5:37 AM

Could someone add the "Testcase included" flag?
Thanks.

Show
Antonio Petrelli added a comment - 20/Dec/07 5:37 AM Could someone add the "Testcase included" flag? Thanks.
Hide
Permalink
Olivier Lamy added a comment - 20/Dec/07 7:00 AM

testcase included flag to yes.

Show
Olivier Lamy added a comment - 20/Dec/07 7:00 AM testcase included flag to yes.
Hide
Permalink
Vincent Siveton added a comment - 03/Feb/08 9:21 AM

Fixed in r617996.
Snapshot deployed but you need to have maven 2.0.8 to run it.

Show
Vincent Siveton added a comment - 03/Feb/08 9:21 AM Fixed in r617996. Snapshot deployed but you need to have maven 2.0.8 to run it.
Hide
Permalink
Damien Lecan added a comment - 04/Feb/08 5:50 AM

I tried with Maven 2.0.8 and maven-javadoc-plugin-2.4-20080203.152011-3

[INFO] Generate "JavaDocs" report.
[INFO] snapshot tele.persistance:pers-commons:jar:1.3.0-M1-SNAPSHOT: checking for updates from apache.snapshots
Downloading: http://people.apache.org/maven-snapshot-repository/tele/persistance/pers-commons/1.3.0-M1-SNAPSHOT/pers-commons-1.3.0-M1-SNAPSHOT.jar
[WARNING] The dependency: [tele.persistance:pers-commons:jar:1.3.0-M1-SNAPSHOT} can't be resolved but has been found in the reactor (probably snapshots).
This dependency has been excluded from the Javadoc classpath. You should rerun javadoc after executing mvn install.
[WARNING] IGNORED to add some artifacts in the classpath. See above.

...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Missing:
----------
1) tele.persistance:pers-test:jar:tests:1.3.0-M1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=tele.persistance -DartifactId=pers-test -Dversion=1.3.0-M1-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file

...

I don't know if javadoc is correctly generated when I see all those WARNING messages.
Then build fails because of a dependency with "tests" classifier.

2 questions :

  • when a jar file located in reactor is excluded from javadoc, are corresponding project's classes still included in javadoc ? (aggregate = true)
  • are classifiers handled by reactor jar exclusion ?
Show
Damien Lecan added a comment - 04/Feb/08 5:50 AM I tried with Maven 2.0.8 and maven-javadoc-plugin-2.4-20080203.152011-3
[INFO] Generate "JavaDocs" report.
[INFO] snapshot tele.persistance:pers-commons:jar:1.3.0-M1-SNAPSHOT: checking for updates from apache.snapshots
Downloading: http://people.apache.org/maven-snapshot-repository/tele/persistance/pers-commons/1.3.0-M1-SNAPSHOT/pers-commons-1.3.0-M1-SNAPSHOT.jar
[WARNING] The dependency: [tele.persistance:pers-commons:jar:1.3.0-M1-SNAPSHOT} can't be resolved but has been found in the reactor (probably snapshots).
This dependency has been excluded from the Javadoc classpath. You should rerun javadoc after executing mvn install.
[WARNING] IGNORED to add some artifacts in the classpath. See above.

...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Missing:
----------
1) tele.persistance:pers-test:jar:tests:1.3.0-M1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=tele.persistance -DartifactId=pers-test -Dversion=1.3.0-M1-SNAPSHOT -Dclassifier=tests -Dpackaging=jar -Dfile=/path/to/file

...
I don't know if javadoc is correctly generated when I see all those WARNING messages. Then build fails because of a dependency with "tests" classifier. 2 questions :
  • when a jar file located in reactor is excluded from javadoc, are corresponding project's classes still included in javadoc ? (aggregate = true)
  • are classifiers handled by reactor jar exclusion ?
Hide
Permalink
Vincent Siveton added a comment - 04/Feb/08 6:13 AM

Reopen since checkMissingArtifactsInReactor() doesnt take care of classifier.

Show
Vincent Siveton added a comment - 04/Feb/08 6:13 AM Reopen since checkMissingArtifactsInReactor() doesnt take care of classifier.
Hide
Permalink
Vincent Siveton added a comment - 06/Feb/08 5:44 AM

Damien, did you call mvn site or mvn javadoc:javadoc?
Could you send us a log with -X?

Show
Vincent Siveton added a comment - 06/Feb/08 5:44 AM Damien, did you call mvn site or mvn javadoc:javadoc? Could you send us a log with -X?
Hide
Permalink
Damien Lecan added a comment - 06/Feb/08 6:30 AM

> did you call mvn site or mvn javadoc:javadoc?

mvn -DreleaseProfile=true clean deploy site-deploy

So both site and javadoc:javadoc together.

Log file is coming...

Show
Damien Lecan added a comment - 06/Feb/08 6:30 AM > did you call mvn site or mvn javadoc:javadoc? mvn -DreleaseProfile=true clean deploy site-deploy So both site and javadoc:javadoc together. Log file is coming...
Hide
Permalink
Damien Lecan added a comment - 06/Feb/08 9:39 AM

Log file for mvn -X -DreleaseProfile=true clean deploy site-deploy in attachement.

Good luck

Show
Damien Lecan added a comment - 06/Feb/08 9:39 AM Log file for mvn -X -DreleaseProfile=true clean deploy site-deploy in attachement. Good luck
Hide
Permalink
Damien Lecan added a comment - 20/Feb/08 6:36 AM

Vincent, do you need more information to fix the problem ?

Show
Damien Lecan added a comment - 20/Feb/08 6:36 AM Vincent, do you need more information to fix the problem ?
Hide
Permalink
Wendy Smoak added a comment - 03/Mar/08 8:28 PM

"mvn -DreleaseProfile=true clean deploy site-deploy" works for me with the latest maven-javadoc-plugin snapshot and the attached example.

(Well, after adding <distributionManagement> – for future examples, you can use something like file:///tmp/repo-MJAVADOC-116 as the deployment repo url, and likewise for the site deployment url.)

I'm not sure of the timing, but this may have been fixed by along with MJAVADOC-137 by reverting the change from MJAVADOC-104 that added @aggregator.

Show
Wendy Smoak added a comment - 03/Mar/08 8:28 PM "mvn -DreleaseProfile=true clean deploy site-deploy" works for me with the latest maven-javadoc-plugin snapshot and the attached example. (Well, after adding <distributionManagement> – for future examples, you can use something like file:///tmp/repo-MJAVADOC-116 as the deployment repo url, and likewise for the site deployment url.) I'm not sure of the timing, but this may have been fixed by along with MJAVADOC-137 by reverting the change from MJAVADOC-104 that added @aggregator.
Hide
Permalink
Damien Lecan added a comment - 04/Mar/08 4:07 AM

Still doesn't work with classifiers

Show
Damien Lecan added a comment - 04/Mar/08 4:07 AM Still doesn't work with classifiers
Hide
Permalink
Vincent Siveton added a comment - 04/Mar/08 4:53 PM

Damien, it seems that it is due to @requiresDependencyResolution, not the Javadoc plugin.
Could you confirm that the error comes from DefaultPluginManager ?

Show
Vincent Siveton added a comment - 04/Mar/08 4:53 PM Damien, it seems that it is due to @requiresDependencyResolution, not the Javadoc plugin. Could you confirm that the error comes from DefaultPluginManager ?
Hide
Permalink
Wendy Smoak added a comment - 05/Mar/08 8:39 PM

As mentioned, I can't reproduce this with the attached example.

I'd like to stage the 2.4 release on Friday.

In order for this to be included, I need a sample project and steps to reproduce the problem. Otherwise it will either be bumped to 2.5 or closed as Cannot Reproduce. Thanks!

Show
Wendy Smoak added a comment - 05/Mar/08 8:39 PM As mentioned, I can't reproduce this with the attached example. I'd like to stage the 2.4 release on Friday. In order for this to be included, I need a sample project and steps to reproduce the problem. Otherwise it will either be bumped to 2.5 or closed as Cannot Reproduce. Thanks!
Hide
Permalink
Antonio Petrelli added a comment - 06/Mar/08 2:49 AM

Wendy, can you wait one day? I tried some days ago with Tiles and it didn't work.

Show
Antonio Petrelli added a comment - 06/Mar/08 2:49 AM Wendy, can you wait one day? I tried some days ago with Tiles and it didn't work.
Hide
Permalink
Damien Lecan added a comment - 06/Mar/08 3:23 AM

Here is a test case which reproduces problem with classifiers and aggregated javadoc.

It is based on previous patch with following updates :

  • javadoc version 2.4-SNAPSHOT
  • build module 1 test jar ("test-jar" classifier)
  • module 2 depends on module 1 jar AND test-jar. They have to be declared together.

Try "mvn -DreleaseProfile=true clean deploy site-deploy", it will fail (maven 2.0.8)

Things to notice :

  • with aggregate = false, it works
  • in module 2, with exactly one of the 2 dependencies (jar OR test-jar), it works (??)

Is it enough to reproduce bug ?

Show
Damien Lecan added a comment - 06/Mar/08 3:23 AM Here is a test case which reproduces problem with classifiers and aggregated javadoc. It is based on previous patch with following updates :
  • javadoc version 2.4-SNAPSHOT
  • build module 1 test jar ("test-jar" classifier)
  • module 2 depends on module 1 jar AND test-jar. They have to be declared together.
Try "mvn -DreleaseProfile=true clean deploy site-deploy", it will fail (maven 2.0.8) Things to notice :
  • with aggregate = false, it works
  • in module 2, with exactly one of the 2 dependencies (jar OR test-jar), it works (??)
Is it enough to reproduce bug ?
Hide
Permalink
Damien Lecan added a comment - 06/Mar/08 3:25 AM

Same test cas as before, but without any target folders.

Show
Damien Lecan added a comment - 06/Mar/08 3:25 AM Same test cas as before, but without any target folders.
Hide
Permalink
Antonio Petrelli added a comment - 06/Mar/08 12:47 PM

Creating Javadocs with:
mvn javadoc:javadoc
does not work with Tiles:
http://svn.apache.org/repos/asf/tiles/framework/trunk/

Added tiles-log.txt as attachment.

Show
Antonio Petrelli added a comment - 06/Mar/08 12:47 PM Creating Javadocs with: mvn javadoc:javadoc does not work with Tiles: http://svn.apache.org/repos/asf/tiles/framework/trunk/ Added tiles-log.txt as attachment.
Hide
Permalink
Damien Lecan added a comment - 07/Mar/08 3:19 AM

Antonio, same problem as me with classifiers.

Show
Damien Lecan added a comment - 07/Mar/08 3:19 AM Antonio, same problem as me with classifiers.
Hide
Permalink
Damien Lecan added a comment - 10/Mar/08 3:41 AM

Wendy, this fix is waited for a long time by many people and is really a major issue.
Is it really not possible to work on this for 2.4 ?

Show
Damien Lecan added a comment - 10/Mar/08 3:41 AM Wendy, this fix is waited for a long time by many people and is really a major issue. Is it really not possible to work on this for 2.4 ?
Hide
Permalink
Geoffrey Wiseman added a comment - 25/Jul/08 9:30 AM

This is a real thorn in our sides. Seems like we may have to disable this plugin.

Show
Geoffrey Wiseman added a comment - 25/Jul/08 9:30 AM This is a real thorn in our sides. Seems like we may have to disable this plugin.
Hide
Permalink
Vincent Siveton added a comment - 25/Jul/08 11:17 AM

MJAVADOC-197 could be a workaround for this issue.

Show
Vincent Siveton added a comment - 25/Jul/08 11:17 AM MJAVADOC-197 could be a workaround for this issue.
Hide
Permalink
Vincent Siveton added a comment - 29/Jul/08 7:02 PM

MJAVADOC-197 is the only workaround that we could propose at this time.

Show
Vincent Siveton added a comment - 29/Jul/08 7:02 PM MJAVADOC-197 is the only workaround that we could propose at this time.
Hide
Permalink
Antonio Petrelli added a comment - 30/Jul/08 2:19 AM

Closed as fixed?
This bug is not fixed, there is only a workaround!
And anyway, we need to publish aggregated javadoc in Tiles when releasing it through the release plugin.
Our workaround is installing the tagged version (tagged using release:prepare) before running release:perform.

So please reopen this bug, or close it as "won't fix", "fixed" is misleading.

Show
Antonio Petrelli added a comment - 30/Jul/08 2:19 AM Closed as fixed? This bug is not fixed, there is only a workaround! And anyway, we need to publish aggregated javadoc in Tiles when releasing it through the release plugin. Our workaround is installing the tagged version (tagged using release:prepare) before running release:perform. So please reopen this bug, or close it as "won't fix", "fixed" is misleading.
Hide
Permalink
Vincent Siveton added a comment - 30/Jul/08 5:48 AM

As requested

Show
Vincent Siveton added a comment - 30/Jul/08 5:48 AM As requested
Hide
Permalink
Vincent Siveton added a comment - 30/Jul/08 7:34 AM

As requested on dev@ by Antonio

Show
Vincent Siveton added a comment - 30/Jul/08 7:34 AM As requested on dev@ by Antonio
Hide
Permalink
Shibu Gope added a comment - 10/Jan/09 12:22 PM

This problem still persist with version 2.5. I tried both aggregate configurations and even defined javadoc only at module level but still it tries to download dependent snapshot modules which are not built yet.

Show
Shibu Gope added a comment - 10/Jan/09 12:22 PM This problem still persist with version 2.5. I tried both aggregate configurations and even defined javadoc only at module level but still it tries to download dependent snapshot modules which are not built yet.
Hide
Permalink
Shibu Gope added a comment - 10/Jan/09 2:44 PM

Can someone explain what is the workaround?

Show
Shibu Gope added a comment - 10/Jan/09 2:44 PM Can someone explain what is the workaround?
Hide
Permalink
Antonio Petrelli added a comment - 10/Jan/09 5:26 PM

I think that the workaround in MJAVADOC-197 refers to the failOnError flag:
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#failOnError

Show
Antonio Petrelli added a comment - 10/Jan/09 5:26 PM I think that the workaround in MJAVADOC-197 refers to the failOnError flag: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#failOnError
Hide
Permalink
Shibu Gope added a comment - 10/Jan/09 5:51 PM

It is still failing the build if javadoc is run in aggregate mode. I set the <failOnError>false</failOnError> but it still fails.

Show
Shibu Gope added a comment - 10/Jan/09 5:51 PM It is still failing the build if javadoc is run in aggregate mode. I set the <failOnError>false</failOnError> but it still fails.
Hide
Permalink
Antonio Petrelli added a comment - 31/Jul/09 2:28 PM

Tested on Tiles 2.2.0 snapshot (never published).
Upgrading to Javadoc plugin 2.6 and using the "aggregate" goal, it seems to work even if the snapshot was never built.

Show
Antonio Petrelli added a comment - 31/Jul/09 2:28 PM Tested on Tiles 2.2.0 snapshot (never published). Upgrading to Javadoc plugin 2.6 and using the "aggregate" goal, it seems to work even if the snapshot was never built.
Hide
Permalink
Antonio Petrelli added a comment - 31/Jul/09 2:29 PM

The fix might be due to MJAVADOC-181.

Show
Antonio Petrelli added a comment - 31/Jul/09 2:29 PM The fix might be due to MJAVADOC-181.
Hide
Permalink
Damien Coraboeuf added a comment - 01/Aug/09 2:50 AM

This issue could be due to MNG-3685 defect.

Show
Damien Coraboeuf added a comment - 01/Aug/09 2:50 AM This issue could be due to MNG-3685 defect.
Hide
Permalink
Francis De Brabandere added a comment - 10/May/10 11:02 AM

Not sure if this is a dupe or just related

Show
Francis De Brabandere added a comment - 10/May/10 11:02 AM Not sure if this is a dupe or just related
Hide
Permalink
Patrick M.J. Roth added a comment - 15/Mar/12 7:42 AM

We have the same behaviour, as soon as the aggregate goal is called. In our case, this arrives in the default lifecycle, since we attached the javadoc plugin to the verify phase through a profile. When the profile is activated, the build fails. Furthermore, failOnError , as decribed in http://jira.codehaus.org/browse/MJAVADOC-197, has no effect here.

We use maven 3.0.4 and javadoc plugin 2.8.1.

I attach a project which should allow to reproduce the problem.

Show
Patrick M.J. Roth added a comment - 15/Mar/12 7:42 AM We have the same behaviour, as soon as the aggregate goal is called. In our case, this arrives in the default lifecycle, since we attached the javadoc plugin to the verify phase through a profile. When the profile is activated, the build fails. Furthermore, failOnError , as decribed in http://jira.codehaus.org/browse/MJAVADOC-197, has no effect here. We use maven 3.0.4 and javadoc plugin 2.8.1. I attach a project which should allow to reproduce the problem.
Hide
Permalink
Patrick M.J. Roth added a comment - 15/Mar/12 3:43 PM - edited

The problem should be reproducible with the project in mymobiliartest.zip

Show
Patrick M.J. Roth added a comment - 15/Mar/12 3:43 PM - edited The problem should be reproducible with the project in mymobiliartest.zip

People

  • Assignee:
    Vincent Siveton
    Reporter:
    Damien Lecan
Vote (49)
Watch (43)

Dates

  • Created:
    15/Mar/07 5:43 AM
    Updated:
    15/Mar/12 3:44 PM
  • 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.