fix javadoc generation error when jdk1.7 is used
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/build-utils/maven-parent@129904 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c98313c597
commit
a61068c596
20
pom.xml
20
pom.xml
|
@ -17,6 +17,23 @@
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<!-- this profile sets an additional parameter for javadoc generation that disable the doclint (it makes
|
||||||
|
component build fail 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>
|
||||||
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
|
@ -191,8 +208,7 @@
|
||||||
<goal>jar</goal>
|
<goal>jar</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<!-- skip strict check on javadoc annotations introduced in Java 8-->
|
<additionalparam>${javadoc.opts}</additionalparam>
|
||||||
<additionalparam>-Xdoclint:none</additionalparam>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
Loading…
Reference in New Issue