Skip to content

Commit

Permalink
Added example of --add-modules to aggregate FAQ.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfscholte committed Apr 15, 2019
2 parents 5697975 + 94b9c99 commit ff04883
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/site/apt/examples/aggregate.apt.vm
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

0 comments on commit ff04883

Please sign in to comment.