On Fri, Dec 26, 2008 at 8:01 AM, Bjorn <[email protected]> wrote:
> When I run mvn install, I get this error:
> [INFO] Error installing artifact: File C:\Users\BjDe\workspace\flex-
> maven\ria\target\ria-1.0-SNAPSHOT-en_US.swf does not exist
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error
> installing artifact: File C:\Users\BjDe\workspace\exocura-flex-maven
> \exocura-ria\target\exocura-ria-1.0-SNAPSHOT-en_US.swf does not exist

If the swf doesn't exist, it is usually because it failed to compile correctly.

> As you can see, I'm using the latest installment, so I really don't
> know what the problem could be.  Above these files, there's a list of
> errors, which look like this:
>
> [INFO] Generating resource-bundle for en_US
> Loading configuration file C:\Users\BjDe\workspace\exocura-flex-maven
> \exocura-ri
> a\target\classes\config.xml
> Error: Unable to resolve resource bundle "containers" for locale
> "en_US".
> Error: Unable to resolve resource bundle "validators" for locale
> "en_US".
> Error: Unable to resolve resource bundle "states" for locale "en_US".
> Error: Unable to resolve resource bundle "styles" for locale "en_US".
> Error: Unable to resolve resource bundle "effects" for locale "en_US".
> Error: Unable to resolve resource bundle "logging" for locale "en_US".
> Error: Unable to resolve resource bundle "controls" for locale
> "en_US".
> Error: Unable to resolve resource bundle "rpc" for locale "en_US".
> Error: Unable to resolve resource bundle "formatters" for locale
> "en_US".
> Error: Unable to resolve resource bundle "core" for locale "en_US".
> Error: Unable to resolve resource bundle "messaging" for locale
> "en_US"
> Error: Unable to resolve resource bundle "SharedResources" 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".
>
> I think these are just warnings, but I'm not quite sure.  I don't know
> why it's looking for all these files too, since I didn't configure it
> and I also don't know if it's possible to configure that.

No, these are real errors and the root cause of the problem. While
trying to compile your resource swf, it couldn't find resource bundles
it depends on. In this case these are all resource bundles from the
Flex SDK. That means that you are missing a dependency to the SDK
resource bundles.

If you are using the Flex-mojos super-pom, then this taken care of for
you (at least for version 3.2). If are not using the super-pom, then
my best guess is that you're not declaring the Flex SDK dependency
correctly or are mixing versions. It should look something like this:

<!-- Flex SDK dependencies -->
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.sdk.version}</version>
                        <type>pom</type>
                </dependency>

where ${flex.sdk.version} is 3.2.0.3958. If you use a different
version of the SDK, then you also need to add a dependency to the
correct version of the compiler with the version you are using:

                <plugins>
                        <plugin>
                                <groupId>info.flex-mojos</groupId>
                                <artifactId>flex-compiler-mojo</artifactId>
                                <version>${flex-mojos.version}</version>
                                <extensions>true</extensions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.sdk.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                                <configuration>
........

If you already have these setup, and you're not getting the Flex SDK
resource bundles swcs in your flex compiler.library-path then
something else is wrong and we'll need more detail from the maven log
and your pom.

Logan

--~--~---------~--~----~------------~-------~--~----~
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