I have the same problem. "Flex compiler and flex framework versions doesn't match. "
I have a Flex 3 codebase which I'm trying to move to Flex 4. I have installed maven 3.0.3 for Flex Mojos 4.5.1. I have set 4.5.1.21328 for the Flex compiler and framework. I have set 4.0-RC2 for the flexmojos-version. When I change the flexmojos-version from 4.0-RC2 -> 3.8 it compiles successfully. When the only thing I change is the flexmojos-version to 4.0-RC2 it throws the framework versions doesn't match error. On Sep 19, 1:44 am, AndreasF <[email protected]> wrote: > Does anybody have any experience configuring FlexMojo forFlex4.5.1 > and Flash Player 10.3. > > Well so far we have installed the FlexMojo 4 RC 1, yet it seems that > our compilation fails right at the line of flashplayer 10.3-only code: > > _mic = Microphone.getEnhancedMicrophone();. > > So far this is the only addition to aFlex3.5 codebase (hopefully > there will be many more), so what I've been sadly guessing is that > sinceFlex4.5.1 only ships with the playerglobal.swc for 10.2, that > perhaps FlexMojodoesn'tcompile for 10.3 at all? I hope not. > > Somewhere in the process we got this amusing error, so perhaps this is > the case?: > > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > default-compile-swc of goal org.sonatype.flexmojos:flexmojos-maven- > plugin:4.0-RC1:compile-swc > failed:Flexcompilerandflexframeworkversionsdoesn'tmatch.Compiler: > '4.5.1.21328' -Framework: > '10-3.3.0.4852'. > You can use > 'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking' > to disable this check. Please refer to Flexmojos maven doc. > If you prefer fixing it instead of ignoring, take a look > at:https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP > luginManager.java: > 110) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: > 209) > ... 19 more > > One confusing issue for me and the deployment engineer has been that > the adobe docs state that thecompileroption > swf-version=12 has to be included in the compilaton, so following the > lexical pattern of the Adobe option: -target-player maps to > <targetPlayer> in the pom.xml I assumed that the Adobe option: -swf- > version maps to <swfVersion>, but I couldn't find exactcompiler > option mappings in the FlexMojo docs. > > Would it be possible for anybody to send a sample pom.xml for aFlex > 4.5.1 compilation with theFlex3 that compiles for flash player 10.3 > and whatever else is needed to include 10.3? Or can I assume for now > it's not possible? -- 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/
