Oh no! I'm new to Maven/Flexmojos. But I can give a try. Would be a
lot better if you can come up with something :)

On Oct 11, 2:48 pm, Marvin Froeder <[email protected]> wrote:
> Ow, I supposed you was doing that, just wanna be sure if you was using the
> new <module/>
>
> Well, you just found a missing feature on CopyMojo.  I'm glad to review your
> patch when it come ;)
>
> VELO
>
> On Mon, Oct 11, 2010 at 9:42 PM, harish.dhina <[email protected]>wrote:
>
> > This is the part of my flex project/pom. I think this was your
> > question:
>
> > <build>
> >                <sourceDirectory>src</sourceDirectory>
> >                <plugins>
> >                         <plugin>
> >                                <groupId>org.sonatype.flexmojos</groupId>
>
> >  <artifactId>flexmojos-maven-plugin</artifactId>
> >                                <version>4.0-alpha-5</version>
> >                                 <extensions>true</extensions>
> >                                <configuration>
> >                                        <sourceFile>Main.mxml</sourceFile>
> >                                        <finalName>Main</finalName>
> >                                        <useNetwork>true</useNetwork>
> >                                        <contextRoot>dataCollection</
> > contextRoot>
>
> >  <services>${basedir}/../dataCollection-webApp/src/main/webapp/WEB-
> > INF/flex/services-config.xml</services>
> >                                        <debug>true</debug>
> >                                        <optimize>true</optimize>
> >                                        <!-- When true, tells flexmojos to
> > use link reports/load externs
> > on modules compilation  -->
>
> >  <loadExternsOnModules>true</loadExternsOnModules>
> >                                        <compiledLocales>
> >                                                <locale>en_US</locale>
> >                                        </compiledLocales>
>
> >  <configurationReport>true</configurationReport>
>
> >  <staticLinkRuntimeSharedLibraries>false</
> > staticLinkRuntimeSharedLibraries>
> >                                        <modules>
> >                                                <module>
>
> >  <sourceFile>com/abc/modules/Module1.mxml</sourceFile>
>
> >  <optimize>false</optimize>
>
> >  <finalName>Module1</finalName>
>
> >  <destinationPath>com/abc/modules</destinationPath>
> >                                                </module>
> >                                                <module>
>
> >  <sourceFile>com/abc/modules/Module2.mxml</sourceFile>
>
> >  <optimize>false</optimize>
>
> >  <finalName>Module2</finalName>
>
> >  <destinationPath>com/abc/modules</destinationPath>
> >                                                </module>
> > </configuration>
> >                                <dependencies>
> >                                        <dependency>
>
> >  <groupId>com.adobe.flex</groupId>
>
> >  <artifactId>compiler</artifactId>
>
> >  <version>${flex.sdk.version}</version>
> >                                                <type>pom</type>
> >                                        </dependency>
> >                                </dependencies>
> >                        </plugin>
> >                </plugins>
> > </build>
>
> > Thanks Velo
>
> > - Harish
>
> > On Oct 11, 2:35 pm, Marvin Froeder <[email protected]> wrote:
> > > 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]>
> > <flex-mojos%[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]<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