Environment:
Windows 7 Professional. IDEA: 14.0.3, Ultimate Edition 139.1117
I can't believe I am having difficulties with this.
1. I have a pom.xml that I successfully import as a project in IDEA using File -> Import Project. Now, I want to add a new aMaven dependency (hibernate-entitymanager) in it. Naturally, I open pom.xml in the editor and try adding in <dependencies>, the following <dependency>:
Note that the cursor jumps between <artifactId> tags and not the <groupId> tags. This is the first annoyance.
2. Many of the dependencies are already in ~/.m2, and I expected it to do code completion. So, after placing the cursor between groupId tags, I expect it to complete the code and here is what I see:
3. I have to add the entire text all by myself. Only after I have added the snippet (or copied+pasted from someplace like mvnrepository.com) does it proceed.
4. So, my question is, how do I make IDEA recognize pom.xml better and help me quickly adding dependencies? Am I missing something basic?