qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Add support to override build.sourceDirectory and such in flex-compiler-mojo configuration #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is required to create a Maven project including both Java and Flex files.

Original issue reported on code.google.com by marcello.teodori on 28 Aug 2008 at 11:21

GoogleCodeExporter commented 9 years ago
This shoud be an Enhancement, but the Issue creation form doesn't allow 
changing the issue type.

Original comment by marcello.teodori on 28 Aug 2008 at 11:22

GoogleCodeExporter commented 9 years ago
http://docs.flex-mojos.info/flex-compiler-mojo/compile-swf-mojo.html#sourcePaths

Original comment by velo...@gmail.com on 28 Aug 2008 at 11:29

GoogleCodeExporter commented 9 years ago
I've tried that, but the project has war and not swf packaging, because it 
borrows from the appfuse-basic-
spring archetype, which creates a spring-jpa web application skeleton, and it 
seems that adding the flex-
compiler-mojo to the build like this does not trigger the mxml compilation:

            <plugin>
                <groupId>info.flex-mojos</groupId>
                <artifactId>flex-compiler-mojo</artifactId>
                <version>2.0-alpha4</version>
                <extensions>true</extensions>
                <configuration>
                    <locales>
                        <locale>en_US</locale>
                    </locales>
                    <sourcePaths>
                        <path>${basedir}/src/main/flex</path>
                    </sourcePaths>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>compile-swf</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

The Main.mxml does get found only when I set:
    <sourceDirectory>src/main/flex</sourceDirectory>
in the build section.

Original comment by marcello.teodori on 28 Aug 2008 at 2:59