Skip to content

Commit c793548

Browse files
committed
Added java 8 javadoc work-around to allow generating 2.0 releases with JDK 8
1 parent 1a37a4d commit c793548

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@
4848
</properties>
4949

5050
<profiles>
51+
<!-- Work-around for incomplete javadoc on Java 8, courtesy of http://stackoverflow.com/questions/15886209/maven-is-not-working-in-java-8-when-javadoc-tags-are-incomplete.
52+
Once legacy code is removed and javadoc is cleaned up, this can be removed. -->
53+
<profile>
54+
<id>doclint-java8-disable</id>
55+
<activation>
56+
<jdk>[1.8,)</jdk>
57+
</activation>
58+
<properties>
59+
<javadoc.opts>-Xdoclint:none</javadoc.opts>
60+
</properties>
61+
</profile>
5162
<profile>
5263
<id>release</id>
5364

@@ -148,14 +159,17 @@
148159
<plugin>
149160
<groupId>org.apache.maven.plugins</groupId>
150161
<artifactId>maven-javadoc-plugin</artifactId>
151-
<version>2.7</version>
162+
<version>2.10.1</version>
152163
<executions>
153164
<execution>
154165
<id>attach-javadocs</id>
155166
<phase>package</phase>
156167
<goals>
157168
<goal>jar</goal>
158169
</goals>
170+
<configuration>
171+
<additionalparam>${javadoc.opts}</additionalparam>
172+
</configuration>
159173
</execution>
160174
</executions>
161175
</plugin>

0 commit comments

Comments
 (0)