Hi foolks, I'm totally new to flex but I have a proper project build up from a former colleague of mine. So I mavenized it with flexmojos 3.6.1. The project consists of a main application mxml file and 4 modules build in actionscript. In my pom I configured the flexmojo maven plugin with the moduleFiles parameter relative to the files in the source tree. So I have:
<moduleFiles> <module>com/mycompany/packagea/MyModule1.as</module> <module>com/mycompany/packageb/MyModule2.as</module> <module>com/mycompany/packagec/MyModule3.as</module> <module>com/mycompany/packaged/MyModule4.as</module> </moduleFiles> So far so good. When I run flexmojos:flexbuilder the proper project is created and the modules are written to the project setting. But there's the first problem: The modules do get compiled through flexbuilder BUT they occur not as SWF files! They are named after the files! So I get: bin-debug packagea/MyModule1.as packageb/MyModule2.as packagec/MyModule3.as packaged/MyModule4.as So it seems they don't get the correct name although they are compiled! When I rename them to MyModule1.swf in the debug folder my main application works. Is there a workaround for that or is it a bug and I should create a ticket? I already tried to look inside the flexmojos code but since my time is kind of limited I didn't get to far. I could create a workaround for that while running an external task to rename the files automatically I guess. But the main problem I really have so far is the following: When I run the goal flexmojos:compile-swf on the above described pom the artifacts get compiled but it seems that the declared modules don't get compiled as modules. When I start my application the ModuleEvent.READY (of course all the other ModuleEvents as well) doesn't get dispatched. When compiling in Flexbuilder everything except the noted naming stuff works. So I guess there's some kind of compiler argument that says: compile as module? Didn't find it yet. Long story short: I want to use a CI server to build the project correctly and I hoped flexmojos would do the trick since it's neat functions and goals. Has anyone of you ever experienced something like that as well? Any hints to that topic? Of course I could try and seperate the modules code into own projects/ artifacts but I don't want to. But even than I guess the same problem would occur after compile-swf. Thanks in advance for thoughts, critics and hopefully help :) Cheers, norman -- 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/ To unsubscribe, reply using "remove me" as the subject.
