Logan and all,

I'm trying to make my Java development environment (IBM RAD)
integrated with Maven to compile, test and package Flex and Java apps.
I want to be able to deploy the project (which includes Flex and
Server side components) using my IDE tools and also be able to do the
same thing through maven.

The option 1 was to split the files into different modules like
explained in the tutorial (Config, flex, app, html-template, etc). The
problem with that is that, on my IDE, if I use the parent folder as a
java project it will not be recognized as a Web Project. I can't use
the java-app either because then the HTML content from Template-html
and other files will not be copied. The consequence is that I cannot
deploy that to the runtime server.

The option 2 was what I described in the original email; having the
swf and war under the same module but I gave up on that since there is
no way to package both.

The third option I was trying today is to have 2 projects, where the
1st is the Flex (swf) project and the other the Java Web server (war)
side. In the IDE I was able to map both projects as Web application
and was able to add them to a single EAR file for deployment. That's
what I want.
/ParentFolder
/ParentFolder/pom.xml
/ParentFolder/FlexApp/pom.xml
/ParentFodler/WebApp/pom.xml
The issue here is that for maven the Flex module is actually a SWF
module, not a web, so it will not package it into a WAR file when mvn
package is invoked. I'm don't know how I can define a maven module
packaging to be at the same time swf and war. Is this possible?

The meantime solution is to add the FlexApp as a dependency to  the
WebApp. It bothers me that on my IDE I have 2 WAR projects into a EAR
project, meanwhile when built from Maven the EAR will have only 1 WAR.

(There is also the option to create a 3rd WebModule and use it to
package the Flex application thus making the EAR file similar to the
one created by the IDE).

I appreciate any recommendation or feedback on this approach.

Cheers,
Handerson

On Dec 17, 6:57 pm, "RedBugz Software" <[email protected]> wrote:
> On Wed, Dec 17, 2008 at 3:00 PM, Handerson <[email protected]> wrote:
> > My idea is to have the server side Java (Spring, JPA, etc) and Flex
> > under the same project and using the same pom.xml. The folder
> > structure would look like this:
>
> > /ProjectRoot
> > - pom.xml
> > - /bin-debug
> > - /flex_libs
> > - /html-template
> > - /src/main/flex
> > - /src/main/java
> > - /src/main/webapp
> > - /src/main/webapp/WEB-INF/flex/messaging.xml, proxy-config.xml, etc
> > - /src/test/flex
> > - /src/test/java
>
> This sounds like a bad idea to me, and is not the Maven way. You
> should have separate projects for your Java content and Flex content,
> just like the tutorial says. Is there some reason you can't or won't
> do it that way?
>
> Logan
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to