tycho icon indicating copy to clipboard operation
tycho copied to clipboard

tycho-versions-plugin:bump-version add snapshot to snapshot ( 7.26.2-SNAPSHOT => 7.26.3-SNAPSHOT-SNAPSHOT)

Open vguignot-ingenico opened this issue 1 year ago • 1 comments

Hello, thanks for this useful new tool which bump the version again the baseline version. Unfortunately it doesn't works on my multi module eclipse project:

./mvnw install -PcompareBaseline -DonIllegalVersionBaseline=fail -DbaselineWarnMode=fail org.eclipse.tycho:tycho-versions-plugin:bump-versions

(...)
[INFO] xxx.yyyyyyyyy.zzzzzzzz:xxx.yyyyyyyyy.zzzzzzzz.generic.emf:eclipse-plugin:7.26.2-SNAPSHOT requires a version bump from 7.26.2-SNAPSHOT => 7.26.3-SNAPSHOT-SNAPSHOT
[WARNING] Can't bump versions for project xxx.yyyyyyyyy.zzzzzzzz:xxx.yyyyyyyyy.zzzzzzzz.generic.emf:eclipse-plugin:7.26.2-SNAPSHOT: org.eclipse.tycho.versions.engine.IllegalVersionChangeException: Invalid version: 
  Version 7.26.3-SNAPSHOT.qualifier is not valid for /home/aaabbbb/git/xxxxxxxx/yyyyyy/egl/bundles/xxx.yyyyyyyyy.zzzzzzzz.generic.emf/META-INF/MANIFEST.MF

[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-p2-extras-plugin:4.0.6:compare-version-with-baselines (compare-version-with-baselines) on project xxx.yyyyyyyyy.zzzzzzzz.generic.emf: Only qualifier changed for (xxx.yyyyyyyyy.zzzzzzzz.generic.emf/7.26.2.qualifier). Expected to have bigger x.y.z than what is available in baseline (7.26.2.202210131502) -> [Help 1]

My pom version is 7.26.2-SNAPSHOT, the manifest version is 7.26.2.qualifier. The baseline version is 7.26.2.202210131502. So The bump should works, but the -SNAPSHOT is added to the original version to result to 7.26.3-SNAPSHOT-SNAPSHOT.

Maybe I don't use the correct rules. If someone can explain how to use it. Thanks.

vguignot-ingenico avatar Mar 26 '24 12:03 vguignot-ingenico

Can you provide an integration-test to demonstrate the issue?

laeubi avatar Aug 27 '25 07:08 laeubi