maven-javadoc-plugin:如何自定义包

时间:2016-03-08 01:39:03

标签: maven javadoc maven-javadoc-plugin

我的目标是将com.axonivy.compensation.entity包中的整个javad提取到html my maven 我已经尝试过:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
                <execution>
                    <id>domain-models</id>
                    <phase>prepare-package</phase>
                    <!-- <goals> <goal>javadoc</goal> </goals> -->
                    <goals>
                        <goal>jar</goal>
                    </goals>
                    <configuration>
                        <includes>com.axonivy.compensation.entity.*.java</includes>
                        <additionalparam>-Xdoclint:none</additionalparam>
                    </configuration>
                </execution>
            </executions>
        </plugin>

或按照这种方式https://maven.apache.org/plugins/maven-javadoc-plugin/examples/group-configuration.html

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
                <execution>
                    <id>domain-models</id>
                    <phase>prepare-package</phase>
                    <!-- <goals> <goal>javadoc</goal> </goals> -->
                    <goals>
                        <goal>jar</goal>
                    </goals>
                    <configuration>
                        <groups>
                            <group>
                                <packages>com.axonivy.compensation.entity</packages>
                            </group>
                        </groups>
                        <additionalparam>-Xdoclint:none</additionalparam>
                    </configuration>
                </execution>
            </executions>
        </plugin>

但仍未成功。现在提取整个项目的javadoc,而不仅仅是包com.axonivy.compensation.entity,

有人可以对此有所了解吗?感谢

0 个答案:

没有答案