IDEA 9 M1, Maven, Flex, and Flexmojos.

Hi,

I'm hoping someone can help me out with the proper way to get IDEA set up with Maven and Flex.  I can get everything to work, so I only need a couple of tips.  My Maven project is set up to use flexmojos ( http://flexmojos.sonatype.org ).  I believe those are going to be in central and are the official Flex dependencies I should be using.  Please correct me if I'm wrong.  I can check my project out from VCS and run mvn clean package from the command line and everything works.  I don't need to muck around with the Flex SDK since everything that's needed (including the compiler) is in the public repos from Sonatype.

However, when I import my project into IDEA, I still have to point it to a Flex SDK.  Is there any way I can avoid doing this?  The thing I really want to avoid is having all my inspections, etc. using one version of the SDK while my Maven build is using another.  Also, I don't understand if my dependent libraries will be used for inspections or the specified Flex SDK.

Any help would be appreciated,
Ryan

4 comments
Comment actions Permalink

Hello Ryan,
you are on the right way, IntelliJ IDEA support for flexmojos becomes better every day.
Issue related to you question was fixed recently: http://www.jetbrains.net/jira/browse/IDEADEV-38905
Please try latest EAP from http://www.jetbrains.net/confluence/display/IDEADEV/Maia+EAP
After flexmojos project import special Flexmojos SDK will be automatically created based on your pom.xml. It will not contain any SWCs because all required Maven resources are already attached as module libraries. But it will contain Flex compiler and debugger classpath (jars from your local maven repository), so just after project import you will be able to comile and run/debug your Flex application with just one click. Current limitations are:

  • you must have "configurationReport" parameter set in your pom.xml like this:

...
    <plugins>
      <plugin>
...
        <artifactId>flexmojos-maven-plugin</artifactId>
...
         <configuration>
          <configurationReport>true</configurationReport>
        </configuration>
      </plugin>
    </plugins>
...

  • compilation by IDEA works if target directory was not deleted because it uses some auxilary files copied to target directory during compilation by flexmojos.
0
Comment actions Permalink

I updated to 10633 and it it works exactly as I'd expect.  The Maven support alone is going to make an upgrade to v9 worth it for me.  I find it a touch aggressive when detecting changes, resolving dependencies, and re-importing modules though.  I thought it was a Linux thing, but I'm on a Windows machine today and it seems to make the UI unresponsive every time I make changes to a pom.

0
Comment actions Permalink

jptech wrote:

I updated to 10633 and it it works exactly as I'd expect.  The Maven support alone is going to make an upgrade to v9 worth it for me.  I find it a touch aggressive when detecting changes, resolving dependencies, and re-importing modules though.  I thought it was a Linux thing, but I'm on a Windows machine today and it seems to make the UI unresponsive every time I make changes to a pom.

There's a JIRA issue opened for that: http://www.jetbrains.net/jira/browse/IDEADEV-39286 JetBrains has been working on it in the past couple of EAPs, but it appears its not yet at a final stage.

0
Comment actions Permalink

In the cold weather, the UGG boots are considered as the best shoes.More and more people like wearing the UGG boots such as the http://sell-ugg.com/UGG-Classic-Metallic-5812/c9/index.html.With its development ,the UGG boots have lauched different kinds of boots into the fashion market,including the http://uggboots-euro.com/UGG-Classic-Short-Boots/c3/index.html and the http://uggboots-euro.com/UGG-Women%27s-ighkoo/c23/index.html.However,in the fashion world,if you want to be more attractive and elegant,the beautiful shoes are not enough.You have to choose the best stylish handbag to match your shoes.Therefor,the designer replica handbags are very necessary.If you want to buy the best designer cheap handbags,i would like to introduce two famous brand handbags to you.I think there must be one handbag is your favorite.One is the famous brand http://www.famousbrandbag.com/Versace/c40/index.html,the other is the Ferragamo Handbags.Both of them are the famous brand in the world.Their quality are very good.

---
Original message URL: http://www.jetbrains.net/devnet/message/5254924#5254924

0

Please sign in to leave a comment.