I'm sorry to still be on this localization stuff but I don't see this
covered in the docs anywhere  (if this process is described somewhere
in relation to flex-mojos please let me know)...

Using flex plugin 3.8, I understand if I want to use other locales
that I need to use copylocale from the command line which creates my
locale dir (eg german as an example) and a rpc_rb.swc file

I assume that rbc_rb.swc file is what I have to deploy?

I deployed the {flex-sdk-dir}/frameworks/locale/de_DE/pc_rb.swc as
both a framework artifact and an rpc artifact to our internal repo.

example for rpc (I deployed it also as framework changing artifactid
to 'framework'):

groupId=com.adobe.flex.framework
artifactId=rpc
version=3.6.0.16321
classifier=de_DE
packaging=rb.swc

mvn no longer complains about not being able to find
framework-3.6.0.16321-de_DE.rb.swc and rpc-3.6.0.16321-de_DE.rb.swc
but it ends up hanging for quite a long time in the build at
-metadata.language+=de_DE

after which it then errors with

[ERROR] unable to load SWC flex-3.6.0.16321.swc (more stack trace
shown at end of this email.)

If it's relevant my plugin definition looks like:

<plugin>
        <groupId>org.sonatype.flexmojos</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>3.8</version>
        <extensions>true</extensions>                           
        <configuration>
                <sourceFile>FlightReservation1.mxml</sourceFile>
                
<resourceBundlePath>${basedir}/locale/{locale}</resourceBundlePath>
                <compiledLocales>
                        <locale>en_US</locale>
                        <locale>ja_JP</locale>
                        <locale>de_DE</locale>
                </compiledLocales>
        </configuration>
        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>compiler</artifactId>
                        <version>3.6.0.16321</version>
                        <type>pom</type>
                </dependency>
        </dependencies>
</plugin>

More details on the error:

org.apache.maven.lifecycle.LifecycleExecutionException: Error compiling!
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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:597)
        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.AbstractCompilerMojo.callCompiler(AbstractCompilerMojo.java:1141)
        at 
org.sonatype.flexmojos.compiler.AbstractCompilerMojo.run(AbstractCompilerMojo.java:2404)
        at 
org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:155)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)

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

http://flexmojos.sonatype.org/

Reply via email to