Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Adding a new dependency in pom.xml

$
0
0

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>:

 

dependency-add-1.PNG

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:

 

dependency-add-2.PNG

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?


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>