tycho: "Could not resolve module: org.eclipse.jdt.launching.macosx" when using MacOS execution environment

Please try to be kind, I am a Tycho noob, trying to build a project which is not my own. In that legacy project I have:

<plugin>
  <groupId>org.eclipse.tycho</groupId>
  <artifactId>target-platform-configuration</artifactId>
  <version>2.5.0</version>
  <configuration>
    <resolver>p2</resolver>
    <pomDependencies>consider</pomDependencies>
    <ignoreTychoRepositories>true</ignoreTychoRepositories>
    <environments>
      <environment>
        <os>macosx</os>
        <ws>cocoa</ws>
        <arch>x86_64</arch>
      </environment>
      <environment>
        <os>linux</os>
        <ws>gtk</ws>
        <arch>x86_64</arch>
      </environment>
      <environment>
        <os>win32</os>
        <ws>win32</ws>
        <arch>x86_64</arch>
      </environment>
    </environments>
    <executionEnvironment>JavaSE-11</executionEnvironment>
  </configuration>
</plugin>

When running tests, I always see:

!ENTRY org.eclipse.jdt.launching.macosx 4 0 2022-01-20 14:58:04.416
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jdt.launching.macosx [245]
  Unresolved requirement: Require-Capability: eclipse.platform; filter:="(osgi.os=macosx)"

	at org.eclipse.osgi.container.Module.start(Module.java:463)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.lambda$1(ModuleContainer.java:1834)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1829)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1775)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1739)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:228)
	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:339)

The test on my Windows box succeeds, but this error message is visible in many tests, often multiple times. As soon as I comment out the <environment><os>macosx</os><ws>cocoa</ws><arch>x86_64</arch></environment> section, the error goes away. Is there anything wrong with that configuration? Should it be updated in any way?


Update: The error message is the same in Tycho 2.7.0-SNAPSHOT.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (17 by maintainers)

Most upvoted comments

i guess no pr is needed. one of the two version can be used to reproduce