restore profile disable-java8-doclint

This commit is contained in:
Roberto Cirillo 2022-02-21 14:40:32 +01:00
parent aab964c1a8
commit ae1f5edd64
1 changed files with 13 additions and 9 deletions

22
pom.xml
View File

@ -77,7 +77,20 @@
</pluginRepository>
</pluginRepositories>
<profiles>
<!-- This profile sets an additional parameter for javadoc generation to disables the doclint.
It avoids the build fails if formal/syntax errors are found in javadoc comments.
The parameter is only understood by jdk 1.8, so we set it only when jdk 1.8 is used -->
<profile>
<id>disable-java8-doclint</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
<profile>
<id>generate-distribution-packages</id>
<activation>
@ -111,10 +124,6 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- This profile sets an additional parameter for javadoc generation to disables the doclint.
It avoids the build fails if formal/syntax errors are found in javadoc comments.
The parameter is only understood by jdk 1.8, so we set it only when jdk 1.8 is used -->
<javadoc.opts>-Xdoclint:none</javadoc.opts>
<java_version>1.8</java_version>
<maven.compiler.source>${java_version}</maven.compiler.source>
<maven.compiler.target>${java_version}</maven.compiler.target>
@ -237,10 +246,6 @@
</property>
</activation>
<properties>
<!-- This profile sets an additional parameter for javadoc generation to disables the doclint.
It avoids the build fails if formal/syntax errors are found in javadoc comments.
The parameter is only understood by jdk 1.8, so we set it only when jdk 1.8 is used -->
<javadoc.opts>-Xdoclint:none</javadoc.opts>
<java_version>1.8</java_version>
<maven.compiler.source>${java_version}</maven.compiler.source>
<maven.compiler.target>${java_version}</maven.compiler.target>
@ -364,7 +369,6 @@
</property>
</activation>
<properties>
<javadoc.opts>-Xdoclint:none</javadoc.opts>
<java_version>11</java_version>
<maven.compiler.source>${java_version}</maven.compiler.source>
<maven.compiler.target>${java_version}</maven.compiler.target>