Jakob, I'm not second guessing your architecture in any way. I know that these things can come about for many different reasons. I just wanted to mention that we find ourselves in the same position at time and were accustomed to the any script that compiled dozens of swfs. (Especially font files and shared libraries.)
Now we package those shared libraries as a swc in its own pom. And a library that is shared amongst many swfs in the same project becomes just one module (swc) in a multi-module project. just 2 cents... On Mon, Jun 22, 2009 at 9:35 PM, jakob.kuelzer<[email protected]> wrote: > > Hey *, > > thanks for all your great advise. Unfortunately they don't really > apply to my scenario. We have in fact 5 applications (that means > mx:Application containers) in one project. Non of those are really > big, its just smaller bits. In order to make packaging and deployments > easier it would have been nice to get functionality like this but if > it doesn't work it doesn't work. ;) > > Time for some ANT magic. ;) > > Cheers, > Jakob > > On Jun 22, 4:37 pm, jerome creignou <[email protected]> wrote: >> Hi, >> >> I would like to share with you, how we deal with this problem. >> >> We also have a Maven project that produces multiple artifacts. Actually >> there is 1 application, N modules and others resources (CSS, images) in each >> flex maven project. >> The trick is to declare a JAR packaging for the project instead of SWF and >> then put anything you need (SWFs,CSS,...) inside the resulting jar. (I had >> to patch flex-mojo to get this working since compiler mojo uses >> ${pom.packaging} for the output file extension.) >> >> To build my webapp, I declare the dependency to my special jar, and unpack >> it using the dependency plugin (dependency:unpack) to the target/webapp >> directory. >> >> I can post some poms, if you need more details. >> >> Hope this helps. >> Jerome >> >> 2009/6/22 Marvin Froeder <[email protected]> >> >> > The only other idea I had is use modules support to build your >> > applications... but I don't know if that work, nor if work well. >> >> > VELO >> >> > On Mon, Jun 22, 2009 at 3:57 PM, jakob.kuelzer >> > <[email protected]>wrote: >> >> >> Hey Marvin, >> >> thanks for your quick reply. I stumbled accross this one too, not very >> >> satisfying though. I'll probably have to revert back to an Ant >> >> buildscript... :S >> >> >> Cheers, >> >> Jakob >> >> >> On Jun 22, 1:12 pm, Marvin Froeder <[email protected]> wrote: >> >> > They only way I know is this: >> >>http://maven.apache.org/guides/mini/guide-using-one-source-directory.... >> >> >> > < >> >>http://maven.apache.org/guides/mini/guide-using-one-source-directory....> >> >> > VELO >> >> >> > On Mon, Jun 22, 2009 at 1:43 PM, jakob.kuelzer <[email protected] >> >> >wrote: >> >> >> > > Howdy *, >> >> > > I'm playing around with flexmojos and I really like the Idea of using >> >> > > Maven for compiling flex apps into SWFs. However in the current >> >> > > project setup we have multiple applications in one project to reuse >> >> > > stylesheets, assets, etc. >> >> >> > > I know this is against the Maven philosophy "one single artifact per >> >> > > project" but right now splitting it up would be too much effort for no >> >> > > return. So I'm wondering if there's a way to use flexmojos to compile >> >> > > all of those apps. I already thought about using profiles to compile >> >> > > them separately but there must be an easier way... ? >> >> >> > > Thanks in advance. >> >> >> > > Cheers, >> >> > > Jakob > > > --~--~---------~--~----~------------~-------~--~----~ 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?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
