Maven on Flex/LiveCycle ES/Adobe projects : How to
Working with maven on pure Java (and thus LiveCycle ES project) is fairly easy,
the main challenge is to build/agree/find your livecycle ES jar repositories.
Managing Flex project with maven on the opposite can be more challenging.
(*) : Though, alternatives exist :like http://www.servebox.org/maven-flex-plugin/ looks also good to me, have you tried it ? (**) : Though, alternatives like q4e looks also good to me, have you tried it ?
Doing Flex
FlexMojos
After 127 votes on jira requesting maven support cf. SDK-12730, the flex team finally announced their pick is flexmojos (*)At the Flex Community Feedback Forum we once again heard a strong demand for Flex integration with Maven. We, unfortunately, do not have the resources to work on this feature, but given the high demand, we have changed this feature request's milestone to "SDK Community Fix Candidates"Good for me/us, our pick(*) (for fna) is flexmojos as well, the other good news areIf you're interested in this feature we hope you'll contribute to the Flex-Mojos project (http://code.google.com/p/flex-mojos/) that has been working on a Maven plugin for Flex. In particular, they are looking for help to provide better AIR support. For further discussion, please post to the forums (http://www.adobeforums.com/webx/.59b7e646).
- we believe this is a good project for the community to work on.
- version 3 of this maven plugin is now being sponsored by sonatype (VELO the author of flexmojos has been hired by sonatype a few months ago)
- on top of that, m2eclipse support for FB is coming . cf. http://jira.codehaus.org/browse/MNGECLIPSE-598
Other challenges:
- provide a maven archetype for quickstarting BlazeDS projects cf. BLZ-44
- fna provides it now , but the lcds archetype is yet to come
- Put BlazeDS WAR and libraries in a public Maven repository cf. BLZ-71
- same for lcds, but now at least internally the nexus tsi server is providing that
- Apps in non-main source folders are not yet supported, that sucks for maven projects cf. FB-8757
- this other compilers bug can be annoying as well SDK-15406,
- the compilers tells you have Error: Invalid Embed directive in stylesheet when you are just missing a dependency or a class.
Maven, Eclipse and FlexBuilder
Maven has now fairly good maven support thanks to M2Eclipse (**)- its Remote update site is : http://m2eclipse.sonatype.org/update/
Flex and Maven, further reading
I gathered quite a few links and tutorials at- on my blog and on fna
- on my delicious
Finding your artefacts, building your repositories
The next challenge when you are building project on top of Adobe products is that, none of them are released on maven central repositories. You have to find (and often create) your archetypes elsewhere.Non official Maven Adobe repositories
Here is the list I came up with, so far:- FlexMojos (the flex plugin for maven) hosts some open source Adobe artefacts as well
- Fna : I've been also creating an open source repository on our fna project
Next Challenges : groupIds, artifactIds and dependencies standardisation
What groupId for livecyle ? lcds ? blazeds ? flexunit ? cairngorm ? What are their dependencies ? I should not be the one to say, though I did (within the fna repositories at least for flexunit, cairngorm, blazeds and a few other open source flex libraries and on my blog ) But that should be done by the product team. Today it's not. It's a shame and it's error prone. So go and vote for those bugs :- http://bugs.adobe.com/jira/browse/FXU-27
- http://bugs.adobe.com/jira/browse/SDK-14725
- http://bugs.adobe.com/jira/browse/SDK-12730
- http://bugs.adobe.com/jira/browse/SDK-15406
- http://bugs.adobe.com/jira/browse/FB-8757
- http://bugs.adobe.com/jira/browse/BLZ-9
- http://bugs.adobe.com/jira/browse/BLZ-44
- http://bugs.adobe.com/jira/browse/BLZ-71
(*) : Though, alternatives exist :like http://www.servebox.org/maven-flex-plugin/ looks also good to me, have you tried it ? (**) : Though, alternatives like q4e looks also good to me, have you tried it ?
Version 13.1 last modified by XWiki Admin on 28/11/2009 at 16:20








Comments: 0