Nexus proxy repo

View: New views
2 Messages — Rating Filter:   Alert me  

Nexus proxy repo

by Apersona Persona :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm new to nexus. I installed nexus on window and try to create a new proxy repository (release and snapshot) but nothing being index and no jar files being found. When I looked at nexus log file I found below exception. I added this proxy to a group.

Am I missing any set up? How can I resolve this issue?

urce)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2009-09-10 13:54:46 INFO  - o.s.n.i.IndexerMana~:default  - Cascading
 merge of group indexes for group 'public', where repository 'silvermindsoftware
.snapshot' is member.
jvm 1    | 2009-09-10 13:56:07 INFO  - o.s.n.i.IndexerMana~:default  - Publishin
g best index for repository silvermindsoftware.snapshot
jvm 1    | 2009-09-10 13:56:13 INFO  - o.s.n.f.FeedRecorder:default  - Reindexin
g repository Silvermind Software Snapshot Repo from path / and below. : Process
started on Thu Sep 10 13:56:13 EDT 2009, not yet finished.
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.i.IndexerMana~:default  - Trying to
 get remote index for repository silvermindsoftware.snapshot
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.p.r.Repository:maven2   - Expiring
local cache in repository ID='silvermindsoftware.snapshot' from path='/.index'
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.p.r.Repository:maven2   - Clearing
NFC cache in repository ID='silvermindsoftware.snapshot' from path='/.index'
jvm 1    | 2009-09-10 13:56:15 WARN  - o.s.n.i.IndexerMana~:default  - Cannot fe
tch remote index:
jvm 1    | java.io.FileNotFoundException: nexus-maven-repository-index.zip (item
 not found)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(Def
aultIndexerManager.java:721)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadInde
xDirectory(DefaultIndexUpdater.java:178)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAnd
UpdateIndex(DefaultIndexUpdater.java:108)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIn
dex(DefaultIndexerManager.java:731)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexFor
RemoteRepository(DefaultIndexerManager.java:603)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.downloadReposi
toryIndex(DefaultIndexerManager.java:570)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexReposit
ory(DefaultIndexerManager.java:484)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexReposit
ory(DefaultIndexerManager.java:440)
jvm 1    |      at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexu
s.java:1328)
jvm 1    |      at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:4
0)
jvm 1    |      at org.sonatype.nexus.scheduling.AbstractNexusTask.call(Abstract
NexusTask.java:139)
jvm 1    |      at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultSche
duledTask.java:342)
jvm 1    |      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

jvm 1    |      at java.util.concurrent.FutureTask.run(Unknown Source)
jvm 1    |      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFut
ureTask.access$301(Unknown Source)
jvm 1    |      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFut
ureTask.run(Unknown Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknow
n Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown So
urce)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2009-09-10 13:56:15 INFO  - o.s.n.i.IndexerMana~:default  - Cascading
 merge of group indexes for group 'public', where repository 'silvermindsoftware
.snapshot' is member.
jvm 1    | 2009-09-10 13:57:30 INFO  - o.s.n.i.IndexerMana~:default  - Publishin
g best index for repository silvermindsoftware.snapshot

Re: Nexus proxy repo

by Damian Bradicich :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
Seems what is happening here is that the silvermindsoftware repository you are proxying doesn't supply a nexus index for the contents of their repository.  Nexus will still retrieve artifacts from this repository when requested by maven, but you won't be able to search full contents of the remote repository.  As more and more artifacts are requested from this repository, nexus will build it's own index that you can search, but will only contain artifacts nexus has retrieved.
 
Note that index availability is only used for searching in nexus, normal maven usage doesn't use the index in any way, so not having an index from a remote repository shouldn't hurt anything functionally.
 
Damian

On Thu, Sep 10, 2009 at 2:00 PM, Apersona Persona <ap09940@...> wrote:
Hi,
I'm new to nexus. I installed nexus on window and try to create a new proxy repository (release and snapshot) but nothing being index and no jar files being found. When I looked at nexus log file I found below exception. I added this proxy to a group.

Am I missing any set up? How can I resolve this issue?

urce)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2009-09-10 13:54:46 INFO  - o.s.n.i.IndexerMana~:default  - Cascading
 merge of group indexes for group 'public', where repository 'silvermindsoftware
.snapshot' is member.
jvm 1    | 2009-09-10 13:56:07 INFO  - o.s.n.i.IndexerMana~:default  - Publishin
g best index for repository silvermindsoftware.snapshot
jvm 1    | 2009-09-10 13:56:13 INFO  - o.s.n.f.FeedRecorder:default  - Reindexin
g repository Silvermind Software Snapshot Repo from path / and below. : Process
started on Thu Sep 10 13:56:13 EDT 2009, not yet finished.
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.i.IndexerMana~:default  - Trying to
 get remote index for repository silvermindsoftware.snapshot
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.p.r.Repository:maven2   - Expiring
local cache in repository ID='silvermindsoftware.snapshot' from path='/.index'
jvm 1    | 2009-09-10 13:56:14 INFO  - o.s.n.p.r.Repository:maven2   - Clearing
NFC cache in repository ID='silvermindsoftware.snapshot' from path='/.index'
jvm 1    | 2009-09-10 13:56:15 WARN  - o.s.n.i.IndexerMana~:default  - Cannot fe
tch remote index:
jvm 1    | java.io.FileNotFoundException: nexus-maven-repository-index.zip (item
 not found)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(Def
aultIndexerManager.java:721)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadInde
xDirectory(DefaultIndexUpdater.java:178)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAnd
UpdateIndex(DefaultIndexUpdater.java:108)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIn
dex(DefaultIndexerManager.java:731)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexFor
RemoteRepository(DefaultIndexerManager.java:603)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.downloadReposi
toryIndex(DefaultIndexerManager.java:570)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexReposit
ory(DefaultIndexerManager.java:484)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexReposit
ory(DefaultIndexerManager.java:440)
jvm 1    |      at org.sonatype.nexus.DefaultNexus.reindexRepository(DefaultNexu
s.java:1328)
jvm 1    |      at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:4
0)
jvm 1    |      at org.sonatype.nexus.scheduling.AbstractNexusTask.call(Abstract
NexusTask.java:139)
jvm 1    |      at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultSche
duledTask.java:342)
jvm 1    |      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)

jvm 1    |      at java.util.concurrent.FutureTask.run(Unknown Source)
jvm 1    |      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFut
ureTask.access$301(Unknown Source)
jvm 1    |      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFut
ureTask.run(Unknown Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknow
n Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown So
urce)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2009-09-10 13:56:15 INFO  - o.s.n.i.IndexerMana~:default  - Cascading
 merge of group indexes for group 'public', where repository 'silvermindsoftware
.snapshot' is member.
jvm 1    | 2009-09-10 13:57:30 INFO  - o.s.n.i.IndexerMana~:default  - Publishin
g best index for repository silvermindsoftware.snapshot