<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>Francois Le Droff</title>
      <link>http://blogs.adobe.com/francoisledroff/</link>
      <description>A french Adobe consultant blog</description>
      <language>en</language>
      <copyright>Copyright 2009</copyright>
      <lastBuildDate>Tue, 03 Mar 2009 09:37:40 +0000</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.2</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Maven on Flex/LiveCycle ES/Adobe projects : How to</title>
         <description><![CDATA[<p>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.</p><p>
</p><h3 class="heading-1-1" id="HDoingFlex"><span>Doing Flex </span></h3><p>

</p><h4 class="heading-1-1-1" id="HFlexMojos"><span>FlexMojos</span></h4><p>

<p>After 127 votes on jira requesting maven support cf. <span class="wikiexternallink"><a href="http://bugs.adobe.com/jira/browse/SDK-12730">SDK-12730</a></span>, <br />
the flex team finally announced their pick is flexmojos (*)</p><p><br />
</p><blockquote class="quote"><br />
At the Flex Community Feedback Forum we once again heard a strong demand for Flex integration with Maven. <br />
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" </p>

<ul class="minus">
<li>we believe this is a good project for the community to work on.</li>
</ul>If you're interested in this feature we hope you'll contribute to the Flex-Mojos project (<span class="nobr"><a href="http://code.google.com/p/flex-mojos/">http://code.google.com/p/flex-mojos/</a></span>) 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 (<span class="nobr"><a href="http://www.adobeforums.com/webx/.59b7e646">http://www.adobeforums.com/webx/.59b7e646</a></span>). 
</blockquote><p>
Good for me/us, our pick(*) (for <span class="wikiexternallink"><a href="http://code.google.com/p/fna">fna</a></span>) is flexmojos as well, the other good news are 
</p><ul class="star">
<li>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)</li>
<li>on top of that, m2eclipse support for FB is coming . cf. <span class="wikiexternallink"><a href="http://jira.codehaus.org/browse/MNGECLIPSE-598">http://jira.codehaus.org/browse/MNGECLIPSE-598</a></span></li>

</ul><h4 class="heading-1-1-1" id="HOtherchallenges3A"><span>Other challenges: </span></h4><p>

</p><ul class="star">
<li>provide a maven archetype for quickstarting BlazeDS projects cf. <span class="wikiexternallink"><a href="http://bugs.adobe.com/jira/browse/BLZ-44">BLZ-44</a></span><ul class="star">
<li><span class="wikiexternallink"><a href="http://code.google.com/p/fna">fna</a></span> provides it now , but the lcds archetype is yet to come</li>
</ul></li>
<li>Put BlazeDS WAR and libraries in a public Maven repository cf. <span class="wikiexternallink"><a href="http://bugs.adobe.com/jira/browse/BLZ-71">BLZ-71</a></span><ul class="star">
<li>same for lcds, but now at least internally the nexus tsi server is providing that</li>

</ul></li>
<li>Apps in non-main source folders are not yet supported, that sucks for maven projects cf. <span class="wikiexternallink"><a href="http://bugs.adobe.com/jira/browse/FB-8757">FB-8757</a></span></li>
<li>this other compilers bug can be annoying as well <span class="wikiexternallink"><a href="http://bugs.adobe.com/jira/browse/SDK-15406">SDK-15406</a></span>,<ul class="star">
<li>the compilers tells you have Error: Invalid Embed directive in stylesheet when you are just missing a dependency or a class.</li>
</ul></li>
</ul><h4 class="heading-1-1-1" id="HMaven2CEclipseandFlexBuilder"><span>Maven, Eclipse and FlexBuilder </span></h4><p>

<p>Maven has now failry good maven support thanks to M2Eclipse (**)<br />
</p><ul class="star"><br />
<li>its Remote update site is : <span class="nobr"><a href="http://m2eclipse.sonatype.org/update/">http://m2eclipse.sonatype.org/update/</a></span></li></p>

</ul>m2eclipse support for FB is not there yet cf. <span class="wikiexternallink"><a href="http://jira.codehaus.org/browse/MNGECLIPSE-598">http://jira.codehaus.org/browse/MNGECLIPSE-598</a></span>
But it's nevertheless perfetly feasible to work with FB and a maven build.<p>
One of them is to add a M2_REPO linked resource that will be use in the FB build classpath.</p><p>
</p><h4 class="heading-1-1-1" id="HFlexandMaven2Cfurtherreading"><span>Flex and Maven, further reading</span></h4><p>

<p>I gathered quite a few links and tutorials at <br />
</p><ul class="star"><br />
<li>on my <span class="wikiexternallink"><a href="http://www.droff.com">blog</a></span> and on <span class="wikiexternallink"><a href="http://code.google.com/p/fna">fna</a></span></li></p>

<p><li>on <span class="wikiexternallink"><a href="http://delicious.com/francoisledroff/maven+flex">my delicious</a></span></li><br />
</ul><h3 class="heading-1-1" id="HFindingyourartefacts2Cbuildingyourrepositories"><span>Finding your artefacts, building your repositories</span></h3><p></p>

<p>The next challenge when you are building project on top of Adobe products is that, none of them are released on maven central repositories.<br />
You have to find (and often create) your archetypes elsewhere.</p><p><br />
</p><h4 class="heading-1-1-1" id="HNonofficialMavenAdoberepositories"><span>Non official Maven Adobe repositories </span></h4><p></p>

<p>Here is the list I came up with, so far:</p><p><br />
</p><ul class="star"><br />
<li>FlexMojos (the flex plugin for maven) hosts some open source Adobe artefacts as well<ul class="star"><br />
<li><span class="wikiexternallink"><a href="http://svn.sonatype.org/flexmojos/repository/">http://svn.sonatype.org/flexmojos/repository/</a></span></li></p>

</ul></li>
<li>Fna : I've been also creating an open source repository on our fna project<ul class="star">
<li><span class="wikiexternallink"><a href="http://fna.googlecode.com/svn/trunk/fna/fna_m2_repository">http://fna.googlecode.com/svn/trunk/fna/fna_m2_repository</a></span></li>
</ul></li>
</ul>Do you know any others ?<p>
What I do is that I proxy and aggregate those repositories with 
other Adobe proprietary LiveCycle ES and lcds artefacts through a <span class="wikiexternallink"><a href="http://nexus.sonatype.org/">Nexus Maven Repository Manager</a></span> for my entreprise projects.</p><p>
What about you ?</p><p>
</p><h3 class="heading-1-1" id="HNextChallenges3AgroupIds2CartifactIdsanddependenciesstandardisation"><span>Next Challenges : groupIds, artifactIds and dependencies standardisation</span></h3><p>

<p>What groupId for livecyle ? lcds ? blazeds ? flexunit ? cairngorm ?<br />
What are their dependencies ?<br />
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)</p><p><br />
But that should be done by the product team.<br />
Today it's not. It's a shame and it's error prone.</p><p><br />
So go and vote for those bugs :</p><p><br />
</p><ul class="star"><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/FXU-27">http://bugs.adobe.com/jira/browse/FXU-27</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/SDK-14725">http://bugs.adobe.com/jira/browse/SDK-14725</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/SDK-12730">http://bugs.adobe.com/jira/browse/SDK-12730</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/SDK-15406">http://bugs.adobe.com/jira/browse/SDK-15406</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/FB-8757">http://bugs.adobe.com/jira/browse/FB-8757</a></span></li></p>

<p><li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/BLZ-9">http://bugs.adobe.com/jira/browse/BLZ-9</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/BLZ-44">http://bugs.adobe.com/jira/browse/BLZ-44</a></span></li><br />
<li><span class="nobr"><a href="http://bugs.adobe.com/jira/browse/BLZ-71">http://bugs.adobe.com/jira/browse/BLZ-71</a></span></li><br />
</ul><br><br><p><br />
(*) : Though, alternatives exist :like <span class="nobr"><a href="http://www.servebox.org/maven-flex-plugin/">http://www.servebox.org/maven-flex-plugin/</a></span> looks also good to me, have you tried it ?<br />
(**) : Though, alternatives like q4e looks also good to me, have you tried it ?</p></p>]]></description>
         <link>http://blogs.adobe.com/francoisledroff/2009/03/maven_on_flexlivecycle_esadobe.html</link>
         <guid>http://blogs.adobe.com/francoisledroff/2009/03/maven_on_flexlivecycle_esadobe.html</guid>
         <category>maven</category>
         <pubDate>Tue, 03 Mar 2009 09:37:40 +0000</pubDate>
      </item>
            <item>
         <title>Flex for Java developers (at the BreizhJUG)</title>
         <description><![CDATA[<p>Yesterday I had the chance to present at the <a href="http://www.breizhjug.org/">BreizhJUG</a> (a <a href="http://en.wikipedia.org/wiki/Breton_people">Breton</a> Java user group) a session named 
<a href="http://flex.breizhjug.org/">"Flex for Java Developers"</a>. A crowd of almost 100 happy Java developers and architects was willing to know more about Flex. </p>

<img src="http://www.jroller.com/francoisledroff/resource/Fx_DUKE-small.jpg" />

<p>I had an an hour and half to cover : </p>
<ul><li level="1" type="ul"><p>a basic presentation of the flash and AIR platforms, </p></li>
<li level="1" type="ul"><p>cool UX flash/flex/AIR demos</p></li>
<li level="1" type="ul"><p>the latest great features of flash 10</p></li>
<li level="1" type="ul"><p>and flex, and its ecosystem from a Java developer perspective (mvn framework, testing libraries, building and quality tools, blazeds, lcds)</p></li>
</ul>

<p>I ended up the session presenting <a  href="http://code.google.com/p/fna/">fna</a> 
<a  href="http://fna.googlecode.com/svn/trunk/fna/site/mvn_archetypes/index.html">maven archetypes</a>. I prepared some new fna features for this talk. Those features are still under development but are already available in SNAPSHOT releases :</p>
<ul>
<li level="1" type="ul"><p>I added flexbuilder support to some of my archetypes. 
(Taking as a start the simpler of <a href="http://fna.googlecode.com/svn/trunk/fna/site/mvn_archetypes/index.html">all the fna archetypes</a>, the 
<a href="http://fna.googlecode.com/svn/trunk/fna/site/mvn_archetypes/flex-library-archetype/index.html">flex-library-archetype</a>)</p></li>
<li level="1" type="ul"><p>I also upgraded the archetypes with flexmojos 2.0 support and up to the latest Flex SDK</p></li>
</ul>



<p>
Have a look at<a href="http://jroller.com/francoisledroff/entry/java_for_flex_architects">my other blog</a> 
to look up for details and for the presentation I uploaded on slideshare</p>]]></description>
         <link>http://blogs.adobe.com/francoisledroff/2009/02/flex_for_java_developers_at_th.html</link>
         <guid>http://blogs.adobe.com/francoisledroff/2009/02/flex_for_java_developers_at_th.html</guid>
         <category></category>
         <pubDate>Tue, 03 Feb 2009 13:09:06 +0000</pubDate>
      </item>
            <item>
         <title>My blazeDS XDoclet Spring Hibernate Maven Archetype </title>
         <description><![CDATA[I started working on a personal project during the week-ends lately.
<br>
Here is the result I'm happy to share with the world :<br>
A great new blazeDS Xdoclet Spring Hibernate Maven Archetype (hosted at google code): 
<ul>
<li><a class="jive-link-external" href="http://code.google.com/p/fna/wiki/blazedsXdocletSpringHibernateMvnArchetype">http://code.google.com/p/fna/wiki/blazedsXdocletSpringHibernateMvnArchetype</a></li>
</ul>

Try it out !
<ul>

<li>Add my maven repository to your repositories list in your maven configuration file,</li>
<li>Run 3 maven command lines :
<ul>
<li><b>mvn archetype:create ....</b> (to create your new flex blazeds spring hibernate multi-modules project)</li>
<li><b>mvn install</b> (at the root of your newly created project : to compile and package it)</li>
<li><b>mvn jetty:run-exploded</b> (at the root of java_webapp module : to run and test your web app at <a class="jive-link-external" href="http://localhost:8080">http://localhost:8080</a> )</li>

</ul>
</li>
</ul>
                
You'll have a sample webapp displays a CRUD "Hello world!" flex web application . This CRUD application was "inspired" from <a class="jive-link-external" href="http://sebastien-arbogast.com/2008/04/20/flex-spring-and-blazeds-the-full-stack-epilogue/">a great article made by Sébastien Arbogast</a><br>
Thanks Sebastien !<br>
<br>
The flex stuff is compiled and packaged through <a class="jive-link-external" href="http://blog.flex-mojos.info/">Flex Mojos</a>.<br>
Thanks Velo !<br>

<br>
I know quite a few people are waiting for it (12 votes and 6 watching)  : <a class="jive-link-external" href="https://bugs.adobe.com/jira/browse/BLZ-44">https://bugs.adobe.com/jira/browse/BLZ-44</a><br>
Don't hesitate to drop me a comment, or a mail.<br>
I'll tell you more about it in the coming days.]]></description>
         <link>http://blogs.adobe.com/francoisledroff/2008/05/my_blazeds_xdoclet_spring_hibe.html</link>
         <guid>http://blogs.adobe.com/francoisledroff/2008/05/my_blazeds_xdoclet_spring_hibe.html</guid>
         <category>maven</category>
         <pubDate>Sat, 24 May 2008 16:53:48 +0000</pubDate>
      </item>
      
   </channel>
</rss>
