[FELIX-6568] Add skip parameter on the bundle goal (and inherited)
diff --git a/tools/maven-bundle-plugin/pom.xml b/tools/maven-bundle-plugin/pom.xml
index 7e1e653..785ddb7 100644
--- a/tools/maven-bundle-plugin/pom.xml
+++ b/tools/maven-bundle-plugin/pom.xml
@@ -45,7 +45,6 @@
      <connection>scm:git:https://github.com/apache/felix-dev.git</connection>
      <developerConnection>scm:git:https://github.com/apache/felix-dev.git</developerConnection>
      <url>https://gitbox.apache.org/repos/asf?p=felix-dev.git</url>
-   <tag>maven-bundle-plugin-5.1.6</tag>
   </scm>
 
  <!-- Support for publishing the mvn site. -->
@@ -192,14 +191,28 @@
     <version>1.6.0</version>
   </dependency>
   <dependency>
-   <groupId>org.apache.maven</groupId>
-   <artifactId>maven-core</artifactId>
-   <version>3.3.9</version>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-core</artifactId>
+    <version>3.3.9</version>
+    <scope>provided</scope>
+  </dependency>
+  <dependency>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-model</artifactId>
+    <version>3.3.9</version>
+    <scope>provided</scope>
+  </dependency>
+  <dependency>
+    <groupId>org.apache.maven</groupId>
+    <artifactId>maven-artifact</artifactId>
+    <version>3.3.9</version>
+    <scope>provided</scope>
   </dependency>
   <dependency>
     <groupId>org.apache.maven</groupId>
     <artifactId>maven-compat</artifactId>
     <version>3.3.9</version>
+    <scope>provided</scope>
   </dependency>
   <dependency>
     <groupId>org.apache.maven.reporting</groupId>
diff --git a/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
index 24c5c64..1bd7f36 100644
--- a/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
+++ b/tools/maven-bundle-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
@@ -324,6 +324,9 @@
 
     @Component
     protected BuildContext buildContext;
+
+    @Parameter(defaultValue = "false", property = "bundle.skip")
+    private boolean skip = false;
     
     private static final String MAVEN_SYMBOLICNAME = "maven-symbolicname";
     private static final String MAVEN_RESOURCES = "{maven-resources}";
@@ -362,6 +365,10 @@
      */
     public void execute() throws MojoExecutionException
     {
+        if (skip) {
+            getLog().info("Skipping Bundle plugin");
+            return;
+        }
         String projectType = getProject().getArtifact().getType();
 
         // ignore unsupported project types, useful when bundleplugin is configured in parent pom