maven project-reports.html vs index.html

强颜欢笑 提交于 2019-12-04 14:56:17

This might not help, but I had setup the maven-site-plugin with an explicit reportinPlugins config section in an effort to get javadoc generation with mvn site working on jdk8. It looked like this

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.6</version>
                <configuration>
                    <reportPlugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-javadoc-plugin</artifactId>
                            <configuration>
                                <additionalparam>${javadoc.opts}</additionalparam>
                            </configuration>
   </plugin>

My issue was that the project info reporting plugin was never firing, nor was anything else in the reporting plugin section of the parent pom. The fix was to remove the reportPlugins child of maven site, like this

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.6</version>
</plugin>

Apparently when it is defined, it's a replacement, not just a configure a plugin type of thing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!