We deploy our SWFs to a separate (Apache) server though, they are not
included in the WAR which is deployed to Tomcat server.

There are always many different ways to deploy and bundle up
artifacts.  In any case, can you give a definitive answer (yes or no)
on if it is possible in 4.x to do what the <output> tag did in FM 3.x?

On Nov 2, 3:53 pm, Marvin Froeder <[email protected]> wrote:
> Well, instead of forcing the SWF module to put it where you need, you could
> use copy-mojo to instruct your war module to copy the swf where ever you
> need....  which makes more sense....
>
> The SWC don't need the war.... the war needs the SWF.... that would even
> allow you to only build the WAR module and grab the SWF from you CI server
>
> VELO
>
> On Tue, Nov 2, 2010 at 8:16 PM, Collin Peters <[email protected]>wrote:
>
>
>
>
>
>
>
> > hehe - I'll explain it, but it shouldn't really matter too much to the
> > question at hand
>
> > we have a Flex app with multiple swfs that runs on a Java backend.
> > When I checkout our code I have 'flex' and 'java' directories which
> > each contain many subprojects, along with pom's, etc...  Within
> > Eclipse we have all the Flex & Java projects.  We also use Tomcat
> > within Eclipse (via the 'Servers' tab) which runs the java webapp
> > project.  Each Flex project is configured to output its SWF to a
> > folder in Tomcat (image "<tomcat>/webapps/flexapps").  So we simply
> > launchhttp://localhost:8080/flexapps/foo.htmland we can run/debug
> > our flex projects very simply.  When we needed to use Maven to do a
> > full build it simply output everything to the same directories.  THis
> > worked great in FM 3.x.
>
> > In any case... it seems <output> has been deprecated in 4.0 and
> > replaced with the regular Maven option <directory>.  This does put the
> > SWF in that folder but it also puts everything else there that
> > normally goes in 'target' which has nasty side effects for our setup.
> > Is that right?  If so I guess we have to completely re-think our
> > setup :( :( :(
>
> > On Nov 2, 2:51 pm, Marvin Froeder <[email protected]> wrote:
> > > What are you trying to do?  I have a bad feeling about it....
>
> > > On Tue, Nov 2, 2010 at 7:27 PM, Collin Peters <[email protected]
> > >wrote:
>
> > > > Thanks Velo
>
> > > > Adjusting <directory> does work but it also dumps all build files
> > > > there as well (e.g. classes & surefire-reports folders).  Is there
> > > > anyway to control the output path of just the SWF like in 3.x?  If not
> > > > I guess I'll have to re-think my entire strategy here.  Note that
> > > > <module><destinationPath> works great for modules...
>
> > > > My use case here is that I have various projects which all have some
> > > > modules and they all get dumped into a single folder outside of the
> > > > project directory so I can easily run them in Tomcat.  So the ability
> > > > to control the output path of the main SWF is also key to that
> > > > working.
>
> > > > Thanks,
> > > > Collin
>
> > > > On Nov 2, 2:18 pm, Marvin Froeder <[email protected]> wrote:
> > > > > Flexmojos now will use maven configurations....
> > > >http://maven.apache.org/pom.html#Build
>
> > > > > So if you need a different output dir just change maven
> > > > > project/build/directory
>
> > > > > VELO
>
> > > > > On Tue, Nov 2, 2010 at 7:15 PM, Collin Peters <
> > [email protected]
> > > > >wrote:
>
> > > > > > In Flex Mojos 3 you could use
> > > > > > <configuration>
> > > > > >  <sourceFile>Foo.mxml</sourceFile>
> > > > > >  <output>${basedir}/whatever/directory/Foo.swf</output>
> > > > > > </configuration>
>
> > > > > > This has obviously changed in Flex Mojos 4.  I am able to adjust
> > the
> > > > > > name of the final outputted SWF with
> > > > > > <configuration>
> > > > > >  <sourceFile>Foo.mxml</sourceFile>
> > > > > >  <finalName>Foo.swf</finalName>
> > > > > > </configuration>
>
> > > > > > But how does one set the output path?  I have tried the Maven
> > > > > > parameter <outputDirectory> but this doesn't seem to work.  I also
> > > > > > can't find any hint in the docs for compile-swf at
>
> >http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPS.
> > > > ..
>
> > > > > > --
> > > > > > 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%2bunsubscr...@googlegrou
> > > > > >  ps.com>
> > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > > > 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%2bunsubscr...@googlegrou
> > > >  ps.com>
> > <flex-mojos%2bunsubscr...@googlegrou ps.com>
> > > > 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%2bunsubscr...@googlegrou 
> > ps.com>
> > 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