Spring Actionscript is a great library - no question. It makes it much easier to mock Cairngorm service delegates and rewire them for testing with FlexUnit. Testing the full event/command/delegate workflow is pretty easy.

However today I had quite some "fun" with the Maven artifact and it's transitive dependencies in combination with Maven 2.2.1. Spring Actionscript has some dependencies to these artifacts:

  • as3commons-lang
  • as3commons-logging
  • as3commons-reflect
All these required artifacts are available from the yoolabs.org repository so it's pretty easy to include these artifacts into your build. But today I struggled with two hefty problems.

Continue reading "Fun with Spring Actionscript and Maven (Updated)"

Maven module structure of the project.
Recently I had switched a complex Flex project that previously used all libraries as statically compiled SWCs to dynamically loaded Runtime Shared Libraries (RSL). In the picture on the right you can see the module structure of the whole build, which was done using Maven and the flex-mojos plugin.

You can see that there is one high level library (library A) that is shared across all applications and a more specialized library (library B) that is providing components and classes to a certain subset of other applications.

Library A contains a couple of embedded images containing various icons and a lot of components, while Library B contained just a few components. So after compilation the obvious expected result would be to have an RSL file of library A that is much bigger than the RSL file of library B in case library B uses library A as RSL and not as statically linked SWC.

Well the dynamic linkage worked well for all the applications, which where just a couple of KBs in size after the change in contrast to more than 1 MB before the change. However this was not the case for the libraries. Library A had a size of 1.2 MB but library B had a size of 1.25 MB???


Continue reading "Size of Flex RSLs with dependencies to other RSLs"

Flash is the Future

Thursday, May 21. 2009

Now who said, that the Flash platform does not have a future? It even powers the consoles of the U.S.S. Enterprise.

Unit Testing With Flex Mojos

Monday, March 30. 2009

When I tried to update another project to flexmojos-maven-plugin 3.x I realized that I missed a step, when I wrote the upgrade instructions from flex-mojos 2.0.0 to the newer plugin. While the first project was at its very beginning with no Unit tests existing yet, the newer project had already quite some unit tests.

When running maven after I followed my own instructions I go this error:

[ERROR] <PROJECT PATH>/target/test-classes/TestRunner.mxml:[-1,-1] Unable to locate specified base class 'org.sonatype.flexmojos.unitestingsupport.TestApplication' for component class 'TestRunner'.


Continue reading "Unit Testing With Flex Mojos"

In case you want to build Flex applications using Maven 2 the Flex Mojo plugin is surely the best Maven 2 plugin to accomplish a fully featured build setup. Unfortunately it lacks documentation. So the best resource for settings up own Maven builds is to look at the examples that the developer Marvin Froeder uses to test the plugin.

Marvin Froeder has also a blog where he used to announce changes. However yesterday I realized that I was still building against the Flex 3.0.0 SDK and was looking for information on how to update the build against the latest 3.3.0 SDK. Fortunately Marvin is very, very fast and responsive in the Google Groups discussion group so I took a look into and searched for information and found a thread, where Flex-Mojo 3.0.0 was mentioned. So I tried to upgrade and get the latest Flex Mojo Maven plugin and it was not as easy as running mvn -up.

So here are the upgrade instructions from flex-mojo 2.0.0 to flexmojos-maven-plugin 3.x:


Continue reading "Upgrading flex-mojos 2.0.0 to flexmojos-maven-plugin 3.x"

« previous page   (Page 2 of 3, totaling 12 entries) » next page