Add an option to silently ignore some project types instead of displaying a warning
@@ -259,6 +259,12 @@ public class BundlePlugin extends AbstractMojo
@Parameter
protected List<String> supportedProjectTypes = Arrays.asList("jar", "bundle");
+ /**
+ * Project types which are not supported, but silently ignored.
+ */
+ @Parameter
+ protected List<String> noWarningProjectTypes = Collections.emptyList();
+
/**
* The directory for the generated bundles.
*/
@@ -344,9 +350,12 @@ public class BundlePlugin extends AbstractMojo
// ignore unsupported project types, useful when bundleplugin is configured in parent pom
if ( !supportedProjectTypes.contains( projectType ) )
+ {
+ if (!noWarningProjectTypes.contains( projectType ) )
{
getLog().warn(
"Ignoring project type " + projectType + " - supportedProjectTypes = " + supportedProjectTypes);
+ }
return;
}
