Skip to content

Commit ff04883

Browse files
authored
Added example of --add-modules to aggregate FAQ.
2 parents 5697975 + 94b9c99 commit ff04883

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/site/apt/examples/aggregate.apt.vm

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,22 @@ Project
194194
</plugin>
195195
+-----+
196196

197+
Occasionally, automatic modules need to import named modules. For example,
198+
199+
+-----+
200+
error: package org.w3c.dom is not visible
201+
(package org.w3c.dom is declared in module java.xml, but module foobar does not read it)
202+
+-----+
203+
204+
can be solved by adding the relevant --add-modules options to the plugin configuration:
205+
206+
+-----+
207+
<additionalOptions>
208+
<option>--add-modules</option>
209+
<option>java.xml</option>
210+
</additionalOptions>
211+
+-----+
212+
197213
The Javadoc plugin contains several <<<aggregate>>> goals to be use with an aggregator project. Here is the full list
198214
of all <<<aggregate>>> goals:
199215

0 commit comments

Comments
 (0)