Hi Mike,

No, not quite. I used the Maven archetype "graniteds-tide-spring-jpa-hibernate" which pulls in Flex 4, Spring 3, Hibernate/JPA and GraniteDS with Tide API. It created 3 projects along with 3 poms. One for Flex, one for the Java backend and one for the entire webapp. However, an html wrapper is not generated by default. In addition to wanting to add the html wrapper, I also want to add flex modules I created for admin and other parts of the app, compile them and include them into the resulting war file. I was able to hack around a bit and get the modules compiling into swf, and the html-wrapper generated, but I'm not sure how to get them into the war file. The things that I've found using Google aren't very clear for a maven neophyte like myself. I know that I need to add these to the entire webapp pom that packages everything, but I'm just not sure how to do it.

Thanks,
John

On , "Hessick, Michael" <[email protected]> wrote:
John, Just to clarify, you've got a flex application and a java application, that you want to package together into a war? You want an example of a pom file that would package both of these into a war? -Mike From: [email protected] [mailto:[email protected]] On Behalf Of john
Sent: Tuesday, July 19, 2011 9:23 AM
To: [email protected]
Subject: Re: [flex-mojos] New to Flexmojos and Maven Mike,

Thanks, I'll do some more reading up on Maven and try to put your suggestions into practice. Any chance you have an example that you are willing to share? ;-)

Thanks a bunch for your answer!
JohnOn Mon, Jul 18, 2011 at 11:26 PM, Hessick, Michael [email protected]> wrote:You could create a 4th pom to perform the packaging of the three artifacts.

Include these artifacts in the pom, then
tie the packaging phase to a plugin goal.

The maven jar plugin (or the maven war plugin) have some options but they may not handle SWF files and I don't recall if flexmojos will package into a war.

The maven assembly plugin will work for sure, check out examples on the Maven site.

Regards,

-Mike


From: john [mailto:[email protected]]
Sent: Monday, July 18, 2011 10:42 PM
To: flex-mojos [email protected]>
Subject: [flex-mojos] New to Flexmojos and Maven

Hello everyone,
I'm new to Maven and Flexmojos. I'm currently reading a book on Maven but I still have some questions regarding flexmojos and maven.

I used to the maven archetype: graniteds-tide-spring-jpa-hibernate: Flex 4 + Spring 3 + Hibernate/JPA + GraniteDS with Tide API, I can get everything to compile and create the war file, however, I now want to break my flex project into modules as well as use an HTML wrapper.

My issue is that I'm just not familiar enough with Maven and Flexmojos to update the correct pom.xml as there are three pom.xml files. One for the Flex project, one for the Java source, and one for the overall application. I've managed to get the modules compiled to swf but they are not being added to the war file.

Could someone please point me to a clear and concise tutorial on how to add the newly generated modules as well as the html wrapper to the war file?

Thanks,
John

--
"You cannot invade mainland United States. There would be a rifle behind each blade of grass."
-Admiral Isoroku Yamamoto


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


--
"You cannot invade mainland United States. There would be a rifle behind each blade of grass."
-Admiral Isoroku Yamamoto--
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/


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