How to install maven in Flash Builder 4.5
Maven can be installed with a few clicks, straight from the Eclipse MarketPlace:
- Go to Help>Eclipse MarketPlace

- Type ‘Maven’ into the filter
Select m2Eclipse, click on install:

- Click Next, Accept T&C, click Finish, restart FB.

How to enable m2eclipse on your project:
- right click on your project in Package explorer,
click maven>Enable Dependency Management
(you can only do this on maven projects – ie. you have to have a pom.xml in your project root)

This will allow you to:
6 Responses to How to install maven in Flash Builder 4.5
Leave a Reply Cancel reply
Tags
3D Printing air apparat as3 colours cpd datagram FDT flash flash builder flex FlexCPD FlexMetrics FlexPMD flex skinning FlexUnit git grails groovy hudson jenkins joomla Launchpad linux mac maven Maya netfabb os x lion parsley performance pmd replicatorg reprap scala scien scientific linux sonar sts subclipse svn udp ultimakerBlogroll





cool tip thanks
I can get everything working using Maven command line just fine but m2eclipse in Flash Builder is another story. I was wondering, have you gotten a dependency on a single flex library project to work with another flex library project? Or even a flex library project to a flex project?
Hi Samer,
Flash Builder 4.5 will ignore the dependencies in your pom file, so you will need to copy all swc dependencies into a folder and set it as a swc folder.
A simple way to automate it:
1. create a folder in your project root, eg. libs-generated
2. go to properties>Flex Build Path>Add SWC Folder. Select the folder you created in your pom.xml
3. Edit your pom.xml and create a hook to process-sources maven lifecycle phase where you copy all dependencies into libs-generated
You can use the copy-dependencies goal for this.
I hope it helped,
Zoltan
I tried the dependency plugin but it was a huge wart and ultimately not worth it when managing multiple modules. I decided to give Intellij IDEA a try, which was hard considering I have been using Eclipse since it replaced VisualAge for Java. I have to tell you, it is great so far. Full Maven support for Java and Flex.
When exploring for a solution to this problem, I read a reply from Marvin Froeder in which he indicated Sonatype is working on integrating Flexmojos with m2eclipse. I would assume Adobe has an interest as well. But by the time that happens it may very well be too late for me because I may not want to come back to Eclipse.
Thanks for the comment. It helped confirm what seemed to be the case.
Hi Samer,
You are absolutely right, currently it’s a real pain to use Maven with Flash builder or FDT.
Adobe are looking into adding maven/flexmojos support into FB, hopefully it will be available to the public soon.
For the time being IntelliJ works really well with Maven Flex projects, it gives you syntax highlighting and code completion straight from pom dependencies, there’s no need to copy the swc-s back into a lib folder.
… [Trackback]…
[...] Read More here: zoltanb.co.uk/how-to-install-maven-in-flash-builder-4-5/ [...]…