Hi Velo, I removed <sourcePaths> and <includeResourceBundles>, and then added
<mergeResourceBundle>true</mergeResourceBundle> When I try to build, I got an error: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Common Component Library [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ Downloading: http://repository.sonatype.org/content/groups/public//com/adobe/flex/sdk/datavisualization/3.0.0.477/datavisualization-3.0.0.477.pom Downloading: http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisualization/3.0.0.477/datavisualization-3.0.0.477.pom Downloading: http://repo_server:8081/artifactory/repo/com/adobe/flex/sdk/datavisualization/3.0.0.477/datavisualization-3.0.0.477.pom [INFO] [flex-compiler-mojo:compile-swc] [INFO] Using configuration file Z:\lion\myapp\uiframework \commoncomponents\commoncomponents-ui\target\config.xml [WARNING] com.adobe.flex.compiler::framework::zip::configs artifact not found. No extra manifests added! [WARNING] Nothing expecified to include. Assuming source folders. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] File {locale} not found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12 seconds [INFO] Finished at: Mon Jan 26 13:23:27 EST 2009 [INFO] Final Memory: 6M/254M [INFO] ------------------------------------------------------------------------ Sam On Jan 26, 1:10 pm, Marvin Froeder <[email protected]> wrote: > You are overwriting flex-mojos default sourcePaths. So, this behavior is > the expected. > > 1 - remove sourcePaths declaration. > 2 - remove includeResourceBundles declaration > 3 - define mergeResourceBundle > (http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#... > ) > > VELO > > > > On Mon, Jan 26, 2009 at 4:00 PM, Sam <[email protected]> wrote: > > > Hi, > > > I need help on building a swc using the flex-compiler-mojo plug-in. In > > the POM file below, if I don't include > > > <sourcePaths> > > <path>${basedir}/src/main/locales/{locale}</path> > > </sourcePaths> > > <includeResourceBundles> > > <bundle>CommonComponentsResources</bundle> > > </includeResourceBundles> > > > I get a swc file containing a library.swf file that has all my > > application files (acton script files, mxml files), but it contains no > > resource files under ${basedir}/src/main/locales/{locale}. > > > On the other hand, if I include the above tags (i.e., <sourcePaths> > > and <includeResourceBundles>), the swc file contains files under $ > > {basedir}/src/main/locales/{locale}, but my application files would > > not in in library.swf file. > > > How can I get both the application files and files under "locales" > > directory in the swc? > > > -------------- POM file ---------------- > > ... > > <packaging>swc</packaging> > > ... > > > <build> > > <finalName>commoncomponents</finalName> > > <sourceDirectory>src/main/flex/</sourceDirectory> > > <outputDirectory>target/</outputDirectory> > > <plugins> > > <plugin> > > <groupId>info.flex-mojos</groupId> > > <artifactId>flex-compiler-mojo</artifactId> > > <version>2.0M6</version> > > <extensions>true</extensions> > > <configuration> > > <locales> > > <locale>en_US</locale> > > </locales> > > <sourcePaths> > > <path>${basedir}/src/main/locales/{locale}</path> > > </sourcePaths> > > <includeResourceBundles> > > <bundle>CommonComponentsResources</bundle> > > </includeResourceBundles> > > </configuration> > > </plugin> > > </plugins> > > </build> > > > ... > > > ----------------------------- > > > I do have all the dependencies in my POM file and I don't get any > > compilation errors. > > > Thanks, > > > Sam- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
