-
1. Unable to access Maven Repository from Nexus
pgier Apr 7, 2011 4:00 PM (in response to stinnux)1 of 1 people found this helpfulWere you browsing your proxy repo via the Nexus Web GUI, or just the standard webserver directory listing? Nexus lazily populates the storage of proxy repositories, so you won't see files appear in the webserver listings until the files are actually requested the first time. However, you should be able to browse the downloaded JBoss.org index from within the Nexus Web GUI by selecting the repo, and then viewing the "Browse Index" tab. If these don't work, you might check with the Sonatype guys on #nexus@codehaus.org
-
2. Unable to access Maven Repository from Nexus
stinnux Apr 8, 2011 2:06 AM (in response to pgier)Thanks for your answer, Paul.
I have the problem using the web interface. Originally it was the case when either using "Browse Index" or using "Browse Remote". Now the problem only exists when using "Browse Remote", probably the index wasn't pulled when i last checked.
Another problem is that i am completely missing the directory org/hibernate/hibernate-core in the local index.
-
3. Unable to access Maven Repository from Nexus
icodeallday Apr 11, 2011 9:55 AM (in response to stinnux)Experiencing the exact same problem using Nexus. Here is some additional information from nexus.log:
2011-04-11 06:36:18 WARN [ool-1-thread-12] - o.s.n.i.DefaultInde~ - Cannot fetch remote index for repository public-jboss
java.io.FileNotFoundException: nexus-maven-repository-index.zip (item not found)
at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1095)
at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:190)
at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75)
at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:641)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:875)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156)
at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1111)
at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1013)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:897)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:850)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:824)
at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:60)
at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:72)
at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: The remoteURL we requested does not exists on remote server (remoteUrl="http://repository.jboss.org/nexus/content/groups/public-jboss/.index/nexus-maven-repository-index.zip")
at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpClientRemoteStorage.java:248)
at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1078)
... 21 more
It would appear there is an issue retrieving the Nexus indexes for the public-jboss url. Any assistance, thoughts, dreams, or wishes are welcomed.
I am trying to download the latest version of hibernate-validator, which is version 4.1.0.Final according to URL: https://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate-validator/.
I’ve configured my Nexus repository to retrieve from the following url: http://repository.jboss.org/nexus/content/groups/public-jboss
When I use “Browse Remote” to view the repository jars, all of the folders contain links to “home” and “here”:
The nexus.log error message states the following:
2011-04-11 06:36:18 WARN [ool-1-thread-12] - o.s.n.i.DefaultInde~ - Cannot fetch remote index for repository public-jboss
java.io.FileNotFoundException: nexus-maven-repository-index.zip (item not found)
at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1095)
at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:190)
at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75)
at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:641)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:875)
at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156)
at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1111)
at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1013)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:897)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:850)
at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:824)
at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:60)
at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:72)
at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.sonatype.nexus.proxy.ItemNotFoundException: The remoteURL we requested does not exists on remote server (remoteUrl="http://repository.jboss.org/nexus/content/groups/public-jboss/.index/nexus-maven-repository-index.zip")
at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpClientRemoteStorage.java:248)
at org.sonatype.nexus.index.DefaultIndexerManager$2.retrieve(DefaultIndexerManager.java:1078)
... 21 more
Thus, I am unable to download the latest version of the jar. What do I need to do to resolve this error?
Mark Patterson
B&W Technical Services Y-12, L.L.C ,
Contractor to the U.S. Department of Energy
602 Scarboro Rd.
Oak Ridge, TN 37830
-
4. Unable to access Maven Repository from Nexus
pgier Apr 11, 2011 11:26 AM (in response to stinnux)I was able to reproduce the two issues, the missing directories in the index, and the error in the "Browse Remote" tab.
According to Sonatype, the "Browse Remote" issue is a known bug, and will be fixed in Nexus 1.9.1. See these jiras for more info:
https://issues.sonatype.org/browse/NEXUS-4150
https://issues.sonatype.org/browse/NEXUS-4225
I'm waiting to hear back from Sonatype about the missing hibernate-core issue. I tried regenerating the index, but that didn't seem to have any effect. I can also find the correct hibernate-core jars when using the Nexus search, so the info should be in the index, but I don't know why it's not browsable. I'll post an update when I have more information.
-
5. Unable to access Maven Repository from Nexus
pgier Apr 11, 2011 12:33 PM (in response to pgier)Looks like the missing files in index browsing is also a known Nexus issue, and will be fixed in Nexus 1.9.1
-
6. Re: Unable to access Maven Repository from Nexus
michael.degols Aug 9, 2011 5:53 AM (in response to stinnux)Hi,
After upgrade to Nexus 1.9.2, I'm still unable to have my jboss repository proxies correctly configured.
I tried to add these proxies:
- https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/
Index is OK but unable to browse the repository via "Browse Remote" in Nexus GUI.
- https://repository.jboss.org/nexus/content/groups/public-jboss/
Remote Browsing is OK but unable to get the remote index.
Maybe this message from nexus log can help:
Aborted walking on repository ID='jboss-public' from path='/.index', cause: Item not found on path "/.index" in repository "jboss-public"!
- https://repository.jboss.org/nexus/content/repositories/releases/
For this proxy I have no problem, index and remote browsing are OK
Any idea about these issues ?
Thanks in advance
-
7. Re: Unable to access Maven Repository from Nexus
michael.degols Aug 9, 2011 6:25 AM (in response to michael.degols)Correction for my last message:
An index is loaded for https://repository.jboss.org/nexus/content/groups/public-jboss/ but is incomplete.
Apparently the index of https://repository.jboss.org/nexus/content/repositories/releases/ is loaded in place of the complete public-jboss index.
-
8. Re: Unable to access Maven Repository from Nexus
pgier Aug 22, 2011 10:48 AM (in response to michael.degols)I think the index issue in on the JBoss repo side. Even if you upgraded to 1.9.2, the JBoss Nexus repo is still at 1.9.0.2, so we're still affected by the indexing issues that I listed above. We don't have a date set for upgrade, because there are some additional fixes we are waiting for possibly in 1.9.3.