Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install 2.4.0 of m2e using p2 director with eclipse 4.29 #1580

Open
mpet opened this issue Oct 17, 2023 · 5 comments
Open

Could not install 2.4.0 of m2e using p2 director with eclipse 4.29 #1580

mpet opened this issue Oct 17, 2023 · 5 comments

Comments

@mpet
Copy link

mpet commented Oct 17, 2023

Hi,

We are using p2 director to distribute a set of plugins, like m2e.

We basically use the following command:

$ECLIPSE_HOME/eclipse -nosplash -application org.eclipse.equinox.p2.director -repository $iu_repository -installIU $iu_id/$iu_version" -vm $VM

For each m2e feature group we use the following info.

org.eclipse.m2e.sdk.feature.feature.group 2.4.0.20230827-1557 https://download.eclipse.org/technology/m2e/releases/2.4.0
org.eclipse.m2e.feature.feature.group 2.4.100.20230827-1557 https://download.eclipse.org/technology/m2e/releases/2.4.0
org.eclipse.m2e.pde.feature.feature.group 2.2.200.20230820-0922 https://download.eclipse.org/technology/m2e/releases/2.4.0
org.eclipse.m2e.lemminx.feature.feature.group 2.0.5.20230815-1219 https://download.eclipse.org/technology/m2e/releases/2.4.0
org.eclipse.m2e.logback.feature.feature.group 2.2.0.20230819-1220 https://download.eclipse.org/technology/m2e/releases/2.4.0

Then when we try to install the first we will have an issue ( same for the others):

Installing org.eclipse.m2e.sdk.feature.feature.group 2.4.0.20230827-1557. Installation failed. Cannot complete the install because one or more required items could not be found. Software being installed: M2E - Complete Development Kit 2.4.0.20230827-1557 (org.eclipse.m2e.sdk.feature.feature.group 2.4.0.20230827-1557) Missing requirement: M2E Marketplace Discovery 2.0.200.20230210-1347 (org.eclipse.m2e.discovery 2.0.200.20230210-1347) requires 'osgi.bundle; org.eclipse.equinox.p2.ui.discovery 0.0.0' but it could not be found Cannot satisfy dependency: From: M2E Maven POM File Editor 2.0.301.20230809-1423 (org.eclipse.m2e.editor 2.0.301.20230809-1423) To: osgi.bundle; org.eclipse.m2e.discovery [2.0.0,3.0.0) Cannot satisfy dependency: From: M2E - Maven Integration for Eclipse 2.4.100.20230827-1557 (org.eclipse.m2e.feature.feature.group 2.4.100.20230827-1557) To: org.eclipse.equinox.p2.iu; org.eclipse.m2e.editor [2.0.301.20230809-1423,2.0.301.20230809-1423] Cannot satisfy dependency: From: M2E - Complete Development Kit 2.4.0.20230827-1557 (org.eclipse.m2e.sdk.feature.feature.group 2.4.0.20230827-1557) To: org.eclipse.equinox.p2.iu; org.eclipse.m2e.feature.feature.group [2.4.100.20230827-1557,2.4.100.20230827-1557]

What should I do and why does it happen?

br,

//mikael

@mpet
Copy link
Author

mpet commented Oct 17, 2023

I am adding what I select in wizard:

image

Seems like it is not a straight forward install:

image

This is what I get.

image

I assume this is why my p2 director install does not work?

Is there a way around it?

@mpet
Copy link
Author

mpet commented Oct 24, 2023

@HannesWell do you know anything about it?

@HannesWell
Copy link
Contributor

What's the base Eclipse you are trying to install into?
Maybe that's an older one or it misses some now required dependencies.
Recently we changed m2e's p2-repo to be virtually self-sontained so that you should always get all dependencies.
But this will only have an effect form the next release on.

@mpet
Copy link
Author

mpet commented Nov 15, 2023

@HannesWell and which release number are we talking about?

@HannesWell
Copy link
Contributor

But this will only have an effect form the next release on.

In this statement I was referring to the upcomming m2e 2.5.0 release. You can find a snapshot here:
https://download.eclipse.org/technology/m2e/snapshots/2.5.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants