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,controls,core,effects,logging,mailSjablonen,cmStatus,messaging,rpc,SharedResources,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(DefaultLifecycleExecutor.java:703)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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(AbstractFlexCompilerMojo.java:2264)
at
org.sonatype.flexmojos.compiler.AbstractFlexCompilerMojo.run(AbstractFlexCompilerMojo.java:1152)
at
org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:168)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.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-bundles attribute, 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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to