Maven 2.x Javadoc Plugin

Aggregate does not work for multiple module project when doing install.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.2
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Fedora Linux, Maven 2.0.6
  • Number of attachments :
    1

Description

If have a multi-module project, the javadoc aggregate does not find inter-module dependencies:

pom.xml

-->module1
-->module2

module 1 depends on module 2

The javadoc plugin is added to the build lifecycle attached to the install phase. When I run "mvn install" I get a "Failed to resolve artifact." error message looking for module 2.

Issue Links

Activity

Hide
Paul Gier added a comment - - edited

It appears this issue occurs for any plugin that has
@requiresDependencyResolution
and
@aggregator

So the problem is not with the javadoc plugin itself.

Show
Paul Gier added a comment - - edited It appears this issue occurs for any plugin that has @requiresDependencyResolution and @aggregator So the problem is not with the javadoc plugin itself.
Hide
Paul Gier added a comment -

This should have been a "related to" link, and not a dependency.

Show
Paul Gier added a comment - This should have been a "related to" link, and not a dependency.
Hide
John Allen added a comment -

I still don't get why this plugin has been changed to try work as an aggregator, see related to links

Show
John Allen added a comment - I still don't get why this plugin has been changed to try work as an aggregator, see related to links
Hide
Vincent Siveton added a comment -

@aggregator was added with MJAVADOC-104

Show
Vincent Siveton added a comment - @aggregator was added with MJAVADOC-104
Hide
Wendy Smoak added a comment - - edited

I originally thought this may have been fixed along with MJAVADOC-137 by reverting the change from MJAVADOC-104 that added @aggregator, but now I see that it was reported against v2.2.

Show
Wendy Smoak added a comment - - edited I originally thought this may have been fixed along with MJAVADOC-137 by reverting the change from MJAVADOC-104 that added @aggregator, but now I see that it was reported against v2.2.
Hide
Wendy Smoak added a comment -

@aggregator has been removed. If this is still a problem, please provide a sample project and steps to reproduce it.

I'd like to stage the 2.4 release this weekend, and plan to remove this from the 2.4 bucket if no fix or example is provided.

Show
Wendy Smoak added a comment - @aggregator has been removed. If this is still a problem, please provide a sample project and steps to reproduce it. I'd like to stage the 2.4 release this weekend, and plan to remove this from the 2.4 bucket if no fix or example is provided.
Hide
Paul Gier added a comment -

Adding IT that reproduces the issue.

Show
Paul Gier added a comment - Adding IT that reproduces the issue.
Hide
Paul Gier added a comment - - edited

Originally this issue was related to creating an aggregate javadoc jar, but this seems impossible now because of MJAVADOC-125. The javadoc plugin is skipped because the aggregate project has a packaging of "pom".

If there are no plans to allow aggregate javadoc generation during the standard install lifecycle, then I guess this issue should be closed as "Will not fix". And the site should be updated to say that aggregate javadocs can only be created when generating a site.

Show
Paul Gier added a comment - - edited Originally this issue was related to creating an aggregate javadoc jar, but this seems impossible now because of MJAVADOC-125. The javadoc plugin is skipped because the aggregate project has a packaging of "pom". If there are no plans to allow aggregate javadoc generation during the standard install lifecycle, then I guess this issue should be closed as "Will not fix". And the site should be updated to say that aggregate javadocs can only be created when generating a site.
Hide
Vincent Siveton added a comment -

as requested

Show
Vincent Siveton added a comment - as requested

People

Vote (9)
Watch (9)

Dates

  • Created:
    Updated:
    Resolved: