I wonder where you got stuff like license-mis and flexmojos-threadlocaltoolkit-wrapper
On Tue, May 31, 2011 at 11:26 AM, Sri Sankaran <[email protected]>wrote: > *@Freeman:* A few suggestions come to mind. > > Build the SWF using FlashBuilder and see if you are able to use *that *to > get your application working. If a SWF built by FlashBuilder works but one > that is built by Flexmojos *doesn't *you can begin by comparing the config > dump generated by > Flexmojos<https://repository.sonatype.org/content/sites/flexmojos-site/4.0-beta-7/compile-swf-mojo.html#dumpConfigAttach> > to > that from FlashBuilder. > > Another thing is that you don't need a pluginManagement section if you > just have a single Flex module in your project. I know that probably has no > bearing on your issue however it may help to minimize the number of "moving > parts". Finally, following is the Flexmojos configuration *I *use for my > Flex 4.5 project. > > <build> > <sourceDirectory>src/main/flex</sourceDirectory> > <testSourceDirectory>src/test/flex</testSourceDirectory> > <plugins> > <plugin> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-maven-plugin</artifactId> > <version>4.0-beta-7</version> > <extensions>true</extensions> > <configuration> > <licenses> > <flexbuilder3>top secret</flexbuilder3> > </licenses> > <keepGeneratedActionscript>true</keepGeneratedActionscript> > <localesCompiled> > <locale>en_US</locale> > </localesCompiled> > <!-- Identify the location of the resource bundles --> > <localesSourcePath> > ${project.basedir}/src/main/resources/locale/{locale} > </localesSourcePath> > <mergeResourceBundle>true</mergeResourceBundle> > <services> > > ${basedir}\..\war\src\main\maven-build-resources\flex\services-config.xml > </services> > <!-- Do not issue a warning message if an ActionScript class does > not > have an explicit constructor. --> > <warnings> > <noConstructor>false</noConstructor> > </warnings> > <!-- Create a debug build --> > <debug>true</debug> > <!-- Generate accessible SWFs (SWCs) --> > <accessible>true</accessible> > <storepass /> > <sourceFile>Main.mxml</sourceFile> > <!-- Ensure that the resource bundles are included in the build --> > <includeResourceBundles> > <rb>application_messages</rb> > </includeResourceBundles> > <coverageViewerPath /> > <storepass /> > <themes> > > <theme>${project.basedir}/src/main/flex/assets/css/spark.css</theme> > </themes> > <defaultBackgroundColor>2707653</defaultBackgroundColor> > <classifier>test</classifier> > <swfVersion>11</swfVersion> > <fonts> > <!-- compiler.fonts.advanced-anti-aliasing: enables advanced > anti-aliasing > for embedded fonts, which provides greater clarity for small > fonts. --> > <advancedAntiAliasing>true</advancedAntiAliasing> > > <!-- compiler.fonts.managers: Compiler font manager classes, in > policy > resolution order --> > <managers> > <manager>flash.fonts.JREFontManager</manager> > <manager>flash.fonts.BatikFontManager</manager> > <manager>flash.fonts.AFEFontManager</manager> > <manager>flash.fonts.CFFFontManager</manager> > </managers> > </fonts> > </configuration> > <dependencies> > <dependency> > <groupId>com.adobe.flex.framework</groupId> > <artifactId>flex-framework</artifactId> > <version>4.5.0.20967</version> > <type>pom</type> > </dependency> > <!-- Express a dependency on the Flex license JAR > (Per https://docs.sonatype.org/display/FLEXMOJOS/FAQ#FAQ-1.3) > --> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>license-mis</artifactId> > <version>4.5.0.20967</version> > </dependency> > <dependency> > <groupId>org.sonatype.flexmojos</groupId> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId> > <version>4.5.0.20967</version> > </dependency> > <dependency> > <groupId>com.adobe.flex</groupId> > <artifactId>compiler</artifactId> > <version>4.5.0.20967</version> > <type>pom</type> > </dependency> > </dependencies> > </plugin> > </plugins> > </build> > > > Hope that helps > > Sri > > -- > 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/ > -- 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/
