Usually you have your Server-Side logic in Maven Jar modules and your
Flex logic in Swf modules. Your War Module usually gathers all the
jars and swfs that are needed to assemble your application. So the
good way would be to Reference the Servers Jar modules when generating
your flex model. Placing the Java Code inside the War project it a
pretty bad thing to do.


Chris



2011/11/24 Mino Togna <[email protected]>:
> Ehy guys
> thanks to both of you for your answers.
> They seem logic and i understand your point, but let me explain my
> scenario.
>
> I have a mavan parent project that contains 2 subprojects: server and
> client. The server contains the java web application, while the client
> contains the flex code.
> As you can imagine, the server module is packaged as war and it
> contains all model objects that need to be serialized to the client;
> that's why i want to generate as3 classes from that server (war)
> module.
>
> Based on how the flexmojo works, I should create one sub module that
> contains all model objects packaged as jar and add it as dependency to
> the client in order to generate the as3 classes; but i would prefer
> not to create that sub module.
>
> Is there any other way i can do that?
>
> Thanks again
> -Mino
>
> On Nov 24, 12:33 pm, Marvin Froeder <[email protected]> wrote:
>> Hey,
>>
>> Wiki is editable, please improve it as you see 
>> fit.https://docs.sonatype.org/display/FLEXMOJOS/Generator+Mojo
>>
>> About using the war to generate sources...  that seems wrong.
>> war contains java, then flex depends on war to generate sources and
>> war depends on flex to include UI.
>> Seems a cyclic dependency to me. Which won't build.
>>
>> VELO
>>
>> On Nov 24, 6:08 am, Mino Togna <[email protected]> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > It seems only with jar dependencies it works.
>> > Could you kindly explain this since in the documentation i cant find
>> > anything.
>> > Thanks in advance
>>
>> > -Mino
>>
>> > On Nov 23, 5:08 pm, Mino Togna <[email protected]> wrote:
>>
>> > > Hello All,
>>
>> > > I have a quick question about the code generator:
>> > > can I generate action script from java classes that are in a
>> > > dependency with type 'war'?
>>
>> > > Thanks in advance for your answer.
>> > > -Mino
>
> --
> 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/
>

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