开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜