For other examples, please look at the test projects in src/it.
A simple web application with a single .swf file
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.israfil.examples</groupId>
<artifactId>israfil-swf-example</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swf</packaging>
<build>
<!-- if you want this vs. artifactId.swf use finalName -->
<finalName>exampleApp</finalName>
<plugins>
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<flexHome>${flex.home}</flexHome>
<useNetwork>true</useNetwork>
<strict>true</strict>
<!-- ... other options ... -->
<warning>true</warning>
<!-- if you use dataservices, make sure you override endpoints in your mxml -->
<dataServicesConfig>src/main/resources/services-config.xml</dataServicesConfig>
<main>exampleApp.mxml</main>
</configuration>
</plugin>
</plugins>
</build>
</project>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>net.israfil.examples</groupId>
<artifactId>israfil-example-flex-webapp</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.israfil.examples</groupId>
<artifactId>israfil-swf-example</artifactId>
<version>1.0-SNAPSHOT</version>
<type>swf</type>
</dependency>
<dependency>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
<version>1.1.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<executions><execution>
<id>copy-flex</id>
<phase>process-classes</phase>
<goals><goal>copy-flex-applications</goal></goals>
<configuration>
<modules>
<swfModule>
<groupId>a.group.id</groupId>
<artifactId>an-artifact-id</artifactId>
<targetPath>${project.build.directory}/flex-resources</targetPath>
<targetFilename>SwfModuleFile.swf</targetFilename>
</swfModule>
</modules>
</configuration>
</execution></executions>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
<directory>${project.build.directory}/flex-resources</directory>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</project>