开发者

Include images in Maven-generated JavaDoc

开发者 https://www.devze.com 2023-02-12 06:09 出处:网络
I have a problem in making maven include my images when running javadoc:javadoc Source structure looks like this

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

精彩评论

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