You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Will (Jira)" <ji...@apache.org> on 2022/06/21 18:43:00 UTC
[jira] [Updated] (MSITE-904) Unable to generate zh_TW locale of site document
[ https://issues.apache.org/jira/browse/MSITE-904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Will updated MSITE-904:
-----------------------
Attachment: image-2022-06-22-02-42-48-237.png
image-2022-06-22-02-42-27-184.png
image-2022-06-22-02-42-09-288.png
image-2022-06-22-02-41-41-253.png
image-2022-06-22-02-41-22-889.png
image-2022-06-22-02-41-02-772.png
image-2022-06-22-02-40-32-419.png
Description:
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.
was:
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!
I think it's bug.
> 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
> Priority: Critical
> 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.7#820007)