I’ve got this error when I decided to upgrade my flex framework up to “3.5.0.12683”.
Got this after mvn clean install:
[sourcecode language=”plain”]
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:3.8:compile-swf (default-compile-swf) on project webcast-player-slides-llb: Flex compiler and flex framework versions doesn’t match. Compiler: ‘3.2.0.3958’ – Framework: ‘3.5.0.12683’.
[/sourcecode]
This is because of Flexmojos gets its flex compiler version from its superpom (and there is ‘3.2.0.3958’).
So to fix this you need to add dependency for flexmojos plugin like this:
[xml]
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.8</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>3.5.0.12683</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
[/xml]