So you are saying I need to set use-resource-bundle-metadata to true in order to get include-resource-bundles working? That is it?
VELO On Tue, Jul 14, 2009 at 5:18 PM, Kris Hofmans <[email protected]>wrote: > > Hello, > > I quickly glanced at this issues using your link and the code provided > by adobe: > http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java > > Wouldn't his problem be fixed if he could turn > useResourceBundleMetaData on? I guess there must be a way to do it > from the pom.xml file (again, I am not a maven plugin expert ;)) > * Determines whether resources bundles are included in the > application. > * This is equivalent to using the <code>compiler.use-resource- > bundle-metadata</code> option of the mxmlc or compc compilers. > > Kind regards, > Kris > > On Jun 24, 2:19 pm, Marvin Froeder <[email protected]> wrote: > > Well, I don't invoke compc or mxmlc like ant tasks, I use the native > APIhttp://scm.sonatype.org/showfile.svn?path=/trunk/flexmojos-maven-plug. > .. > > <http://scm.sonatype.org/showfile.svn?path=/trunk/flexmojos-maven-plug.. > .>lines > > 1404 to 1406 shows where the includeResourceBundles is used. I just > follow > > the API, if you wanna give a shot on using a for to add one by one, but I > > don't think will make any difference. > > > > VELO > > > > On Wed, Jun 24, 2009 at 9:03 AM, Gerrie Kimpen <[email protected] > >wrote: > > > > > > > > > Hi, > > > I'm using Maven 2.1.0 and FlexMojos 3.2.0. > > > The following error occurs when I run *mvn package* on my Flex Library: > > > .... > > > *-metadata.date Wed Jun 24 13:44:09 CEST 2009 -target-player 9.0.0 > > > -use-network=true -verify-digests=true > > > > -include-resource-bundles+=MirageResources,charts,containers,collections,co > ntrols,core,effects,logging,mailSjablonen,cmStatus,messaging,rpc,SharedReso > urces,skins,states,styles,utils,validators,dataman > > > agement -load-config= **[ERROR] command line:[-1,-1] unknown > configuration > > > variable 'include-resource-bundles'** Use 'oem -help' for information > > > about using the command line. [INFO] > > > > ------------------------------------------------------------------------ > > > [ERROR] BUILD ERROR [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] Error compiling! [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: > Error > > > compiling! at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif > ecycleExecutor.java:703) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl > e(DefaultLifecycleExecutor.java:540) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife > cycleExecutor.java:519) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai > lures(DefaultLifecycleExecutor.java:371) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def > aultLifecycleExecutor.java:332) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl > eExecutor.java:181) > > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at > > > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at > > > org.apache.maven.cli.MavenCli.main(MavenCli.java:356) at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 > 9) > > > at > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:585) at > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at > > > org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at > > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at > > > org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: > > > org.apache.maven.plugin.MojoExecutionException: Error compiling! at > > > > org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.build(AbstractFlex > CompilerMojo.java:2264) > > > at > > > > org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.run(AbstractFlexCo > mpilerMojo.java:1152) > > > at > > > > org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:168 > ) > > > at > > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag > er.java:483) > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif > ecycleExecutor.java:678) > > > ... 16 more* ... > > > > > I don't known if it is relevant but: > > > > > - all compiler options in the above trace are logged on a new line > > > except for -load-config which is logged after > -include-resource-bundles > > > - I found this information info in the Flex Builder help files on > > > "Using the compc task":When using the > include-resource-bundlesattribute, you should not specify them as a comma or > space-delimited list in > > > a single entry. Instead, add a separate nested tag for each resource > bundle > > > that you want to include. > > > > > Regards, > > > > > Gerrie Kimpen > > > > > ps: For reference, this is the complete POM of my Flex Library: > > > > > *<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=" > > >http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > > >http://maven.apache.org/POM/4.0.0 > > >http://maven.apache.org/xsd/maven-4.0.0.xsd"> > > > <modelVersion>4.0.0</modelVersion> > > > <groupId>be.kindengezin.mirage.client</groupId> > > > <artifactId>MirageResources</artifactId> <packaging>swc</packaging> > > > <version>0.13.0</version> <name>MirageResources</name> <repositories> > > > <repository> <id>flex-mojos-repository</id> <url> > > >http://repository.sonatype.org/content/groups/flexgroup/</url> > <releases> > > > <enabled>true</enabled> </releases> <snapshots> > <enabled>false</enabled> > > > </snapshots> </repository> </repositories> <pluginRepositories> > > > <pluginRepository> <id>flex-mojos-repository</id> <url> > > >http://repository.sonatype.org/content/groups/flexgroup/</url> > <releases> > > > <enabled>true</enabled> </releases> <snapshots> > <enabled>false</enabled> > > > </snapshots> </pluginRepository> </pluginRepositories> <properties> > > > <flexmojos-maven-plugin.version>3.2.0</flexmojos-maven-plugin.version> > > > </properties> <dependencies> <dependency> > > > <groupId>com.adobe.flex.framework</groupId> > > > <artifactId>flex-framework</artifactId> <version>3.3.0.4852</version> > > > <type>pom</type> </dependency> </dependencies> <build> <plugins> > <plugin> > > > <groupId>org.sonatype.flexmojos</groupId> > > > <artifactId>flexmojos-maven-plugin</artifactId> > > > <version>${flexmojos-maven-plugin.version}</version> > > > <extensions>true</extensions> <configuration> <!-- ! Compilation > options > > > that apply to all compilation goals: ! - compile-swf ! - compile-swc ! > - > > > test-compile !--> <compiledLocales> <locale>en_US</locale> > > > </compiledLocales> > > > <resourceBundlePath>src/main/locales/{locale}</resourceBundlePath> > > > <includeResourceBundles> <bundle>MirageResources</bundle> > > > <bundle>charts</bundle> <bundle>containers</bundle> > > > <bundle>collections</bundle> <bundle>controls</bundle> > <bundle>core</bundle> > > > <bundle>effects</bundle> <bundle>logging</bundle> > > > <bundle>mailSjablonen</bundle> <bundle>cmStatus</bundle> > > > <bundle>messaging</bundle> <bundle>rpc</bundle> > > > <bundle>SharedResources</bundle> <bundle>skins</bundle> > > > <bundle>states</bundle> <bundle>styles</bundle> <bundle>utils</bundle> > > > <bundle>validators</bundle> <bundle>datamanagement</bundle> > > > </includeResourceBundles> <debug>true</debug> </configuration> > </plugin> > > > </plugins> </build>** </project>* > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
