Skip to content

Instantly share code, notes, and snippets.

@dgreen
Created July 16, 2021 20:27
Show Gist options
  • Save dgreen/d77b083dc9decb0dbe5637ca796d965c to your computer and use it in GitHub Desktop.
Save dgreen/d77b083dc9decb0dbe5637ca796d965c to your computer and use it in GitHub Desktop.
pom addition to generate JavaDoc

Addition to pom.xml in NetBeans to generate Javadoc

Insert the plug-in description in pom-javadoc.xml into the project's pom.xml. One can update the version based on information on the plugin's site and adjust the source/targets for the desired Java version.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<source>15</source>
<target>15</target>
<sourceFileExcludes>**/module-info.java</sourceFileExcludes>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment