This is a known issue if you specify the compiler version.
You need to reference the flexmojos-threadlocaltoolkit-wrapper before
the compiler.
Have a look at the chapter "Things I reccomend to change" on this page.
http://dev.c-ware.de/confluence/display/PUBLIC/Configuring+your+poms

Chris

2011/5/13 mace <[email protected]>:
> i have a problem using the brand new release of flex sdk.
>
> when compiling a swc containing some assets i get the anoying error
> message Unable to transcode.
> just by switching the flexsdk.version number i get that error. using
> 4.0-beta-7 with 4.5.0.19786 works great.
>
> since i don't really know who is responsible for transcoding images
> assets i don't have any clue how to solve this problem.
> if it is solveable without patching flexmojos or flexcompiler at all.
>
> any ideas?
>
> i have a multimodule project and will only paste those two relevant
> parts:
>
> first from my super pom
>
>  <build>
>    <pluginManagement>
>      <plugins>
>        <plugin>
>          <groupId>org.sonatype.flexmojos</groupId>
>          <artifactId>flexmojos-maven-plugin</artifactId>
>          <version>${flexmojos.version}</version>
>          <extensions>true</extensions>
>          <dependencies>
>            <!-- this is needed to prevent version mismatch -->
>            <dependency>
>              <groupId>com.adobe.flex</groupId>
>              <artifactId>compiler</artifactId>
>              <version>${flexsdk.version}</version>
>              <type>pom</type>
>            </dependency>
>          </dependencies>
>        </plugin>
>      </plugins>
>    </pluginManagement>
>  </build>
>
> and then from my swc project:
>
>  <build>
>    <sourceDirectory>src/main/flex</sourceDirectory>
>    <resources>
>      <resource>
>        <directory>${basedir}/src/main/resources</directory>
>      </resource>
>    </resources>
>    <plugins>
>      <plugin>
>        <groupId>org.sonatype.flexmojos</groupId>
>        <artifactId>flexmojos-maven-plugin</artifactId>
>        <version>${flexmojos.version}</version>
>        <extensions>true</extensions>
>        <configuration>
>          <fonts>
>            <advancedAntiAliasing>true</advancedAntiAliasing>
>            <maxCachedFonts>20</maxCachedFonts>
>            <maxGlyphsPerFace>1000</maxGlyphsPerFace>
>            <managers>
>              <manager>flash.fonts.JREFontManager</manager>
>              <manager>flash.fonts.AFEFontManager</manager>
>              <manager>flash.fonts.BatikFontManager</manager>
>              <manager>flash.fonts.CFFFontManager</manager>
>            </managers>
>          </fonts>
>          <includeFiles>
>            <scan>
>              <directory>${basedir}/src/main/resources</directory>
>              <includes>
>                <include>defaults.css</include>
>                <include>metadata.xml</include>
>                <include>preview.jpg</include>
>                <include>**\/*.ttf</include>
>                <include>**\/*.png</include>
>              </includes>
>            </scan>
>          </includeFiles>
>          <configurationReport>true</configurationReport>
>        </configuration>
>      </plugin>
>    </plugins>
>  </build>
>
>
> thank you for any suggestions.
>
> --
> 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/

Reply via email to