Examples

For other examples, please look at the test projects in src/it.

Project with extra parameters

A swf project that uses a parameter not supported by the plugin, but available to the underlying compiler.

<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>net.israfil.examples</groupId>
    <artifactId>israfil-extraparam-example</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>swc</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>
                    <main>ExampleApp.mxml</main>
                    <extraParameters>
                        <parameter><name>benchmark</name></parameter>
                        <parameter>
                            <name>compiler.actionscript-file-encoding</name>
                            <values><value>iso-8859-1</value></values>
                        </parameter>
                    </extraParameters>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>