flash player version, flash player version in pom.xml, flex build using maven pom.xml, flex mojos, how to setup flash player version in maven build, how to setup flash player version using maven, maven build
When you work with flex applications, there are situations to force restrict the flash player to use specific version. To do this, you have to do the below three changes in your pom.xml.
To set the target player version as 9, you dont have to take much effort. Simply you can specify the <targetPlayer> to 9 like below.
To set the target player version as 10, follow the below steps.
Here we use the target player version 10 and flex SDK version 220.127.116.1171. Reason for this specific version is, when you work on maven build for flex applications, ultimately you should use flex-mojo’s repository. Flex mojo’s repository has the version 18.104.22.16871. Check the below url to find the different version of flex SDK supported in flex-mojo’s.
1. As a first step, you need to include the target version under the <configuration> element of the <plugin> in compiler plugin.
2. You must include the specific version of playerglobal. When you see your flex_home/frameworks/libs/player you can see two directories named as 9 and 10. Both has the playerglobal.swc for specific target version and invoked based on the player mentioned in the application. Here, you have to include the playerglobal.swc as dependency with the classifier 10.
3. When you add flex-framework dependency in your pom.xml, it includes the playerglobal.swc by default. So in order to make use of the version you specified in step 2, you have to exclude the playerglobal from flex-framework.
By following these 3 steps, you will be forced to use flash player 10 to render your flex application.