The molehill enabled Flex SDK available on Flashnexus has now been updated to the latests incubator version 11.0.1.3d, latest playerglobal release 051211 and the official stable flex 4.5 release 4.5.0.20967.
In order to use this SDK you need to add the following maven repository to either your .m2/settings.xml file or putting in directly in your pom of choice.
<repository> <id>flash-nexus-repository</id> <url>http://www.flashnexus.org/nexus/content/groups/public</url> </repository>
Then you will be able to access the SDK from your pom.
The Pom File
As normal you will be able to use this SDK adding the following SDK dependency to your project pom, specifying the version as 4.5.0.20967-MOLEHILL-051211.
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.5.0.20967-MOLEHILL-051211</version>
<type>pom</type>
</dependency>
</dependencies>
However the POM file needs a few extra bits added to work properly with the incubator flash player. You must use the beta 7 of Flex mojos for the build because this understands the swfVersion configuration parameter for the build. Then you must set the SWF version to 13 and target flash player 11.0.0. So you need to have the following in the configuration of your build at least
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-7</version>
<extensions>true</extensions>
<configuration>
<sourceFile>{source you want to compile}</sourceFile>
<targetPlayer>11.0.0</targetPlayer>
<swfVersion>13</swfVersion>
</configuration>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.5.0.20967-MOLEHILL-051211</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
You can then use Flexmojos as normal for your builds.
Please Note
This release is currently not available from the Sonatype repository, and not supported by them. All support requests and discussions should be directed to the Google group http://groups.google.com/group/flex-sdk-maven-install where everybody is welcome.
The release was deployed following the instructions in “Installing Flex SDK’s to Maven Repositories” with just a few tweaks (the molehill playerglobal.swc was injected as a flash player 11 playerglobal into the bundle – see the github repository for the files)
The Git repository is here.
http://github.com/piercer/flex_sdk_maven_install
Feel free to play and experiment with SDK deployment and pease let me know how you get on.


