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);