Mvn idea:idea
Hi all,
I usually use Maven to generate my IntelliJ projects. However, with the new IntelliJ project layout, this is not 100% compatible anymore. That's okay, but what's not, is that IntelliJ doesn't know (anymore) that my project is a Web project, with a context.xml and web.xml.
Anyone a suggestion on how to fix this?
Erik
Please sign in to leave a comment.
Maven's IDEA plugin is not written by jetbrains but by the ASF, and
hasn't been updated to support EAP versions (in this case, it doesn't
know about facets, and thus don't add them).
The recent EAPs include maven integration that allows you to import your
maven pom and generate the needed project files from it.
Since moving to the EAPs maven integration, I personally have not missed
the idea:idea functionality
johan
Erik Pragt wrote:
With latest IDEA builds what we do is initially generate via 'mvn idea:idea' and IDEA suggests enabling web support for relevant modules upon opening the project (autodetects).
Ah, thanks! I'll try to import the pom than, and skip the mvn idea:idea part.
btw: I did what you proposed, but the target directory is now not excluded. Only the _]]>.war is excluded. Are you having the same issue?
yes, IDEA is currently not excluding the target folder.
AFAIK it is because this folder will get the generated sources if any
Okay, that could make sense, but since I don't generate any code, it's not really handy for me. But it doesn't matter, I'll exclude it manually then!