Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Custom qualifiers for release versions (rc1, rc2, rc3, ...)

Hello,

we'd like to use custom qualifiers for release versions, e.g. 1.0.0-rc1, 1.0.0-alpha-1. The use case is to provide our QA teams with specific artifacts via our Maven repository. Snapshot artifacts are not allowed, because the releated projects has to pass our whole release process.

Yes, we're aware of the fact that there's a semantic clash between Maven and OSGi qualifiers, but we decided to go the Maven (user friendly) way... therefore we'll won't make use of OSGis qualifier semantics and handle potential conflicts via separate p2 repositories. In production we'll only allow final non-qualified versions, 1.0.0, 1.0.1, 2.0.0 and so on...

Ok, to implement custom release qualifiers with Tycho, I set the "strichtVersions" property of the tycho-packaging-plugin to "false". This seems to work for all project types instead of "eclipse-repository", see trace below...

Caused by: org.apache.maven.plugin.MojoFailureException: Not a valid OSGi version 1.0.0-rc1 for project MavenProject: com.bosch:repository:1.0.0-rc1 @ D:\src\e43\srcpit\ws\qualified-version-test\target\projects\QualifiedVersionTest\testRepository\repository\pom.xml
	at org.eclipse.tycho.buildversion.BuildQualifierMojo.execute(BuildQualifierMojo.java:145)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more

It's easy to fix by converting the qualifier separator from '-' to '.' in AbstractArtifactBasedProject.getOsgiVersion(ReactorProject). We're really happy when Tycho would take this into consideration!? (We would also provide the appropriate patch.)

Mit freundlichen Grüßen / Best regards

Bernd Vogt

Bosch Software Innovations GmbH
Development Software - Core Products Immenstaad (INST/DSW-Imb) Ziegelei 7 88090 Immenstaad GERMANY www.bosch-si.de

Registered office: Immenstaad, Register court: Amtsgericht Ulm, HRB 631888
Executives: Heinz Derenbach; Thomas Cotic, Erica Fölsche, Michael Hahn, Klaus Hüftle



Back to the top