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

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

Open
vguignot-ingenico opened this issue Mar 26, 2024 · 0 comments

Comments

@vguignot-ingenico
Copy link

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.

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

1 participant