Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » OOMPH doesn't download plugins from specified repositories (and brings the latest version instead)
OOMPH doesn't download plugins from specified repositories (and brings the latest version instead) [message #1856927] Mon, 09 January 2023 19:12 Go to next message
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior Member
Hi,

I have a .setup file that is configured to load plugins from 2 repositories of version 2020.12. However, when it is executed, the plugins have not version 2020.12 as expected; they have version 2022.12. Here is an extract of the .setup file:

<setup:Product xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:setup="http://www.eclipse.org/oomph/setup/1.0" xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0" name="eclipse-centralized-oomph" label="eclipse-centralized-oomph-2020-12-v3.0">
  <annotation source="http://www.eclipse.org/oomph/setup/BrandingInfo">
    <detail key="folderName">
      <value>eclipse-centralized-oomph</value>
    </detail>
    <detail key="folderName.macosx">
      <value>Eclipse</value>
    </detail>
  </annotation>
  <setupTask xsi:type="setup:CompoundTask" name="User Preferences">
    <annotation source="http://www.eclipse.org/oomph/setup/UserPreferences"/>
    <setupTask xsi:type="setup:CompoundTask" name="cucumber.eclipse.editor">
      <setupTask xsi:type="setup:PreferenceTask" key="/instance/cucumber.eclipse.editor/cucumber.eclipse.editor.check_step_definitions" value="false"/>
...
  </setupTask>
  <version name="perpetual" label="" requiredJavaVersion="1.8">
    <setupTask xsi:type="setup.p2:P2Task" label="Eclipse IDE for Enterprise Java and Web Developers (2020-12)">
      <requirement name="epp.package.jee" versionRange="[4.18.0,5.0.0)"/>
      <requirement name="org.eclipse.platform.feature.group" versionRange="[4.18.0,5.0.0)"/>
      <requirement name="org.eclipse.rcp.feature.group" versionRange="[4.18.0,5.0.0)"/>
...
      <repository url="http://download.eclipse.org/technology/epp/packages/2020-12/202012101200"/>
      <repository url="http://download.eclipse.org/releases/2020-12/202012161000">
        <annotation source="http://www.eclipse.org/oomph/setup/ReleaseTrain"/>
      </repository>
    </setupTask>
  </version>
  <description></description>
</setup:Product>


An extract from the log:

[2023-01-09 19:24:21] Requirement org.eclipse.equinox.p2.iu:org.sf.feeling.decompiler.procyon.feature.group
[2023-01-09 19:24:21] Requirement org.eclipse.equinox.p2.iu:org.hibernate.eclipse.feature.feature.group
[2023-01-09 19:24:21] Requirement org.eclipse.equinox.p2.iu:org.jboss.tools.maven.apt.feature.feature.group
[2023-01-09 19:24:21] Requirement org.eclipse.equinox.p2.iu:net.mihai-nita.ansicon.feature.group
[2023-01-09 19:24:21] Requirement org.eclipse.equinox.p2.iu:net.mihai-nita.externalfilter.feature.group
[2023-01-09 19:24:21] Repository http://download.eclipse.org/technology/epp/packages/2020-12/202012101200
[2023-01-09 19:24:21] Repository http://download.eclipse.org/releases/2020-12/202012161000
[2023-01-09 19:24:21] Repository https://ecd-plugin.github.io/update/
[2023-01-09 19:24:21] Repository http://download.jboss.org/jbosstools/photon/development/updates/
[2023-01-09 19:24:21] Repository https://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-apt/1.5.3-2019-11-08_11-04-22-H22/
[2023-01-09 19:24:21] Repository https://www.mihai-nita.net/eclipse
[2023-01-09 19:24:25] Fetching p2.index from https://download.eclipse.org/eclipse/updates/4.25/ (128B)
[2023-01-09 19:24:26] Fetching compositeContent.jar from https://download.eclipse.org/eclipse/updates/4.25/ (447B)
[2023-01-09 19:24:27] Fetching content.jar from https://download.eclipse.org/eclipse/updates/4.25/categories/ (1.46kB)
[2023-01-09 19:24:27] Fetching p2.index from https://download.eclipse.org/eclipse/updates/4.25/R-4.25-202208311800/ (142B)
[2023-01-09 19:24:28] Fetching content.xml.xz from https://download.eclipse.org/eclipse/updates/4.25/R-4.25-202208311800/ (133.37kB)
[2023-01-09 19:24:29] Fetching p2.index from https://download.eclipse.org/tools/orbit/downloads/latest-R/ (134B)
[2023-01-09 19:24:30] Fetching compositeContent.xml from https://download.eclipse.org/tools/orbit/downloads/latest-R/ (428B)
[2023-01-09 19:24:30] Fetching p2.index from https://download.eclipse.org/tools/orbit/downloads/drops/R20221123021534/repository/ (172B)


Any idea what I'm doing wrong?

Thanks in advance!
Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1856930 is a reply to message #1856927] Mon, 09 January 2023 19:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Which two plugins? You can always restrict the versions via ranges to exactly the versions you want...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1856931 is a reply to message #1856930] Mon, 09 January 2023 20:08 Go to previous messageGo to next message
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior Member
I wanted the Eclipse plugins to come from:

<repository url="http://download.eclipse.org/technology/epp/packages/2020-12/202012101200"/>
<repository url="http://download.eclipse.org/releases/2020-12/202012161000">

I'm talking about all the Eclipse plugins from a vanilla install. Such as:

<requirement name="epp.package.jee" versionRange="[4.18.0,5.0.0)"/>
<requirement name="org.eclipse.platform.feature.group" versionRange="[4.18.0,5.0.0)"/>
<requirement name="org.eclipse.rcp.feature.group" versionRange="[4.18.0,5.0.0)"/>

I created this P2Task by copying/pasting it from what I found in a vanilla install. In my opinion I took a snapshot of that vanilla install that I did 2 years ago, with version 2020.12.

Restricting versions: I understand. But this is tedious to take each plugin by hand and adjust it. I was hoping that my copy/paste approach would work, based on the fact that I use repos that only contain 2020.12 versions. But somehow, OOMPH uses other repo(s) instead of the ones I specified.

Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1856934 is a reply to message #1856931] Tue, 10 January 2023 07:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
An update site can not only be a composite that compose other sites, an update site can also specify reference to other sites. If I start here:

https://download.jboss.org/jbosstools/photon/development/updates/compositeContent.xml

I see it composes this site:

https://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/4.26.0.Final-SNAPSHOT/REPO/

And for that site I can see in https://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/4.26.0.Final-SNAPSHOT/REPO/content.jar all these referenced repositories:
  <references size='14'>
    <repository uri='https://download.eclipse.org/eclipse/updates/4.25/' url='https://download.eclipse.org/eclipse/updates/4.25/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/eclipse/updates/4.25/' url='https://download.eclipse.org/eclipse/updates/4.25/' type='1' options='1'/>
    <repository uri='https://download.eclipse.org/tools/orbit/downloads/latest-R/' url='https://download.eclipse.org/tools/orbit/downloads/latest-R/' type='1' options='1'/>
    <repository uri='https://download.eclipse.org/tools/orbit/downloads/latest-R/' url='https://download.eclipse.org/tools/orbit/downloads/latest-R/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/releases/2022-12/' url='https://download.eclipse.org/releases/2022-12/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/wildwebdeveloper/releases/1.0.0/' url='https://download.eclipse.org/wildwebdeveloper/releases/1.0.0/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/wildwebdeveloper/releases/1.0.0/' url='https://download.eclipse.org/wildwebdeveloper/releases/1.0.0/' type='1' options='1'/>
    <repository uri='https://download.eclipse.org/eclipse/updates/4.26/' url='https://download.eclipse.org/eclipse/updates/4.26/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/eclipse/updates/4.26/' url='https://download.eclipse.org/eclipse/updates/4.26/' type='1' options='1'/>
    <repository uri='http://download.eclipse.org/technology/m2e/releases/' url='http://download.eclipse.org/technology/m2e/releases/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/lsp4e/releases/0.20.7/' url='https://download.eclipse.org/lsp4e/releases/0.20.7/' type='0' options='1'/>
    <repository uri='https://download.eclipse.org/lsp4e/releases/0.20.7/' url='https://download.eclipse.org/lsp4e/releases/0.20.7/' type='1' options='1'/>
    <repository uri='https://download.eclipse.org/releases/2022-12/' url='https://download.eclipse.org/releases/2022-12/' type='1' options='1'/>
    <repository uri='http://testng.org/testng-p2-update-site/' url='http://testng.org/testng-p2-update-site/' type='0' options='1'/>
  </references>
So yes, if the requirements you are trying to install are satisfied by IUs coming from https://download.eclipse.org/releases/2022-12/ (which is indirectly specified by the sites that you have specified) those will be installed. That is to be expected.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1856991 is a reply to message #1856934] Wed, 11 January 2023 22:09 Go to previous messageGo to next message
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior Member
Thanks for the explanation!
So indeed the only solution would be to take by hand all the features and modify the "max" version, right?
Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1856996 is a reply to message #1856991] Thu, 12 January 2023 08:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33145
Registered: July 2009
Senior Member
Yes, given you have limited control over the repositories that make many things visible, the only alternative is to restrict the solution via requirements that constrain the resolution.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: OOMPH doesn't download plugins from specified repositories (and brings the latest version instea [message #1857013 is a reply to message #1856996] Thu, 12 January 2023 21:45 Go to previous message
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior Member
Thanks a lot Ed!
Previous Topic:Oomph headless
Next Topic:Problem with installing.
Goto Forum:
  


Current Time: Tue May 07 10:35:47 GMT 2024

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

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

Back to the top