简体   繁体   中英

Netbeans Platform: excluding locales from war file in maven project

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?

UPD : I've found similar problems but for ant ( 1 , 2 ).

Vladislav, please have a look at this github project. It adds extra functionality for excluding/including locales.

Note : This plugin has some restrictions:

  • JDK 7 or higher
  • compatibility issues with Netbeans IDE.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM