Intellij Idea X EAP, multi-module Maven Flex/Java project

Hey all,

I have a few issues running my project through Idea, but the most prevalent one at the moment is that Idea is having a hard time resolving dependencies for a Flexmojos-generated ActionScript model.  We've got a bunch of Java VO's and we generate the ActionScript equivalents from them.  We've added configurationReport to all of the relevant Flexmojos configs.

We have 25 different modules in our project, I think all of the dependencies resolve fine.

Any thoughts on where I should start looking?

Thanks!

9 comments
Comment actions Permalink

I should also add that the dependency (in this case, we'll call the main project client-ui, and the dependency client-model) is in the list of dependencies under client-ui -> right click -> module settings -> dependencies, it looks like it's resolved within Idea (i.e., it's not pulling the swc from Maven).

For example:

Dependencies (in order of appearance as generated by my import of the Maven project):

compiler-3.4.1.10084.pom
<Module source>
client-model
Maven: com.adobe.flex.framework:playerglobal:swc:10-3.4.1.10084
... (and on and on)

0
Comment actions Permalink

I'm afraid I haven't got the problem completely. May be this is the same as http://youtrack.jetbrains.net/issue/IDEA-58268 or http://youtrack.jetbrains.net/issue/IDEA-61917?
Can you please describe the problem in details with screenshots, code samples, steps to reproduce if possible.

0
Comment actions Permalink

It looks like it's similar to 58286, perhaps a little different.  That bug suggests that Idea should use outputDirectory as a source path (rather than not at all?), however, in my environment it's actually setting it to excluded.

We have <outputDirectory>target/as3</outputDirectory> defined in our pom, for some reason, when Idea imported the Maven module, it had target/as3 set as "excluded", rather than "sources".  It's able to look up the generated classes properly when it's set to "sources".

0
Comment actions Permalink

Is everything gets correct if you manually unexclude target folder and add target/as3 as a source folder?

0
Comment actions Permalink

Yup, if I manually set it after the import it seems to compile just fine!

Speaking of which, I need to switch between different branches fairly frequently, is there a smoother way to do that with Idea than checking out the branch, and importing the external model into a new project?

0
Comment actions Permalink

Would be good if you add your comments to the related issue with sample lines from your pom.xml and expected behavior.

Are you talking about branches of your code in VCS? Reimport button on Maven tool window can be used instead of New Project Wizard.

0
Comment actions Permalink

I have multiple folders that I keep active for my development in different branches, I'm not sure that I can just do a re-import for that, can I?

0
Comment actions Permalink

May be you should have saparate IDEA projects for different branches located in different folders. Or I'm still not getting the question.

0
Comment actions Permalink

Nope, you got it.  That's what I'm doing now, though there are a bunch of fiddly things that I seem to have to do to set up each Idea project for each branch after importing my maven build.

Doesn't seem to associate JSDK/Flex SDK cleanly
Fix my generated models
Still working on this missing fonts.ser issue (http://devnet.jetbrains.net/message/5279629)

The editor is so good though, that it still seems the extra bit of hassle ;)

0

Please sign in to leave a comment.