Googling for how to import an IntelliJ project into NetBeans didn’t turn up much information. NetBeans has a nice import tool form migrating from Eclipse — clearly, Sun knows who their competition is — but there’s nothing like that for other IDEs. And that makes sense: who would go back to a free IDE after shelling out for IntelliJ licenses? (Oh, the irony.)
This was kind of counter-intuitive to me, but what I learned is that it’s probably best to import a Groovy or Grails project as a Java Free-Form Project. The Free-Form Project lets you retain control of your build script (build.xml), rather than letting NetBeans alter it for you. It also lets you specify a number of project properties while you’re setting it up, including preferred JDK and classpath.
There’s also a plugin you can install, called Automatic Projects. With Automatic Projects installed, you can open any existing project, and NetBeans will simply scan the directory and configure project settings for itself.
I’m running into a problem. NetBeans doesn’t seem to want to allow me to create any new Java Free-Form Projects. It tells me “Project folder is already owned by NetBeans project my_project_name.” What is that about?
Do any experienced NetBeans users have any suggestions on what I’m doing wrong? Is this related to Project Groups perhaps?