Skip to main content



      Home
Home » Eclipse Projects » P2 » P2 repositories intermittent failures
P2 repositories intermittent failures [message #1796597] Tue, 16 October 2018 08:10 Go to next message
Eclipse UserFriend
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 09: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 10:14 Go to previous messageGo to next message
Eclipse UserFriend
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 10:15] by Moderator

Re: P2 repositories intermittent failures [message #1796620 is a reply to message #1796619] Tue, 16 October 2018 10:18 Go to previous messageGo to next message
Eclipse UserFriend
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 16: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: Fri Jun 20 05:45:18 EDT 2025

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

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

Back to the top