Skip to content

Instantly share code, notes, and snippets.

@nblair
Created October 28, 2015 16:13
Show Gist options
  • Save nblair/85f7f2bdb5aff9870201 to your computer and use it in GitHub Desktop.
Save nblair/85f7f2bdb5aff9870201 to your computer and use it in GitHub Desktop.
Maven pom.xml profile fragment to disable doclint on JDK 8 and later.
<profiles>
<profile>
<id>disable-doclint-on-java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment