Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Setting branch-specific version using tycho-versions:set-version



when using a plain Java project, I would use the versions-maven-plugin with


mvn versions:set -DnewVersion=1.0.0-branchname-SNAPSHOT

mvn deploy


to deploy branch-specific packages.


With tycho, I am trying to achieve the same with


mvn tycho-versions:set-version -DnewVersion=1.0.0-branchname-SNAPSHOT

mvn deploy


However, this yields errors such as (


[ERROR]   Version 1.0.0-deploy-with-branch-name.qualifier is not valid for /home/travis/build/btc-ag/service-idl/com.btc.serviceidl/META-INF/MANIFEST.MF


How can I set branch-specific versions with tycho-versions? The maven artifacts should have this version scheme, it would be fine if the MANIFEST used a different version scheme (maybe leaving out the branch name entirely), as long as this works together.


I also tried just using the versions-maven-plugin, but this yields a different problem (


[ERROR] Internal error: java.lang.RuntimeException: org.osgi.framework.BundleException: Invalid manifest header Bundle-Version: "1.0.0-deploy-with-branch-name.qualifier" : invalid version "1.0.0-deploy-with-branch-name.qualifier": non-numeric "0-deploy-with-branch-name": For input string: "0-deploy-with-branch-name" -> [Help 1]


Any ideas?


Best regards


Back to the top