Using The latest Flexunit with Maven

Maven is an excellent build management tool and it is slowly gaining acceptance in the flash and flex community. If you want to run unit tests from Maven using the very latest build of Flexunit 4 (4.1 beta 3 at the time of writing) then read on.

I have set up a new maven repository for flex and flash artifacts at http://www.flashnexus.org/nexus and am aiming to keep it up to date with as many flash libraries as possible.

You can use it as a maven repository by adding the following xml into either you .m2/settings.xml file or putting in directly in your pom of choice.

<repository>
  <id>flash-nexus-repository</id>
  <url>http://www.flashnexus.org/nexus/content/groups/public</url>
</repository>

Then you will be able to use the latest Flexunit testing framework by adding the following dependency to your project pom.

<dependency>
  <groupId>com.adobe.flexunit</groupId>
  <artifactId>flexunit</artifactId>
  <version>4.1.0-beta3</version>
  <type>swc</type>
  <scope>test</scope>
</dependency>

Please let me know how you get on, and please suggest other libraries to be added to the repository.

This entry was posted in Development, Flash, Flex and tagged , , . Bookmark the permalink.

11 Responses to Using The latest Flexunit with Maven

  1. Arnoud Bos says:

    Awesome! thanx a lot!

    Arnoud

  2. Arnoud Bos says:

    hmmm, thought i’ll let you know,

    hmmm, Service Temporarily Unavailable

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    cheers,

    Arnoud

  3. Conrad says:

    Oops, server back up now

  4. Michael McCarthy says:

    We’re trying to have a multi IDE environment here, but I’ve noticed that when you run FlexUnit tests using FlashBuilder it automatically pulls in it’s own included version of FlexUnit (4.0.1.277662). Have you had any problems with this or have you moved away from FlashBuilder completely now?

  5. Conrad says:

    Hi Michael,

    My advice would be to use IntelliJ Idea X, which allows (and recognises) what your current flex unit library is, whether it be from a maven dependency or as a linked library. Failing that I remember seeing posts about getting flash builder to run with a different version of flexunit, but can’t remember where – maybe google can help

    Conrad

  6. James Ward says:

    Hi there. Thanks for setting up this repo. I’m getting an error when I try to access it:
    Service Temporarily Unavailable

    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

  7. Josh says:

    Service temporarily down again :(

  8. Conrad says:

    Sorry – It’s back up now – I am going to try and get some service monitoring software, so that I am informed quickly when it goes down – is there anything good for android?

  9. Ajay says:

    Opps, Its back down again. When it should come up again?

  10. Conrad says:

    Back up again already :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>