[Maven][l10n-maven-plugin]告警[WARNING] No dictionary file under folder

时间:2022-07-23
本文章向大家介绍[Maven][l10n-maven-plugin]告警[WARNING] No dictionary file under folder,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

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

                <plugin>
                    <groupId>com.googlecode.l10n-maven-plugin</groupId>
                    <artifactId>l10n-maven-plugin</artifactId>
                    <version>1.8</version>
                    <configuration>
                        <locales>
                            <locale>en</locale>
                            <locale>zh_CN</locale>
                        </locales>
                    </configuration>
                </plugin>

执行mvn clean package site时报错[WARNING] No dictionary file under folder,详细报错如下:

[INFO] Generating "L10n validation" report --- l10n-maven-plugin:1.8:report
[INFO] Initializing l10n validators...
[INFO] Looking for .dic files in: D:tempJavaApkToolBoxGUIsrcmainresources
[WARNING] No dictionary file under folder D:tempJavaApkToolBoxGUIsrcmainresources. Skipping spellcheck validation.
[INFO] Looking for .properties files in: D:tempJavaApkToolBoxGUIsrcmainresources

解决方案: