Local Development environment JDK version 1.7, build Javadoc no problem, use Jenkins in test environment automatically build times error (test server JDK version is 1.8), log as follows:
/home/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/ui/ Conceptrelationshipuiredirect.java:28:error:unknown tag:date * @date 9 APR 2015 ^/home/andreas/workspaces/cdm/cdm- Vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/cdmspringconnectionpool.java:19:error:unknown Tag:date * @ Date 9 Mar 2015 ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/ Iduuidname.java:16:error:unknown tag:date * @date 7 APR 2015 ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/jav A/eu/etaxonomy/cdm/vaadin/container/leafnodetaxoncontainer.java:38:error:unknown tag:date * @date Mar 2015 ^/ho me/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/ Leafnodetaxoncontainer.java:71:error: @param name not found * @param delegate ^/home/andreas/workspac Es/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/leafnodetaxoncontainer.java:71:warning:no DescriptioN for @param * @param delegate ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin /container/leafnodetaxoncontainer.java:72:warning:no description for @throws * @throws SQLException ^/home/ Andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/container/leafnodetaxoncontainer.java
: 74:warning:no @param for Classificationid public leafnodetaxoncontainer (int classificationid) throws SQLException { ^/HOME/ANDREAS/WORKSPACES/CDM/CDM-VAADIN/SRC/MAIN/JAVA/EU/ETAXONOMY/CDM/VAADIN/CONTAINER/TAXONNODECONTAINER.J Ava:48:warning:no description for @param * @param parent ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/
Java/eu/etaxonomy/cdm/vaadin/jscomponent/d3conceptrelationshiptree.java:40:error:unknown tag:date * @date 8 APR 2015 ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/jscomponent/
D3conceptrelationshiptreestate.java:16:error:unknown tag:date * @date 8 APR 2015 ^/home/andreas/workspaces/cdm/cdm-vaadin/src/main/java/eu/etaxonomy/cdm/vaadin/statement/ Cdmstatementdelegate.java:27:error:unknown tag:date * @date Mar 2015 ^ Command line is:/opt/java-oracle/jdk1. 8.0_60/jre/.. /bin/javadoc @options @packages Refer to the generated Javadoc files in '/home/andreas/workspaces/cdm/cdm-vaadin/target/
Site/apidocs ' dir.
At Org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeJavadocCommandLine (abstractjavadocmojo.java:5188) At Org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport (abstractjavadocmojo.java:2075) at Org.apache . Maven.plugin.javadoc.JavadocReport.generate (javadocreport.java:130) at Org.apache.maven.plugin.javadoc.JavadocReport.execute (javadocreport.java:318) ... more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following Articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/Maven/mojoexecutionexception
The simplest solution is as follows:
<profiles> <profile> <id>doclint-java8-disable</id> <activation> <jdk>[1.8,) </jdk> </activation> <properties> <javadoc.opts>
-xdoclint:none</javadoc.opts> </properties> </profile> </profiles> <build> <plugins> <!--configuration Generation Javadoc Package--> <plugin> <groupid>org.apache.maven.plugi Ns</groupid> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4
</version> <configuration> <encoding>UTF-8</encoding> <aggregate>true</aggregate> <charset>UTF-8</charset> <docencodi
Ng>utf-8</docencoding> <additionalparam>${javadoc.opts}</additionalparam>
</configuration> <executions> <execution> <id>attach-javadocs</id>
<goals> <goal>jar</goal> </goals>
</execution> </executions> </plugin> <!--configuration Generate source Pack--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactid>mav
En-source-plugin</artifactid> <version>3.0.1</version> <executions>
<execution> <id>attach-sources</id> <goals>
<goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
Reference Links
Maven isn't working in Java 8 when JavaDoc tags are incomplete:http://stackoverflow.com/questions/15886209/maven-is-not- Working-in-java-8-when-javadoc-tags-are-incomplete