Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unable to update index for central(How to tell eclipse that i want to use nexus)
Unable to update index for central [message #644495] Sun, 12 December 2010 09:46 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: December 2010
Junior Member
I am running Eclipse Helios 3.6.1 and just installed Nexus on my home server.
I changed the maven settings.xml configuration file as described on the website:
<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
	<mirrors>
		<mirror>
			<!--This sends everything else to /public -->
			<id>nexus</id>
			<name>Nexus on Servix</name>
			<mirrorOf>*</mirrorOf>
			<url>http://192.168.0.101:8081/nexus/content/groups/public</url>
		</mirror>
	</mirrors>
	<profiles>
		<profile>
			<id>nexus</id>
			<!--Enable snapshots for the built in central repo to direct -->
			<!--all requests to nexus via the mirror -->
			<repositories>
				<repository>
					<id>central</id>
					<url>http://central</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>central</id>
					<url>http://central</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<!--make the profile active all the time -->
		<activeProfile>nexus</activeProfile>
	</activeProfiles>
</settings>

When I want to add a new dependency to a maven project pom, I only see the artifacts that are in my nexus private repository, but not the ones from maven central.
Browsing the maven repository in eclipse, shows an empty central repository. It just shows:
central (http://central) [mirrored by nexus]

I tried Update Index but then I get an error telling:
12/12/10 10:11:18 CET: Unable to update index for central|http://central
12/12/10 10:11:18 CET: Updating index nexus|http://192.168.0.101:8081/nexus/content/groups/public
12/12/10 10:11:15 CET: Updating index central|http://central
12/12/10 10:11:18 CET: Updated index for nexus|http://192.168.0.101:8081/nexus/content/groups/public

How do I tell eclipse that it should go to my home server to retrieve the index? Apparently it knows that the repository is mirrored by nexus, but it seems to ignore this fact for retrieving the index.
Re: Unable to update index for central [message #672129 is a reply to message #644495] Fri, 20 May 2011 02:02 Go to previous messageGo to next message
R  is currently offline R Friend
Messages: 1
Registered: July 2009
Junior Member
I´m with the same problem.
Re: Unable to update index for central [message #683880 is a reply to message #644495] Tue, 14 June 2011 15:24 Go to previous messageGo to next message
drhades  is currently offline drhades Friend
Messages: 1
Registered: June 2011
Junior Member
With similar settings.xml, my error message:

11-6-14 下午11时10分33秒: Updating index nexus|...[local_service_path].../nexus/content/groups/public/
11-6-14 下午11时10分33秒: Unable to update index for nexus|...[local_service_path].../nexus/content/groups/public/
Re: Unable to update index for central [message #691479 is a reply to message #683880] Fri, 01 July 2011 14:26 Go to previous message
Joe Intrakamhang is currently offline Joe IntrakamhangFriend
Messages: 1
Registered: July 2011
Junior Member
I had a similar problem with running a local instance of Nexus. The way I fixed it was by launching the Nexus webapp and I choose repair index and rebuild index on the Public Repository Group.

I believe the issue had to deal with a non-existent index or a bad index. Once the index exists on the Nexus server then the m2eclipse plugin will be able to rebuild/update index in Maven Repository Eclipse view.
Previous Topic:arm-elf-gcc problem
Next Topic:framework, toolkit, library ?
Goto Forum:
  


Current Time: Thu Sep 26 14:53:13 GMT 2024

Powered by FUDForum. Page generated in 0.06239 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top