loading grails sources to intellij (which sucks)
Started working on the noisyheads Grails app. Nifty JetGroovy. Got the create-app, create-domain, create-everything all worked out. Domain class here, controller there, a little service here. Then installed Acegi (Spring) Security plugin. App’s looking more and more like it has a chance. Then attempted to commit to my DevJavu account. Followed the tutorail for checking in a Grails app in subversion. (Except I was stupid enough to assume that the ignore plugins/core part is deprecated since I don’t see any). Being the nitpicking prig that I am, I have the habit of never committing any IDE descriptor files.
Problem became apparent when I tried loading my shitty codes freshly checked out from my vcs. Open IntelliJ. File > New Project > Create Java Project From Existing Source. Selected the project. And what do you know? It detected Acegi as my app. Ok. Stupid me. Now the smarty pants tactic I pulled off was idiotic. I deleted the plugins directory now (I added svn ignore to it from then on), only then was I able to see some trace of the IDE detecting my app properly. Then invoked the plugin installation again. Tried to search around the forums about this scene. Too bad I only see a thread with me as the last commenter (yes I’m mykol).
So I though I got it all sorted out. Until I committed lots of files under groovy and java directories. I tried to do the same trick again. But I’m totally having a different structure in my IDE. It’s seems it wants to make a separate module out of my src files. Fuck.
So, after a few IntelliJ ninjatsu (I basically re-did everything), I decided to commit all my IntelliJ descriptor files. Yuck.
If only Grails has something like Maven plugins for IDEs (or vice versa). I suggested something in the list. Just got buried. Oh well. Maybe I could scratch this itch some other time. I have an app to work on.
I see you already found the Maven/Grails integration thread at the Grails user list =)
yeah been lurking around and trying to inject a thought or two.