수색…


소개

이것은 taglist-maven-plugin 을 사용하여 사용자 정의 보고서 (TODO, FIXME 작업 ...)를 생성하는 방법을 강조하는 작은 코드 (xml) 스 니펫입니다.

pom.xml을 사용하여 FIXME 보고서 생성

<build>
    <plugins>
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>project-info-reports</artifactId>
                <version>2.9</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>index</goal>
                        </goals>
                        <phase>site</phase>
                    </execution>
                </executions>
            </plugin>
    </plugins>
</build>

<reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.9</version>
                <reportSets>
                    <reportSet>
                    <reports>
                        <report>index</report>
                        <report>issue-tracking</report>
                    </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <tagListOptions>
                        <tagClasse>
                            <displayName>FIXME Work</displayName>
                            <tags>
                                <tag>
                                    <matchString>FIXME</matchString>
                                    <matchType>ignoreCase</matchType>
                                </tag>
                                <tag>
                                    <matchString>@fixme</matchString>
                                    <matchType>ignoreCase</matchType>
                                </tag>
                            </tags>
                        </tagClasse>
                        <tagClasse>
                            <displayName>TODO Work</displayName>
                            <tags>
                                <tag>
                                    <matchString>TODO</matchString>
                                    <matchType>ignoreCase</matchType>
                                </tag>
                                <tag>
                                    <matchString>@todo</matchString>
                                    <matchType>ignoreCase</matchType>
                                </tag>
                            </tags>
                        </tagClasse>
                    </tagListOptions>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

그런 다음 실행

mvn clean site:site


Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow