Applied a modified version of the patch from FELIX-218 to support BND 
directives.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@523358 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 af6a425..b6bacfe 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
@@ -128,8 +128,16 @@
    properties.put("project.build.directory", buildDirectory );
    properties.put("project.build.outputdirectory", outputDirectory );
    
-   properties.putAll(instructions);
- 
+   Iterator i = instructions.entrySet().iterator();
+   while (i.hasNext()) {
+     Map.Entry e = (Map.Entry)i.next();
+     String key = (String)e.getKey();
+     if (key.startsWith("_")) {
+       key = "-"+key.substring(1);
+     }
+     properties.put(key, e.getValue());
+   }
+
    Builder builder = new Builder();
    builder.setBase(baseDir);
    Jar[] cp = getClasspath();