How did you compile the swf and the modules in the first time?

VELO

On Mon, Oct 11, 2010 at 9:32 PM, harish.dhina <[email protected]>wrote:

> Hi
>
> I have been able to generate the main SWF & module SWFs in my Flex
> project using Flex mojos successfully :). The directory structure in
> the Flex project is:
>
>
> target/Main.swf
>
> The module SWFs are under:
>
> target/com/abc/modules/Module1.swf
> target/com/abc/modules/Module2.swf
> target/com/abc/modules/Module3.swf
>
> This is what I want. But when I execute copy-flex-resources on my war
> project, it copies the SWFs to (in the war):
>
> dataCollection-flex.swf (this is supposed to be Main.swf)
> Module1.swf
> Module2.swf
> Module3.swf
>
>
> But I want it to be:
>
> Main.swf
> com/abc/modules/Module1.swf
> com/abc/modules/Module2.swf
> com/abc/modules/Module2.swf
>
>
> This is the part of my webapp/pom
>
> <plugin>
>                        <groupId>org.sonatype.flexmojos</groupId>
>                        <artifactId>flexmojos-maven-plugin</artifactId>
>                        <version>4.0-alpha-5</version>
>                        <executions>
>                                <execution>
>                                        <id>copy</id>
>                                        <goals>
>
>  <goal>copy-flex-resources</goal>
>                                        </goals>
>                                        <configuration>
>
>  <useFinalName>true</useFinalName>
>
>  <stripVersion>true</stripVersion
> <stripModuleArtifactInfo>true</stripModuleArtifactInfo>
>                                        </configuration>
>                                </execution>
> </executions>
>
> </plugin>
>
>
> <dependencies>
>                <dependency>
>                        <groupId>com.abc.datacollection</groupId>
>                        <artifactId>dataCollection-flex</artifactId>
>                        <version>1.0-SNAPSHOT</version>
>                        <!-- <classifier>Main</classifier  - This line
> is commented out because if uncommented, the build fails-->
>                        <type>swf</type>
>                </dependency>
>
>                <dependency>
>                        <groupId>com.abc.datacollection</groupId>
>                        <artifactId>dataCollection-flex</artifactId>
>                        <version>1.0-SNAPSHOT</version>
>                        <classifier>Module1</classifier>
>                        <type>swf</type>
>                </dependency>
>
>                <dependency>
>                        <groupId>com.abc.datacollection</groupId>
>                        <artifactId>dataCollection-flex</artifactId>
>                        <version>1.0-SNAPSHOT</version>
>                        <classifier>Module2</classifier>
>                        <type>swf</type>
>                </dependency>
> </dependencies>
>
>
> Please let me know how to achieve this. I would appreciate it a lot.
>
>
> Thanks
>
> Harish
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<flex-mojos%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/flex-mojos
>
> http://flexmojos.sonatype.org/
>

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to