"Steven E. Harris" <[EMAIL PROTECTED]> writes: > apparently the older Maven plugin doesn't generate proper version > strings
Here's the problem from tools/maven2/maven-osgi-plugin/ src/main/java/org.apache.felix.tools/maven/plugin/OsgiJarMojo.java: ,---- | private void addBundleVersion() { | // Maven uses a '-' to separate the version qualifier, | // while OSGi uses a '.', so we need to convert to a '.' | String version = project.getVersion().replace('-', '.'); | osgiManifest.setBundleVersion(version); | } `---- Here's a fix: private void addBundleVersion() { // Maven uses a '-' to separate the version qualifier, // while OSGi uses a '.', so we need to convert the first '-' to a '.' final String version = project.getVersion().replaceFirst("((^|\\.)[0-9]+)-", "$1."); osgiManifest.setBundleVersion(version); } -- Steven E. Harris