Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Maven Trouble: Can't get Nexus to proxy the eclipselink repository
Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #544191] Thu, 01 July 2010 23:32 Go to next message
Dan Kaplan is currently offline Dan KaplanFriend
Messages: 13
Registered: May 2010
Junior Member
I am trying to get Nexus (a maven2 repository) to proxy the eclipse link repository and I cannot figure out how to do this. I'm getting the info I need from this webpage: http://wiki.eclipse.org/EclipseLink/Maven

When I try to index the repo, nexus reports this error:

jvm 1    | 2010-07-01 16:24:19 WARN  [ool-1-thread-20] - o.s.n.i.DefaultInde~          - Cannot fetch remote index for repository eclipselink
jvm 1    | java.io.FileNotFoundException: nexus-maven-repository-index.properties (item not found)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:1261)
jvm 1    |      at org.sonatype.nexus.index.updater.AbstractResourceFetcher.retrieve(AbstractResourceFetcher.java:22)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:493)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$100(DefaultIndexUpdater.java:74)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:780)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:954)
jvm 1    |      at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1271)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1152)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1012)
jvm 1    |      at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:870)
jvm 1    |      at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:56)
jvm 1    |      at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:57)
jvm 1    |      at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192)
jvm 1    |      at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
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$ScheduledFutureTask.access$301(Unknown Source)
jvm 1    |      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
jvm 1    |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
jvm 1    |      at java.lang.Thread.run(Unknown Source)
jvm 1    | 2010-07-01 16:24:19 INFO  [ool-1-thread-20] - o.s.n.i.DefaultInde~          - Publishing best index for repository eclipselink
jvm 1    | 2010-07-01 16:24:20 INFO  [ool-1-thread-20] - o.s.n.i.p.DefaultIn~          - Unable to read properties file, will force index regeneration
jvm 1    | 2010-07-01 16:24:20 INFO  [ool-1-thread-20] - o.s.n.f.DefaultFeed~          - Reindexing repository eclipselink from path null and below. : Proc
ess started on Thu Jul 01 16:24:18 PDT 2010, finished successfully on Thu Jul 01 16:24:20 PDT 2010


Here is an image to how I set up nexus: http://img816.imageshack.us/img816/4951/bugl.png I thought it would be very straightforward but apparently it's not.

Is there something wrong with how the eclipselink repo is configured?
Re: Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #544221 is a reply to message #544191] Fri, 02 July 2010 04:53 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 807
Registered: July 2009
Senior Member
That URL is not a Maven repository, but a wiki page ABOUT the repository. The links on that page do not get me to a repository, so I'm not sure what the right URL is. But the one you're using is not.


On 2010-07-02 01:32, Dan Kaplan wrote:
> I am trying to get Nexus (a maven2 repository) to proxy the eclipse link
> repository and I cannot figure out how to do this. I'm getting the info
> I need from this webpage: http://wiki.eclipse.org/EclipseLink/Maven
>
> When I try to index the repo, nexus reports this error:
>
>
> jvm 1 | 2010-07-01 16:24:19 WARN [ool-1-thread-20] -
> o.s.n.i.DefaultInde~ - Cannot fetch remote index for repository eclipselink
> jvm 1 | java.io.FileNotFoundException:
> nexus-maven-repository-index.properties (item not found)
> jvm 1 | at
> org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(De faultIndexerManager.java:1261)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.AbstractResourceFetcher.ret rieve(AbstractResourceFetcher.java:22)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.DefaultIndexUpdater.downloa dIndexProperties(DefaultIndexUpdater.java:493)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.DefaultIndexUpdater.access$ 100(DefaultIndexUpdater.java:74)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.DefaultIndexUpdater$IndexAd aptor.setProperties(DefaultIndexUpdater.java:780)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:954)
>
> jvm 1 | at
> org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAn dUpdateIndex(DefaultIndexUpdater.java:159)
>
> jvm 1 | at
> org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteI ndex(DefaultIndexerManager.java:1271)
>
> jvm 1 | at
> org.sonatype.nexus.index.DefaultIndexerManager.downloadRepos itoryIndex(DefaultIndexerManager.java:1152)
>
> jvm 1 | at
> org.sonatype.nexus.index.DefaultIndexerManager.reindexReposi tory(DefaultIndexerManager.java:1012)
>
> jvm 1 | at
> org.sonatype.nexus.index.DefaultIndexerManager.reindexReposi tory(DefaultIndexerManager.java:870)
>
> jvm 1 | at
> org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRep ository(ReindexTaskHandlerLegacy.java:56)
>
> jvm 1 | at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java: 57)
> jvm 1 | at
> org.sonatype.nexus.scheduling.AbstractNexusTask.call(Abstrac tNexusTask.java:192)
>
> jvm 1 | at
> org.sonatype.scheduling.DefaultScheduledTask.call(DefaultSch eduledTask.java:338)
>
> 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$ScheduledFu tureTask.access$301(Unknown
> Source)
> jvm 1 | at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFu tureTask.run(Unknown
> Source)
> jvm 1 | at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unkno wn Source)
> jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
> jvm 1 | at java.lang.Thread.run(Unknown Source)
> jvm 1 | 2010-07-01 16:24:19 INFO [ool-1-thread-20] -
> o.s.n.i.DefaultInde~ - Publishing best index for repository eclipselink
> jvm 1 | 2010-07-01 16:24:20 INFO [ool-1-thread-20] -
> o.s.n.i.p.DefaultIn~ - Unable to read properties file, will force index
> regeneration
> jvm 1 | 2010-07-01 16:24:20 INFO [ool-1-thread-20] -
> o.s.n.f.DefaultFeed~ - Reindexing repository eclipselink from path null
> and below. : Proc
> ess started on Thu Jul 01 16:24:18 PDT 2010, finished successfully on
> Thu Jul 01 16:24:20 PDT 2010
>
>
> Here is an image to how I set up nexus:
> http://img816.imageshack.us/img816/4951/bugl.png I thought it would be
> very straightforward but apparently it's not.
> Is there something wrong with how the eclipselink repo is configured?
Re: Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #658943 is a reply to message #544221] Thu, 10 March 2011 14:23 Go to previous messageGo to next message
Caspar MacRae is currently offline Caspar MacRaeFriend
Messages: 12
Registered: March 2011
Location: London
Junior Member
The URL that should be used is:

http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo

This will work in a pom definition but not in nexus (changing & to & doesn't help either)

If you follow this link to the mirror site and include this redirected URL it fails as the mirror service is a webpage full of links, hunted for other mirrors (eg. http://mirrors.ibiblio.org/pub/mirrors/eclipse/rt/eclipselin k/maven.repo/ ) but same effect.

You should be able to specify the mirror site with FTP, but bug(s) in Nexus means you cannot, see https://issues.sonatype.org/browse/NEXUS-3235


All in all this is pretty disappointing - anyone have a clue how to work around this?

I'm stuck with putting:


<repository>
<id>eclipselink</id>
<url><![CDATA[
http://www.eclipse.org/downloads/download.php?r=1&nf=1&a mp;file=/rt/eclipselink/maven.repo
]]></url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>


In my POMs Sad
Re: Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #658979 is a reply to message #658943] Thu, 10 March 2011 15:29 Go to previous messageGo to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 807
Registered: July 2009
Senior Member
Hm. I'm proxying eclipselink in my Nexus without problems.

Maven 2 release repostory to
http://www.eclipse.org/downloads/download.php?r=1&nf=1&a mp;file=/rt/eclipselink/maven.repo/
Re: Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #659495 is a reply to message #544191] Mon, 14 March 2011 10:32 Go to previous messageGo to next message
Caspar MacRae is currently offline Caspar MacRaeFriend
Messages: 12
Registered: March 2011
Location: London
Junior Member

Since the weekend (where we have Nexus scheduled to reindex, repair etc) this seems fine now on the download.php url.

Guess if anyone else has issues with this then run some repair/rebuild tasks should sort it.
Re: Maven Trouble: Can't get Nexus to proxy the eclipselink repository [message #659522 is a reply to message #659495] Mon, 14 March 2011 12:20 Go to previous message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 807
Registered: July 2009
Senior Member
Ah, indeed. I have it rebuild every night.
Previous Topic:MOXy support for inheritance (Java -> XML)
Next Topic:problem with dynamic weaving and class hierarchy
Goto Forum:
  


Current Time: Mon Nov 24 23:02:48 GMT 2014

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

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