commit | c64bd1686d5155eee0862592353f1de1742eb72e | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Thu Mar 15 16:04:31 2007 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Thu Mar 15 16:04:31 2007 +0000 |
tree | 8e1b145092795879340fca72c3c615cdb7c357cf | |
parent | 571e10a855fa8c2cf48a3cfb502f6ab75611df77 [diff] |
Fixed a bug raised by FELIX-256 where maven version numbers were not being properly converted into OSGi version numbers. git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@518673 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java index 4e28260..af6a425 100644 --- a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java +++ b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
@@ -94,7 +94,7 @@ properties.put(Analyzer.EXPORT_PACKAGE, bsn + ".*"); } String version = project.getVersion(); - Pattern P_VERSION = Pattern.compile("([0-9]+(\\.[0-9])*)-(.*)"); + Pattern P_VERSION = Pattern.compile("([0-9]+(\\.[0-9]+)*)-(.*)"); Matcher m = P_VERSION.matcher(version); if (m.matches()) { version = m.group(1) + "." + m.group(3);