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/
-~----------~----~----~----~------~----~------~--~---