Hi,
I try to use the Flex Mojos to compile my air application but I always
get an error that the resource bundle cannot be resolved.
Here is the POM (for the most part copied from the more-than-hello-
world-example):
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML header, nothing new -->
<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/maven-v4_0_0.xsd">
<!-- pom.xml model version -->
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>info.flex-mojos</groupId>
<artifactId>super-poms</artifactId>
<version>2.0.3</version>
</parent>
<!-- this project ID -->
<groupId>example</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<name>Test</name>
<packaging>swf</packaging>
<!--
this project doesn't follow the standard directory structure,
so,
need
to specify where are the sources
-->
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>info.flex-mojos</groupId>
<artifactId>flex-compiler-mojo</artifactId>
<version>2.0.3</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex.compiler</groupId>
<artifactId>license</artifactId>
<version>3.2.0</version>
</dependency>
</dependencies>
<configuration>
<useNetwork>false</useNetwork>
<sourcePaths>
<path>src/</path>
</sourcePaths>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<!-- here is where we configure which resources we want to copy
-->
<resources>
<resource>
<directory>src</directory>
<filtering>false</filtering>
<includes>
<include>data/**</include>
</includes>
</resource>
</resources>
</build>
<!-- ... repositories -->
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>3.2.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>3.2.0</version>
<type>resource-bundle</type>
<classifier>en_US</classifier>
</dependency>
<!-- Flex SDK dependencies -->
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>airglobal</artifactId>
<version>3.2.0</version>
<type>swc</type>
<scope>external</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex</artifactId>
<version>3.2.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>utilities</artifactId>
<version>3.2.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>airframework</artifactId>
<version>3.2.0</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>applicationupdater</artifactId>
<version>3.2.0</version>
<type>swc</type>
</dependency>
<!-- FlexUnit dependencies -->
<dependency>
<groupId>flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>0.85</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>flexunit.junit</groupId>
<artifactId>flexunit-optional</artifactId>
<version>0.85</version>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>
And here is the Output of Maven:
15K downloaded
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] [flex-compiler-mojo:compile-swf]
[INFO] Flex-mojos 2.0.3 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT file
[WARNING] Source file was not defined, flex-mojos will guess one.
[INFO] Using configuration file C:\Dokumente und Einstellungen
\imm0128\workspace\Bla\target\classes\config.xml
[INFO] Flex compiler configurations:
-compiler.accessible=false
-compiler.actionscript-file-encoding UTF-8
-compiler.allow-source-path-overlap=false
-compiler.as3=true
-compiler.debug=false
-compiler.es=false
-compiler.external-library-path C:\Dokumente und Einstellungen
\imm0128\workspace\Bla\target\classes\libraries\airglobal.swc
-compiler.fonts.local-fonts-snapshot C:\Dokumente und Einstellungen
\imm0128\workspace\Bla\target\classes\fonts.ser
-compiler.headless-server=false
-compiler.include-libraries=
-compiler.keep-all-type-selectors=false
-compiler.keep-generated-actionscript=false
-compiler.library-path C:\Dokumente und Einstellungen
\imm0128\.m2\repository\com\adobe\flex\framework\framework
\3.2.0\framework-3.2.0.swc C:\Dokumente und Einstellungen
\imm0128\.m2\repository\com\adobe\flex\framework\flex
\3.2.0\flex-3.2.0.swc C:\Dokumente und Einstellungen
\imm0128\.m2\repository\com
\adobe\flex\framework\utilities\3.2.0\utilities-3.2.0.swc C:\Dokumente
und Einstellungen\imm0128\.m2\repository\com\adobe\flex\framework
\airframework\3.2.0\airframework-3.2.0.swc C:\Dokumente und
Einstellungen\imm0128\.m2\repository\com\adobe\flex\framework
\applicationupdater\3.2.0\applicationupdate
r-3.2.0.swc
-compiler.locale en_US
-compiler.optimize=true
-compiler.source-path C:\Dokumente und Einstellungen\imm0128\workspace
\Bla\src
-compiler.strict=true
-compiler.use-resource-bundle-metadata=true
-compiler.verbose-stacktraces=false
-default-background-color 8821927
-default-frame-rate 24
-default-script-limits 1000 60
-default-size 500 375
-load-config C:\Dokumente und Einstellungen\imm0128\workspace\Bla
\target\classes\config.xml
-metadata.creator Marvin Herman Froeder
-metadata.date Tue Feb 10 09:48:51 CET 2009
-target-player 9.0.0
-use-network=false
-verify-digests=true
[INFO] Loading configuration file C:\Dokumente und Einstellungen
\imm0128\workspace\Bla\target\classes\config.xml
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "skins" for locale "en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "effects" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "containers" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "styles" for locale "en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "controls" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "core" for locale "en_US".
[ERROR] Unable to resolve resource bundle "collections" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "collections" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "collections" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "collections" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "collections" for locale
"en_US".
[ERROR] Unable to resolve resource bundle "skins" for locale "en_US".
[ERROR] Unable to resolve resource bundle "controls" for locale
"en_US".
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error compiling!
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 37 seconds
[INFO] Finished at: Tue Feb 10 09:48:57 CET 2009
[INFO] Final Memory: 15M/63M
[INFO]
------------------------------------------------------------------------
Can anyone help me?
Greetings Jens
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---