我已经配置了 javadoc i Maven,但是 当我执行mvn package时,我必须执行mvn javadoc:javadoc i like Maven to this 。
我的 pom 看起来像
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>prepare-package</phase>
<goals>
<goal>package</goal>
</goals>
</execution>
</executions>
</plugin>