Maven依存関係にあるインターフェースからJavadocを継承する必要があります。ドキュメントを継承するために、自分のモジュールのjavadocプラグインにオーバーライドを追加しました。私はmvn site
の目標の一部としてJavadocを生成したいので、私のPOMの<reporting>
セクションに入れました。Maven依存関係からのJavadoc継承
私の問題は、<includeDependencySources>
をオンにするということは、指定した依存関係のソースがモジュール用のJavadocの一部として生成されていることを意味します。依存関係のソースのJavadocを生成せずに、依存関係のソースからドキュメントを継承する方法はありますか?
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration combine.self="append">
<source>${jdkVersion}</source>
<includeDependencySources>true</includeDependencySources>
<includeTransitiveDependencySources>false</includeTransitiveDependencySources>
<dependencySourceIncludes>
<dependencySourceInclude>com.mysource.object:*</dependencySourceInclude>
<dependencySourceInclude>com.mysource.object2:*</dependencySourceInclude>
<dependencySourceInclude>com.mysource.common:*</dependencySourceInclude>
</dependencySourceIncludes>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
改正のファイル名にマップ:MVN 'で' site'がゴールではありませんsite' [Mavenのサイトライフサイクル](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference)の_phase_(このフェーズへのデフォルトバインディングは 'site'目標です'maven-site-plugin'の略語は、あなたが推測した' site'です)。 –