Include images in Maven-generated JavaDoc
I have a problem in making maven include my images when running javadoc:javadoc
Source structure looks like this
src/main/javadoc/
classpack开发者_开发问答age/../path
docfiles
image.png
package.html
When running javadoc:javadoc the package.html file is picked up, for the specific package, but the image.png is left out. Am I missing something?
Best regards, Niclas
Pay attention to the directory that need to be named doc-files and remember to configure correctly the maven-javadoc-plugin
. Eg:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<docfilessubdirs>true</docfilessubdirs>
</configuration>
</plugin>
精彩评论