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

M2E Problems in latest on tycho 5 test branch #3306

Open
cdietrich opened this issue Dec 30, 2024 · 5 comments
Open

M2E Problems in latest on tycho 5 test branch #3306

cdietrich opened this issue Dec 30, 2024 · 5 comments

Comments

@cdietrich
Copy link
Contributor

https://ci.eclipse.org/xtext/job/xtext/job/cd_tycho50/629/console

07:52:18 [ERROR] org.eclipse.m2e.core 2.7.0.20241001-1350 requires Execution Environment that matches (&(osgi.ee=JavaSE)(version=21)) but the current resolution context uses [a.jre.javase 17.0.0]
07:52:18 [ERROR] Cannot resolve target definition:
07:52:18 [ERROR] Software being installed: org.eclipse.m2e.feature.feature.group 2.7.0.20241126-1642
07:52:18 [ERROR] Missing requirement: org.eclipse.m2e.core 2.7.0.20241001-1350 requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=21))' but it could not be found
07:52:18 [ERROR] Cannot satisfy dependency: org.eclipse.m2e.feature.feature.group 2.7.0.20241126-1642 depends on: org.eclipse.equinox.p2.iu; org.eclipse.m2e.core [2.7.0.20241001-1350,2.7.0.20241001-1350]

@cdietrich
Copy link
Contributor Author

@LorenzoBettini do you have an idea why tycho does not pick j21?

@cdietrich
Copy link
Contributor Author

@laeubi was there a recent change in tycho that changed the profiles to (tycho 5)

07:52:13 [INFO] Resolving target definition file:/home/jenkins/agent/workspace/xtext_cd_tycho50/org.eclipse.xtext.common.types.shared/../xtext-latest.target for environments=[macosx/cocoa/x86_64, macosx/cocoa/aarch64, win32/win32/x86_64, linux/gtk/x86_64], include source mode=honor, referenced repository mode =include, execution environment=StandardEEResolutionHints [executionEnvironment=OSGi profile 'JavaSE-17' { source level: 17, target level: 17}], remote p2 repository options=org.eclipse.tycho.p2maven.DefaultProvisioningAgent@67b4b072

from (tycho 4)

11:00:07 [INFO] Resolving target definition file:/home/jenkins/agent/workspace/xtext_main/org.eclipse.xtext.xbase.lib/../xtext-latest.target for environments=[macosx/cocoa/x86_64, macosx/cocoa/aarch64, win32/win32/x86_64, linux/gtk/x86_64], include source mode=honor, referenced repository mode =ignore, execution environment=StandardEEResolutionHints [executionEnvironment=OSGi profile 'JavaSE-21' { source level: 21, target level: 21}], remote p2 repository options=org.eclipse.tycho.p2maven.DefaultProvisioningAgent@bb39957

@LorenzoBettini
Copy link
Contributor

Maybe it's now using the Java version specified in the projects.

@laeubi
Copy link

laeubi commented Dec 30, 2024

See release notes for upcoming Tycho 4.11 (and Tycho 5.x has the same fix):

https://github.com/eclipse-tycho/tycho/blob/tycho-4.0.x/RELEASE_NOTES.md#4011

@cdietrich
Copy link
Contributor Author

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

3 participants