Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.3
-
Fix Version/s: 2.4
-
Labels:None
-
Number of attachments :
Description
In version 2.2, javadoc aggregation was configurable using the configuration property "aggregate". In version 2.3, all javadoc goals got the @aggregator attribute added to its mojos (through a change in org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java), and the goals now always run aggregated regardless of the configuration setting. This breaks our build as we require non-aggregated javadoc execution in our multi-module poms. Please fix this so this is once again configurable and backwards compatible with previous versions of the javadoc plug-in.
Issue Links
- is depended upon by
-
MJAVADOC-141
regression: Adding "jar" execution to the parent of a multi-module javadoc plugin causes "recursive invocations" error
-
- is related to
-
MNG-2184
Possible problem with @aggregator and forked lifecycles
-
-
MJAVADOC-171
Modules in multi-module projects are "built" too often
-
-
MJAVADOC-104
Javadoc of generated sources is not generated when aggregate=true
-
-
MJAVADOC-111
Can't release when I use javadoc aggregate/groups
-
-
MJAVADOC-119
Aggregate does not work for multiple module project when doing install.
-
- relates to
-
MJAVADOC-161
performRelease=true breaks install/deploy with multimodule projects
-
-
MJAVADOC-194
javadoc 2.4 does not [build-helper:add-source {execution: add-source}] when aggregating a javadoc for a project
-
If you run the javadoc plugin as report then the @aggregator is ignored (see MNG-2184), I have removed the @aggregator from my local version of the plugin and it passes all its tests but i expect the JavadocJarMojo might suffer (haven't tested yet and i would have too look at the code some more). Personally I cant see why one would want any of the javadoc mojo's functionality to run as an aggregator. Note the 'aggregate' report mojo option is actually implemented inside the mojo, ie. the report exits if it's already been run in the reactor and aggregate is true.