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>
|
||||
</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>
|
||||
|
||||
<pluginManagement>
|
||||
|
@ -191,8 +208,7 @@
|
|||
<goal>jar</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<!-- skip strict check on javadoc annotations introduced in Java 8-->
|
||||
<additionalparam>-Xdoclint:none</additionalparam>
|
||||
<additionalparam>${javadoc.opts}</additionalparam>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
Loading…
Reference in New Issue