Apache Maven
Genera rapporti FIXME / TODO usando il tag-list-maven-plugin
Ricerca…
introduzione
Questo è uno snippet di codice piccolo (xml) per evidenziare come usare il tag list-maven-plugin per generare report personalizzati (di TODO, FIXME funzionano ...)
pom.xml per generare un report 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>
Quindi corri
mvn clean site:site
Modified text is an extract of the original Stack Overflow Documentation
Autorizzato sotto CC BY-SA 3.0
Non affiliato con Stack Overflow