项目目录下执行mvn javadoc:javadoc
需在pom中加配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<reportOutputDirectory>../javadocs</reportOutputDirectory>
<destDir>easy-delivery</destDir>
</configuration>
</plugin>