Building from sources
Standard instruction to use svn and maven to build flexmojos.
Accessing the sources
The source can be checked out anonymously from SVN with this command:
$ svn checkout http://svn.sonatype.org/flexmojos/trunk flexmojos-aggregator
Maven repository
Flexmojos depends on some Maven plugins only available at Sonatype public repository. You’ll need to add the following to your Maven settings.xml file:
... flex-mojos flex-mojos-repository http://repository.sonatype.org/content/groups/flexgroup/ true false flex-mojos-internal-repository http://repository.sonatype.org/content/groups/public/ true true flex-mojos-plugin-repository http://repository.sonatype.org/content/groups/flexgroup/ true false flex-mojos-internal-plugins-repository http://repository.sonatype.org/content/groups/public/ true true ... flex-mojos
In addition, there is one JAR (AIR development tools) that is packaged with the Flex SDK but is not open source. Because of this, Maven cannot host this artifact. To build the plugin from source, you will need to install this artifact into your own private repo:
>mvn install:install-file -DgroupId=com.adobe.flex -DartifactId=adt -Dversion=3.2.0.3958 -Dpackaging=jar -Dfile=adt.jar
This JAR is bundled with the Flex SDK, which is freely available from Adobe’s website: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk
First Build
Flexmojos uses itself to build actionscript modules, but maven doesn’t handle that that well. To workaround this there is an extra profile defined on poms. Activate it by doing:
$ mvn clean install -P minimal
Regular Builds
After first build flexmojos can be built normally just like any maven project:
$ mvn clean install