I have a multi-module project where one module is a flex module and another is a webapp module. There are many others modules, but I think these are the relevant ones. I'm using maven and flexmojos to build a webapp. I'm trying to use the exploded artifact of the web module to back a locally run (via IDEA) tomcat configuration. I have set up tomcat to use the exploded artifact and everything works fine with respect to starting tomcat and using the exploded directory.
I'm having trouble understanding the correct way to build the exploded artifact. If I run everything from the maven command line (or the maven projects tab within IDEA), maven creates the swf and war appropriately and packages the swf in the correct location in the war. However, I'm not sure how to do things outside of maven so the exploded directory is created correctly.
1. For flex modules is the IDEA compile/make functionality (e.g. - right click on module and click compile or make?) broken? I'm not really sure how these relate to the maven compile goal (e.g. - in idea maven project tab running the compile goal). The maven compile goal from within IDEA works and will correctly generate the swf. However, trying to use the compile by right clicking on the module fails trying to find the playerglobal.swc. The maven compile places this file in the modules/target/classes/libraries. The IDEA compile doesn't though. I tried reimporting the maven project and seleting 'Build->Rebuild Project' but this still failed with the missing playerglobal file. I'm pretty sure this wasn't an issue in 9.0.0 (though in 9.0.0 I had to first run maven compile, then could compile with IDEA's module compile).
2. How do I get the swf generated by the flex module to be deployed to the correct exploded artifact? Adding the flex module's compiler output to the exploded artifact doesn't copy the swf, but does copy all the other crap that goes into generating the swf which I don't want copied over. I have a dependency on the swf artifact generated by the flex module and the Idea builds puts it in the lib directory of the war. With the depedency on the flex moduleAt least this was in 9.0.0 (can't try with 9.0.1 due to issue 1 above). Like I said before, just using maven will correctly create everything (calls the flexmojos plugin copy-flex-resources goal). I guess IDEA doesn't integrate with this?
I have read the post http://blogs.jetbrains.com/idea/2009/09/flexmojos-inmaia/ (and associated comments), which doesn't address these issues. Some comments dealt with copying the swf, but they didn't work for me (or I'm to dense to understand how to apply the comments to my 9.0.1 project).
Any help, references, pointers, etc are greatly appreciated!