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>
    
  • 相关阅读:
    随时积累随手记(持续更新...)
    Zookeeper集群搭建
    Dubbo——基于Zookeeper服务框架搭建及案例演示
    nginx配置浅析
    阿里面试回来,想和Java程序员谈一谈
    博客收藏列表
    启示录:打造用户喜爱的产品
    js深拷贝和浅拷贝
    MyBatis 总结记录
    ActiveMQ初体验
  • 原文地址:https://www.cnblogs.com/jiangxinnju/p/13466044.html
Copyright © 2011-2022 走看看