java.lang.IllegalStateException: Project ... does not have an expanded version
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:
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>
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?
You should check if you have any ignores (per workspace) or any additional plugins installed that might ignore this goal.