Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » P2 repositories intermittent failures
P2 repositories intermittent failures [message #1796597] Tue, 16 October 2018 12:10 Go to next message
PK Mising name is currently offline PK Mising nameFriend
Messages: 44
Registered: July 2009
Member
Hello,
My target platform was failing to reload for many days. It started working, worked for a day, and started failing again. It is very frustrating not being able to do maven tycho builds from the command line OR reload the target platform within Eclipse OR even update eclipse.

We are trying to hit http://download.eclipse.org/releases/photon/.

Is there any way to become completely independent of the eclipse P2 repositories?? From what I read, even mirroring won't help because that only mirrors the artifacts and not the xml files. This is having a serious impact on my development team.

Thanks.
Re: P2 repositories intermittent failures [message #1796605 is a reply to message #1796597] Tue, 16 October 2018 13:03 Go to previous messageGo to next message
Eclipse UserFriend
My suggestion is to set up a Nexus OSS repository and proxy the repositories. Vogella has a tutorial with the details.

Your developers configure their ~/.m2/settings.xml to reference the proxy.
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <mirrors>
    <mirror>
      <id>nexus-eclipse-photon</id>
      <mirrorOf>photon,eclipse-photon,http://download.eclipse.org/releases/photon</mirrorOf>
      <url>http://nexus.example.com:8081/nexus/content/repositories/eclipse-photon</url>
      <layout>p2</layout>
      <mirrorOfLayouts>p2</mirrorOfLayouts>
    </mirror>
  </mirrors>
</settings>
Re: P2 repositories intermittent failures [message #1796619 is a reply to message #1796605] Tue, 16 October 2018 14:14 Go to previous messageGo to next message
PK Mising name is currently offline PK Mising nameFriend
Messages: 44
Registered: July 2009
Member
Thanks Brian. I will try and execute the steps in that tutorial.

Eclipse software updates, target platform within Eclipse, and maven eclipse tycho builds were all working fine. Suddenly they all stopped working. Nothing else has changed. I don't know if the eclipse servers are having issues over the last 24 hours.

[Updated on: Tue, 16 October 2018 14:15]

Report message to a moderator

Re: P2 repositories intermittent failures [message #1796620 is a reply to message #1796619] Tue, 16 October 2018 14:18 Go to previous messageGo to next message
PK Mising name is currently offline PK Mising nameFriend
Messages: 44
Registered: July 2009
Member
It must have been an issue with the Eclipse servers. It all started working again. Thanks for your pointer about how to build my own p2.
Re: P2 repositories intermittent failures [message #1796645 is a reply to message #1796620] Tue, 16 October 2018 20:29 Go to previous message
Eclipse UserFriend
There was some snafu with download.eclipse.org. It's worth checking the cross-project-issues-dev mailing list if it happens again.

Use of a proxy will shield you from such an outage, should result in much faster build times for your developers, and reduces the load on the Eclipse Foundation servers. It's a win-win-win all around, IMHO.

Brian.
Previous Topic:How to define custom p2 touchpoint actions correctly?
Next Topic:Looking for a P2 Repository for Hibernate
Goto Forum:
  


Current Time: Mon Nov 11 09:32:45 GMT 2024

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

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

Back to the top