When i build Netbeans RCP application via Maven my build always includes all localization jars: Russian(ru), Chinese(zh_CN), Japanese(ja) and Brazilian Portuguese(pt_BR). I would like to exclude these files. It increases build time and distributable artifact size. Localization jars take about 500kB.
As i understood nbm-maven-plugin puts these files into build. They locates here:
application/target/kws/platform/lib/locale
application/target/webstart/kws/branding
application/target/webstart/kws/org-openide-modules
And looks like :
boot_ja.jar
org-openide-modules_ja.jar
org-openide-util-lookup_ja.jar
org-openide-util_ja.jar
boot_pt_BR.jar
...
boot_zh_CN.jar
org-openide-modules_zh_CN.jar
org-openide-util-lookup_zh_CN.jar
org-openide-util_zh_CN.jar
Is there a way to exclude these files?
Vladislav, please have a look at this github project. It adds extra functionality for excluding/including locales.
Note: This plugin has some restrictions: