<iframe src="//www.googletagmanager.com/ns.html?id=GTM-TT8R4P" height="0" width="0" style="display:none;visibility:hidden">

Sonatype Blog

Stay updated on the latest news from the makers of Nexus

Marvin Froeder

Recent Posts by Marvin Froeder:

Continuous Compilation in FlexMojos

I've got some great information to pass on. One of our open source contributors Joa Ebert contributed some code to enable a very useful feature in FlexMojos 4.0. FlexMojos 4.0 will ship with a new feature for rapid application development and good old Flash experiments.

Flex Test Coverage Kept Simple with Flexmojos

If you take testing seriously as I do, you most likely know test code coverage tools. And in the Flex Universe the de facto standard is Flex Cover. Now let's be honest here, the tool does the job but it isn't simple. Using it requires a special compiler to run code on Flex projects, which is the main reason why test code coverage never got into Flexmojos. The available tool was too complex to use, and so I never gave it any serious thought.

Since day one, Flexmojos has tried to follow the KISS philosophy (Keep It Simple Stupid Smartguy). With that in mind, Flexmojos is proud to announce state of the art test code coverage support.

Flexmojos Two Years Later

On March 18 2008 I checked in the first bits of code for Flexmojos. Two years later, here we are: Flexmojos now provides first-class support for Flex and AIR development within Apache Maven. It allows for Maven to compile, optimize, and test Flex SWF, Flex SWC, Air SWF and Air SWC and Air files.

We are celebrating this anniversary with a dual release of Flexmojos 3.6 and Flexmojos 4.0-pre-alpha-1.

Flexmojos 3.6 Release

Flexmojos 3.6 most relevant changes:

  • Add a new source-view goal which goal produces a syntax highlighted version of the as, mxml and html if they are bundled in a SWF (thanks to Julien Nicoulaud for this contribution)
  • Some fixes to Flexbuilder metadata generation
  • Add support to Flex SDK 4.0.0.13555 and newer
  • Add support for building applications using Flashplayer 10.1 and Air 2.0
  • New configuration includeAsClasses for SWC compilation. Wildcard support for includeClasses
  • Generator mojo now supports package translation between Java and generated AS3
  • Support for granite generator 2.1 (thanks to Kyle Lebel)

For a full list of changes on 3.6, visit this page: https://issues.sonatype.org/browse/FLEXMOJOS/fixforversion/10629

Flexmojos 3.5.0 is out!

Last night I released Flexmojos 3.5.0.

Flexmojos 3.4.2 is out!

Flexmojos 3.4.2 is out!

Integration tests part 4 - Nexus plugins integration test

Continuing the series of articles, let's check how we do integration tests for nexus plugins.

The kungfu virus scanner

The kungfu virus scanner is a simple nexus plugin. It will prevent nexus from caching infected files (it will still serve the file, but won't cache it). To know if a file is infected or not, there is a "sophisticated" algorithm that checks if the file has the word "infected" in its name. It is used for demonstration purposes only and is useless for everything else. You can download its source files here.

To run our test, first of all, we will need a Nexus instance that will be launched and used to hold the plugin being tested. Originally we used the maven-dependency-plugin to unpack the Nexus bundle. Then, we used the same to copy the plugin under test to nexus plugin-repository directory. This alone would mean about 20 lines in the POM and no potential for reuse between different plugins, so we decided to write a specific testing plugin to create the environment required by Nexus plugins. Thus was born the nexus-test-environment-maven-plugin (we should come up with a shorter name =D ).

How JVM Settings Affect Flexmojos Performance

Flex compiler does use lot's of memory and CPU resources, so does Flexmojos. There's not much new in here.