• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating index never terminates  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have checked Window->Preferences->Maven->Download repository index updates on startup and restarted my Eclipse neon 3 java EE distribution. On startup updating index never terminates, the default central repository url was https://repo.maven.apache.org/maven2. I have created a new Maven Project and inserted in pom.xml the following to replace the original central repository url, but it failed too!

How can I download/update this repository index ?

Thank you.
 
author & internet detective
Marshal
Posts: 37896
594
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, you don't need that checkbox checked. I keep it unchecked in mine. It saves disk space because I'm using a separate directory for the local Maven repository. And also, it moves downloading to what I actually need.

That said, are you able to run an actual Maven build or is the problem just at start up?
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne for your reply.

When I have created a new Maven Project, on the second screen where I must choose an archetype, there were just a few internal maven archetypes. So I have downloaded archetype-catalog.xml on my computer and configured it as a new Local Catalog. After choosing an archetype and completing the project wizard, I wanted to add some dependencies to my project, so I have choosed pom.xml->Dependencies->Add... and on the Select Dependency screen I have this warning Index downloads are disabled, search results may be incomplete. To resolve the problem, I have proceeded as described in my first post, the warning message disappeared but downloading the index never achieve.

I want to precise that adding a dependency manually in pom.xml works fine.
 
Sheriff
Posts: 4632
129
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if the problem is apparent in a Maven project too, can you post your complete pom.xml file?  Remember to UseCodeTags (that's a link) and change Java to XML.

And welcome to the Ranch!
 
Knute Snortum
Sheriff
Posts: 4632
129
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using Maven at the command line?  The command is mvn.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37896
594
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lahouari Bendriss wrote: pom.xml->Dependencies->Add... and on the Select Dependency screen I have this warning Index downloads are disabled, search results may be incomplete. To resolve the problem, I have proceeded as described in my first post, the warning message disappeared but downloading the index never achieve.

I want to precise that adding a dependency manually in pom.xml works fine.


Since adding a dependency manually works, that means you can run Maven builds - which is good.

I don't use the "add dependency" feature for searching in Maven Central. I use Google. I do use "add dependency" for things that are already in my local repo.
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I haven't problem with a standalone Maven at the command line. My problem is with the embedded Maven in Eclipse neon 3.
 
Sheriff
Posts: 21255
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:I don't use the "add dependency" feature for searching in Maven Central. I use Google.


Why not go closer to the source, http://search.maven.org/ and http://mvnrepository.com/ ? That saves you another search.
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Spoor wrote:Why not go closer to the source, http://search.maven.org/ and http://mvnrepository.com/ ? That saves you another search.


Using then IDE Select Dependency integrated screen is more closer, so how can I use it ?
 
Rob Spoor
Sheriff
Posts: 21255
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No idea, I've never used it. I always do the same as Jeanne, just lookup the dependency online and add it to the POM manually.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37896
594
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I don't use it because it is slow and a memory hog
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the same problem, I have followed the tutorial but it doesn't work for me!


Any suggestions
 
Knute Snortum
Sheriff
Posts: 4632
129
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lahouari Bendriss wrote:On startup updating index never terminates...


Meaning, how long did you wait?  I'm doing it right now on my setup to see how long it takes.
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More than an hour and after this duration I have interrupted the operation.
 
Knute Snortum
Sheriff
Posts: 4632
129
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mine just finished; it took a good ten minutes.
 
Knute Snortum
Sheriff
Posts: 4632
129
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lahouari Bendriss wrote:More than an hour and after this duration I have interrupted the operation.


How powerful is your computer?  Does it have a slow disk?
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use my Toshiba Laptop i5 CPU @ 2.50Ghz 2.50Ghz, 4GB of RAM and 600GB SCSI Hitachi disk drive.
My Eclipse is neon 3 Java EE 64 bits unzipped on Windows 7, the default m2e - Maven Integration for Eclipse (includes Incubating components) version is 1.7.0.20160603-1933
Can you tell me the size of your .m2\repository directory ? And do you have inside a .cache directory ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37896
594
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, remember your network speed (and probably latency) matters for this.
 
Lahouari Bendriss
Greenhorn
Posts: 10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Jeanne, as you said the problem was related to performance: internet and hard drive speed.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!