|
205 | 205 | </executions> |
206 | 206 | </plugin> |
207 | 207 |
|
208 | | - <!-- Javadoc JAR --> |
| 208 | + <!-- Javadoc JAR and custom doclet execution (merged into one plugin declaration) --> |
209 | 209 | <plugin> |
210 | 210 | <groupId>org.apache.maven.plugins</groupId> |
211 | 211 | <artifactId>maven-javadoc-plugin</artifactId> |
|
216 | 216 | <goal>jar</goal> |
217 | 217 | </goals> |
218 | 218 | </execution> |
| 219 | + <!-- Disable default javadoc execution --> |
| 220 | + <execution> |
| 221 | + <id>default-cli</id> |
| 222 | + <phase>none</phase> |
| 223 | + </execution> |
| 224 | + <execution> |
| 225 | + <id>generate-json-docs</id> |
| 226 | + <phase>prepare-package</phase> |
| 227 | + <goals> |
| 228 | + <goal>javadoc-no-fork</goal> |
| 229 | + </goals> |
| 230 | + <configuration> |
| 231 | + <doclet>doclets.Scratch4JDoclet</doclet> |
| 232 | + <!-- Use the compiled classes from target/classes --> |
| 233 | + <docletPath>${project.build.outputDirectory}</docletPath> |
| 234 | + <outputDirectory>${project.build.directory}/../docs/book/reference</outputDirectory> |
| 235 | + <useStandardDocletOptions>false</useStandardDocletOptions> |
| 236 | + <additionalOptions> |
| 237 | + <additionalOption>-d</additionalOption> |
| 238 | + <additionalOption>${project.build.directory}/../docs/book/reference</additionalOption> |
| 239 | + </additionalOptions> |
| 240 | + <show>public</show> |
| 241 | + </configuration> |
| 242 | + </execution> |
219 | 243 | </executions> |
220 | 244 | <configuration> |
221 | 245 | <tags> |
|
282 | 306 | </execution> |
283 | 307 | </executions> |
284 | 308 | </plugin> |
285 | | - |
286 | | - <plugin> |
287 | | - <groupId>org.apache.maven.plugins</groupId> |
288 | | - <artifactId>maven-javadoc-plugin</artifactId> |
289 | | - <version>3.6.3</version> |
290 | | - <executions> |
291 | | - <!-- Disable default javadoc execution --> |
292 | | - <execution> |
293 | | - <id>default-cli</id> |
294 | | - <phase>none</phase> |
295 | | - </execution> |
296 | | - <execution> |
297 | | - <id>generate-json-docs</id> |
298 | | - <phase>prepare-package</phase> |
299 | | - <goals> |
300 | | - <goal>javadoc-no-fork</goal> |
301 | | - </goals> |
302 | | - <configuration> |
303 | | - <doclet>doclets.Scratch4JDoclet</doclet> |
304 | | - <!-- Use the compiled classes from target/classes --> |
305 | | - <docletPath>${project.build.outputDirectory}</docletPath> |
306 | | - <outputDirectory>${project.build.directory}/../docs/book/reference</outputDirectory> |
307 | | - <useStandardDocletOptions>false</useStandardDocletOptions> |
308 | | - <additionalOptions> |
309 | | - <additionalOption>-d</additionalOption> |
310 | | - <additionalOption>${project.build.directory}/../docs/book/reference</additionalOption> |
311 | | - </additionalOptions> |
312 | | - <show>public</show> |
313 | | - </configuration> |
314 | | - </execution> |
315 | | - </executions> |
316 | | - </plugin> |
317 | 309 | </plugins> |
318 | 310 |
|
319 | 311 | <resources> |
|
0 commit comments