I tried to create a fr_FR resource module. Using flex builder compiler mxmlc
works, there is the command:
mxmlc -locale=fr_FR -source-path=src/main/resources/locale/{locale}
-include-resource-bundles=mo_reports_i18n,collections,containers,controls,core,e
ffects,skins,styles -output fr_FR_ReportModule.swf
But using the flex-mojos plugin, it compled a swf file, much bigger (around
170k)than the mxmlc generated (about 30k). And it is not a valid resource
module -- load it caused the resourceManager to throw exception for can't find
resource bundle. Here is the related pom.xml file:
<groupId>mytest.rb.presentation</groupId>
<artifactId>fr_FR_resourceBundle</artifactId>
<name>Resource Module</name>
<!-- ===== DEPENDENCIES ====== -->
<dependencies>
<!-- LOCALE -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>${flex.version}</version>
<classifier>fr_FR</classifier>
<type>rb.swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>rpc</artifactId>
<version>${flex.version}</version>
<classifier>fr_FR</classifier>
<type>rb.swc</type>
</dependency>
</dependencies>
<packaging>swf</packaging>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flexmojos.version}</version>
<extensions>true</extensions>
<configuration>
<mergeResourceBundle>true</mergeResourceBundle>
<!--<allowSourcePathOverlap>true</allowSourcePathOverlap>-->
<targetPlayer>${flash.version}</targetPlayer>
<resourceBundlePath>${basedir}/src/main/resources/locale/{locale}</resourceBundlePath>
<compiledLocales>
<locale>fr_FR</locale>
</compiledLocales>
<includeResourceBundles>
<bundle>mo_reports_i18n</bundle>
<bundle>collections</bundle>
<bundle>containers</bundle>
<bundle>controls</bundle>
<bundle>core</bundle>
<bundle>effects</bundle>
<bundle>skins</bundle>
<bundle>styles</bundle>
</includeResourceBundles>
</configuration>
</plugin>
</plugins>
</build>
I am using flex-module plugin 3.6.1. Anybody has any idea?
Thanks
JD
Original issue reported on code.google.com by lian.d...@gmail.com on 21 Sep 2011 at 9:31
Original issue reported on code.google.com by
lian.d...@gmail.com
on 21 Sep 2011 at 9:31