zoukankan      html  css  js  c++  java
  • [Maven][taglist-maven-plugin]告警[WARNING] Using legacy tag format

    pom.xml中添加了taglist-maven-plugin配置,片段如下:

                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>taglist-maven-plugin</artifactId>
                        <version>2.4</version>
                        <configuration>
                            <tags>
                                <tag>fixme</tag>
                                <tag>FixMe</tag>
                                <tag>FIXME</tag>
                                <tag>@todo</tag>
                                <tag>todo</tag>
                                <tag>TODO</tag>
                                <tag>@deprecated</tag>
                            </tags>
                        </configuration>
                    </plugin>
    

    执行mvn clean package site时报错[WARNING] Using legacy tag format. This is not recommended.,详细报错如下:

    [INFO] Generating "Tag List" report      --- taglist-maven-plugin:2.4:taglist
    [WARNING] Using legacy tag format.  This is not recommended.
    

    这个WARNING指taglist-maven-plugin新版本指定tag的方式有所变更,新方式功能更强大,详细信息可以查看:http://jira.codehaus.org/browse/MTAGLIST-49。新版本的使用实例如下:

                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>taglist-maven-plugin</artifactId>
                        <version>2.4</version>
                        <configuration>
                            <tagListOptions>
                                <tagClasses>
                                    <tagClass>
                                        <displayName>Todo Work Annotation</displayName>
                                        <tags>
                                            <tag>
                                                <matchString>TODO</matchString>
                                                <matchType>ignoreCase</matchType>
                                            </tag>
                                            <tag>
                                                <matchString>@todo</matchString>
                                                <matchType>ignoreCase</matchType>
                                            </tag>
                                            <tag>
                                                <matchString>FIXME</matchString>
                                                <matchType>exact</matchType>
                                            </tag>
                                        </tags>
                                    </tagClass>
                                    <tagClass>
                                        <displayName>Version Annotation</displayName>
                                        <tags>
                                            <tag>
                                                <matchString>@deprecated</matchString>
                                                <matchType>ignoreCase</matchType>
                                            </tag>
                                        </tags>
                                    </tagClass>
                                </tagClasses>
                            </tagListOptions>
                        </configuration>
                    </plugin>
    
  • 相关阅读:
    solr 使用
    深入理解java虚拟机(二)HotSpot Java对象创建,内存布局以及访问方式
    深入理解java虚拟机(一)
    获取请求体数据 POST
    获取请求头数据
    Servlet之Request和Response 解析
    Servlet 之 Http协议
    Servlet 体系结构
    如何修改servlet的创建时机?
    Java Web servlet 详解
  • 原文地址:https://www.cnblogs.com/jiangxinnju/p/13466044.html
Copyright © 2011-2022 走看看