Adobe publishes a lot more locales for Flex 4, so the number you'll have to copy and deploy yourself will definitely decrease. https://repository.sonatype.org/content/groups/flexgroup/com/adobe/flex/framework/framework/4.1.0.16076/ shows the repositories VELO has republished from Adobe into the Sonatype repository.
On Tue, Oct 12, 2010 at 1:15 PM, Rick R <[email protected]> wrote: > On Tue, Oct 12, 2010 at 3:03 PM, Bryan Turner <[email protected]> > wrote: > > The specific dependency it's complaining about doesn't seem to have > anything > > to do with localization--it's not a localized SWC. What does your > > <dependencies> section look like? > > Wow thanks Bryan! I'm not sure what happened but somewhere along the > line I must have borked my local .m2/com/adobe repo. When I remove the > de_DE declaration I still had issues, which surprised me since things > 'were' working when I was just using japan and english. I blew out my > local com/adobe m2 dir and reran mvn install and then things worked > again! Then I added the de_DE locale back and then that worked as > well! So thanks! > > I guess this is going to be a pain though when I have to update flex > versions since all my locale definitions will have to be redeployed to > our internal repo for the new version number? Not too big a deal I > guess. > > We'll be moving to Flex4 soon and maybe some of this localization is > made a bit easier to work with in regard to FlexMojos? > > > > > > On Tue, Oct 12, 2010 at 12:48 PM, Rick R <[email protected]> wrote: > >> > >> On Tue, Oct 12, 2010 at 2:24 PM, Bryan Turner <[email protected]> > >> wrote: > >> > For what it's worth, if you're on Windows XP or previous and using the > >> > default M2 repository location, that may be the culprit. I've had > >> > massive > >> > issues with "unable to load SWC" errors in the past when using the > >> > default > >> > (as have various members of my team). The path "C:\Documents and > >> > Settings\Bryan\.m2\repository" for my repository caused a lot of > >> > issues--the > >> > Flex compiler doesn't seem to cope with spaces in paths reliably (note > >> > that > >> > this is not a FlexMojos issue, if it's the error I was running into). > My > >> > Maven was installed in "C:\Development\apache-maven-2.2.1", so I > changed > >> > my > >> > <localRepository> in settings.xml to > >> > "C:\Development\apache-maven-2.2.1\repository", which has no spaces. > >> > With > >> > that path, I have not had any more "unable to load SWC" issues (nor > has > >> > anyone else on my team who has made this change). > >> > This may not be the issue you're having; it's just what I ran into > that > >> > looked similar. > >> > >> Thanks. I'm on a Mac and there are no spaces in the path and didn't > >> have an issue until I tried to use the de_DE locale that I deployed. > >> Maybe I didn't deploy the correct file(s) ? > >> > >> > >> > > >> > On Tue, Oct 12, 2010 at 12:07 PM, Rick R <[email protected]> wrote: > >> >> > >> >> 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]<flex-mojos%[email protected]> > >> >> For more options, visit this group at > >> >> http://groups.google.com/group/flex-mojos > >> >> > >> >> http://flexmojos.sonatype.org/ > >> > > >> > -- > >> > 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]<flex-mojos%[email protected]> > >> > For more options, visit this group at > >> > http://groups.google.com/group/flex-mojos > >> > > >> > http://flexmojos.sonatype.org/ > >> > > >> > >> > >> > >> -- > >> Rick R > >> > >> -- > >> 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]<flex-mojos%[email protected]> > >> For more options, visit this group at > >> http://groups.google.com/group/flex-mojos > >> > >> http://flexmojos.sonatype.org/ > > > > -- > > 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]<flex-mojos%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/flex-mojos > > > > http://flexmojos.sonatype.org/ > > > > > > -- > Rick R > > -- > 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]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- 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/
