Apache Maven
taglist-maven-pluginを使用してFIXME / TODOレポートを生成する
サーチ…
前書き
これは、 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