<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>multiModuleProjectId</groupId>
  <artifactId>multiModuleProjectArtifactIdWeb</artifactId>
  <packaging>war</packaging>
  <version>1.0</version>
  <name>multiModuleProjectArtifactIdWeb Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <properties>
    <flex.home>C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.0.0</flex.home>
  </properties>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>multiModuleProjectId</groupId>
      <artifactId>multiModuleProjectArtifactIdFlex</artifactId>
      <version>1.0-SNAPSHOT</version>
      <type>swf</type>
    </dependency>
  </dependencies>
  <build>
    <finalName>multiModuleProjectArtifactIdWeb</finalName>
    <plugins>
      <plugin>
        <groupId>net.israfil.mojo</groupId>
        <artifactId>maven-flex2-plugin</artifactId>
        <executions>
          <execution>
		<phase>compile</phase>
            <id>copy-flex</id>
            <goals>
              <goal>copy-flex-applications</goal>
            </goals>
            <configuration>
              <modules>
                <swfModule>
                  <groupId>multiModuleProjectId</groupId>
                  <artifactId>multiModuleProjectArtifactIdFlex</artifactId>
                  <targetPath>target/multiModuleProjectArtifactIdWeb/</targetPath>
                </swfModule>
              </modules>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>compile</phase>
            <configuration>
              <tasks>
                <taskdef
                        className="flex.ant.HtmlWrapperTask" name="html-wrapper"
                        classpath="${flex.home}\ant\lib\flexTasks.jar"/>
                <property name="FLEX_HOME" value="${flex.home}"/>
                <property name="APP_ROOT" value="target/multiModuleProjectArtifactIdWeb"/>
                <html-wrapper
                        title="Welcome to My Flex App"
                        file="index.html"
                        height="300"
                        width="400"
                        bgcolor="red"
                        application="app"
                        swf="multiModuleProjectArtifactIdFlex-1.0-SNAPSHOT"
                        version-major="9"
                        version-minor="0"
                        version-revision="0"
                        history="true"
                        template="express-installation"
                        output="${APP_ROOT}"/>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>

  </build>
</project>