Home > Flex > Building Flex Applications using Cairngorm with Maven 2.

Building Flex Applications using Cairngorm with Maven 2.

There is a lot of documentation already out there for Cairngorm but many of the basic examples on the web (and especially on labs.adobe.com) are now slightly out of date, and use deprecated methods. I expect it can be a little frustrating for someone coming in to Cairngorm for the first time, especially if you have not used anything similar before, so this should be a good next step for you if you have already read the docs, understand the basic concepts and want an aid to help speed up your understanding


Step 1: Download Cairngorm swc component

The first thing to do is download the Cairngorm binary and a Cairngorm example application. I’m currently using FlexBuilder3 beta (Moxie), and so I decided to go with the latest version of Cairngorm which is 2.2. Due to issues with a recent FlexBuilder hotfix I’ve downloaded a beta version called 2.2.1_beta. The best thing to do is look at the Cairngorm wiki on Adobe.labs to ensure you get the correct version for you:

http://opensource.adobe.com/wiki/display/cairngorm/Downloads

Step 2: Install using mvn

mvn install:install-file -DgroupId=com.adobe.flex.framework -DartifactId=cairngorm-framework-Dversion=2.2.1 -Dpackaging=jar -Dfile=c:\cairngorm.swc

Step 3: Reference the installed component in pom

<dependency>
<groupId>  com.adobe.flex.framework </groupId>
<artifactId>cairngorm-framework </artifactId>
<version>2.2.1</version>
<type>swc</type>

</dependency>

Step 4: Download the example

You can view the Diagram Explorer here, view the example app here and download the example app here.

Good luck.

About these ads
Categories: Flex
  1. 01/10/2011 at 11:09 am | #1

    Nice guide. Thanks

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: