tycho icon indicating copy to clipboard operation
tycho copied to clipboard

java.lang.IllegalStateException: Project ... does not have an expanded version

Open kgibm opened this issue 1 year ago • 2 comments

Caused by: java.lang.IllegalStateException: Project com.example:com.example.matsample.plugin:eclipse-plugin:0.1.0-SNAPSHOT does not have an expanded version
	at org.eclipse.tycho.core.osgitools.DefaultReactorProject.getExpandedVersion(DefaultReactorProject.java:255)

I have a reproducible public repository for this issue: https://github.com/IBM/memoryanalyzersamples

This has been observed before:

  • https://github.com/eclipse-tycho/tycho/issues/2581
  • https://github.com/eclipse-tycho/tycho/issues/2206#issuecomment-1710023036

But I'm confused how to fix it. I do see that build-qualifier is ignored:

image

But I don't specify to ignore it anywhere and I can't see a way to change it in Eclipse. I do have a global settings file but it doesn't have much:

<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
  <lifecycleMappingFilters>
    <lifecycleMappingFilter>
      <symbolicName>org.eclipse.m2e.pde.connector</symbolicName>
      <versionRange>[2.1.400,)</versionRange>
      <packagingTypes>
        <packagingType>eclipse-plugin</packagingType>
        <packagingType>eclipse-feature</packagingType>
      </packagingTypes>
    </lifecycleMappingFilter>
    <lifecycleMappingFilter>
      <symbolicName>org.sonatype.tycho.m2e</symbolicName>
      <versionRange>[0.10.0,)</versionRange>
      <packagingTypes>
        <packagingType>eclipse-feature</packagingType>
      </packagingTypes>
    </lifecycleMappingFilter>
  </lifecycleMappingFilters>
</lifecycleMappingMetadata>

kgibm avatar Sep 05 '24 13:09 kgibm

I also have this error in my personal project, and also found it in the demo project itp04-rcp, when changing the Tycho version to 4.0.13 and importing it into Eclipse. Tested on Eclipse 2023-09 and 2025-06.

Does itp04-rcp need changes for Tycho 4, or is this a legitimate bug in Tycho?

41zu avatar Jul 09 '25 16:07 41zu

You should check if you have any ignores (per workspace) or any additional plugins installed that might ignore this goal.

laeubi avatar Jul 09 '25 16:07 laeubi