1. 程式人生 > 實用技巧 >[Maven][l10n-maven-plugin]告警[WARNING] No dictionary file under folder

[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:\temp\Java\ApkToolBoxGUI\src\main\resources
[WARNING] No dictionary file under folder D:\temp\Java\ApkToolBoxGUI\src\main\resources. Skipping spellcheck validation.
[INFO] Looking for .properties files in: D:\temp\Java\ApkToolBoxGUI\src\main\resources

解決方案: