Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added example of --add-modules to aggregate FAQ. #18

Merged
merged 1 commit into from
Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/site/apt/examples/aggregate.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,22 @@ Project
</plugin>
+-----+

Occasionally, automatic modules need to import named modules. For example,

+-----+
error: package org.w3c.dom is not visible
(package org.w3c.dom is declared in module java.xml, but module foobar does not read it)
+-----+

can be solved by adding the relevant --add-modules options to the plugin configuration:

+-----+
<additionalOptions>
<option>--add-modules</option>
<option>java.xml</option>
</additionalOptions>
+-----+

The Javadoc plugin contains several <<<aggregate>>> goals to be use with an aggregator project. Here is the full list
of all <<<aggregate>>> goals:

Expand Down