214 words

Eclipse - Maven - Dependencies not getting automatically reflected

2013-12-22 22:46

I have installed

  • Java 1.7
  • Eclipse Juno
  • From Eclipse Market place have installed - Maven Integration for Eclipse WTP (a.k.a m2e-wtp), m2e-apt, Spring IDE, The Spring Tool Suite™ (STS)
  • Have defined M2_HOME as directory where Maven is installed. PATH updated as %M2_HOME%/bin

I am working on Windows XP.

I am able to create a Maven project but when trying to add Dependencies (select pom.xml - Dependencies - Add) artifactId's "Enter groupId, artifactId or sha1 prefix or pattern" which are inputted are not getting displayed. Say if I input springframework, it only reflect the jars that installed locally and don't search over the internet. Also if I check Maven Repositories (select by Windows - Show Views - Others - Maven - Maven Repositories), nothing is shown in Global Repositories - central(http://repo.maven.apache.org/maven2).

In case, if I manually put required artifcatID in pom.xml and then update maven it downloads the required jars.

I am working on my home computer where I don't have any proxies and has set following in local m2 settings(C:\Documents and Settings\Sandy.m2\Settings.xml)

Can you please advise, what setting I need to do so that inputted artifact's can be added using add Dependencies option?

Thanks in advance

destiny.sandeep's picture
Joined on 2013-12-22
User Post #1
2013-12-23 17:30

Is this question related to a specific ObjectDB tutorial?

If yes, could you please provide a link to the exact tutorial page?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #1,742

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB