How to create FlexBuilder / Eclipse project descriptors.

Simple use

To generate the project descriptors (.project, .flexLibProperties/.flexProperties), run the flex:eclipse goal from you project directory.

The dependencies will be resolved in FlexBuilder/Eclipse using the ${M2_REPO} linked resource. See Windows -> Preferences -> General -> Workspace -> Linked Resources, and add a M2_REPO token referring to your local Maven repository.

Multi-module Flex project

You may run the flex:eclipse goal from the root of your multi-module project. Project descriptors will be generated for each of your sub-projects.

By default, reactor dependencies (sub-projects) will be created as project dependencies instead of packages into the project descriptor. If you prefer these dependencies to be added as packages, set the useProjectReferences property to false in the configuration section of the plugin.

...
    <build>
    ...
        <plugins>
        ...
            <plugin>
                <groupId>org.servebox.flex</groupId>
                <artifactId>flex-plugin</artifactId>
                <version>2.3.2</version>
                <extensions>true</extensions>
                <inherited>true</inherited>                
                <configuration>
                    <useProjectReferences>false</useProjectReferences>
                </configuration>
            </plugin>
        </plugins>
    </build>
...