17. The packaging (eg. SWF, SWC, JAR) typically
defines the goals within each phase.
18. In general, the default lifecycle involves the
following phases:
■ validate
■ compile
■ test
■ package
■ integration-test
■ verify
■ install
■ deploy
19. In addition, plugins provide goals and can bind
them to phases.
eg. > mvn compiler:compile compiler:testCompile
35. Out of the box, Flexmojos supports:
★ Flex 3/4, AIR and AS3 projects
★ Unit tests & code coverage reports
★ ASDoc generation
★ RSL and runtime module support
★ Goal to create IDE project
★ SWF optimization
★ Archetypes to get started
★ WAR bundling & deployment
37. function preinit()
{
download(maven, ‘3.0.3’).install().append(system.path);
download(flashplayer-standalone,
‘10.3’).install().append(system.path);
flashbuilder.plugins.add(m2eclipse);
}
First you have to setup your environment.
38. #1.
Use a Flexmojos archetype to get started.
mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.com/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-application
-DarchetypeVersion=4.0-RC2
39. #2.
Add repo location of Flex SDK.
http://repository.sonatype.org/content/groups/flexgroup
46. Don’t skim the conventions.
Learn the basics and save yourself hours of
endless frustration.
47. Links and more info:
★ ADC series on Flex & Maven
★ Flexmojos 4.0-RC2 plugin docs
★ My Examples on Github
★ Flexmojos Google Group
★ Flexmojos on Github
★ Maven guide with Flexmojos
★ Follow @flexmojos on Twitter
about.me/justinj