Throw error if compoent factory and metatype factory pid are used together (instead of warning)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@812351 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
index 0144763..2662880 100644
--- a/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
+++ b/scrplugin/src/main/java/org/apache/felix/scrplugin/SCRDescriptorMojo.java
@@ -523,7 +523,7 @@
                 if ( component.getFactory() == null ) {
                     designate.setFactoryPid( component.getName() );
                 } else {
-                    iLog.addWarning("Component factory " + component.getName() + " should not set metatype factory pid.");
+                    iLog.addError("Component factory " + component.getName() + " should not set metatype factory pid.");
                 }
             }
             // designate.object