[ https://issues.apache.org/jira/browse/MSITE-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17636177#comment-17636177 ]
Michael Osipov commented on MSITE-904: -------------------------------------- Another perfect example: https://mybatis.org/mybatis-3/ > Unable to generate zh_TW locale of site document > ------------------------------------------------ > > Key: MSITE-904 > URL: https://issues.apache.org/jira/browse/MSITE-904 > Project: Maven Site Plugin > Issue Type: Bug > Components: doxia integration > Affects Versions: 3.11.0 > Environment: Microsoft Windows [Version 10.0.19043.1766] > Reporter: Will > Assignee: Michael Osipov > Priority: Major > Fix For: 4.0.0-M4 > > Attachments: image-2022-06-22-02-31-55-966.png, > image-2022-06-22-02-40-32-419.png, image-2022-06-22-02-41-02-772.png, > image-2022-06-22-02-41-22-889.png, image-2022-06-22-02-41-41-253.png, > image-2022-06-22-02-42-09-288.png, image-2022-06-22-02-42-27-184.png, > image-2022-06-22-02-42-48-237.png > > > Here is my code: [https://github.com/doggy8088/mybatis-3/tree/patch-1] > I tried to run *mvn clean site* on my project. I expected to generate > *{{zh_TW}}* and *{{zh_CN}}* site in the *target/site* folder. But it didn't > generate it. Only *target/site/zh* been generated which means the *Apache > Maven Site Plugin* unable to distinguish between *{{zh_TW}}* and *{{zh_CN}}* > locale. > I checked the source code in the > *src\main\java\org\apache\maven\plugins\site\render\AbstractSiteRenderingMojo.java* > file. This only read *locale.getLanguage()* and it just ignored the > *Country* or *Region* part of the locale totally. > !image-2022-06-22-02-31-55-966.png! > !image-2022-06-22-02-40-32-419.png! > !image-2022-06-22-02-41-02-772.png! > !image-2022-06-22-02-41-22-889.png! > !image-2022-06-22-02-41-41-253.png! > !image-2022-06-22-02-42-09-288.png! > !image-2022-06-22-02-42-27-184.png! > !image-2022-06-22-02-42-48-237.png! > I think it's bug. -- This message was sent by Atlassian Jira (v8.20.10#820010)