I've been getting to know a project that uses Maven and Flex. The flex portion of the project is currently built using FlexBuilder, and it seemed worth investigating whether or not buildng the Flex using Maven were feasible.
I took a look around at the options, and it seems like the Flex-Mojos project is the one with the most momentum. It's relatively current, gets updated regularly, and the team seems to be working with Sonatype, well-known in the Maven community.
The Flex Mojos project is still pretty rough in some areas. In order to get things done, you need to search the blog, the google group, the google code home and the newer wiki and source code repository hosted at Sonatype, as well as the plugin documentation. I'm hoping that with a little more time, the documentation will start to coalesce in a single location and get better, although sparse documentation is par for the course when it comes to Maven plugins.
With a little work, I was able to get the project to build an SWF file:
I also needed to declare a dependency on the SWC library on which the project depended:
There's still other things I'd need to do to mimic what Flex Builder offers, such as generate an HTML Wrapper and copy assets needed by the final application but not included in the SWF.
That said, I'd say that the basics are already in place and I'm starting to feel comfortable that there are options for putting Flex and Maven together, should you so desire.