          }
          catch ( ProjectDependencyAnalyzerException exception )
          {
-             throw new MojoExecutionException( "Cannot analyze dependencies", exception );
-+        } catch(Exception exception) {
-+            throw new MojoExecutionException( "Internal error", exception );
-         }
- 
-         Set usedDeclared = analysis.getUsedDeclaredArtifacts();
 Index: pom.xml
 ===================================================================
 --- pom.xml	(revision 942469)

 
     /**
      * Whether to fail the build if a dependency warning is found.
@@ -157,19 +170,37 @@
         }
     }
 
+    protected ProjectDependencyAnalyzer createAnalyzer() throws ContextException, ComponentLookupException {
+    	
+    	final String role = ProjectDependencyAnalyzer.ROLE;
+    	final String roleHint = analyzer;
+    	
+    	final PlexusContainer container = (PlexusContainer) 
+    		context.get( PlexusConstants.PLEXUS_KEY );
+    	
+		return (ProjectDependencyAnalyzer) container.lookup( role  , roleHint );
+    }
+    
+    public void contextualize( Context context ) throws ContextException {
+    	this.context = context;
+    }
+    
     // private methods --------------------------------------------------------
 
     private boolean checkDependencies()
         throws MojoExecutionException
     {
+    	
         ProjectDependencyAnalysis analysis;
         try
         {

 import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
 
 /**
@@ -45,10 +51,17 @@
  */
 public abstract class AbstractAnalyzeMojo
     extends AbstractMojo
+    implements Contextualizable
 {
     // fields -----------------------------------------------------------------
 
     /**
+     * The plexus context to look-up the right {@link ProjectDependencyAnalyzer} implementation depending on the mojo
+     * configuration.
+     */
+    private Context context;
+
+    /**
      * The Maven project to analyze.
      * 
      * @parameter expression="${project}"
@@ -58,13 +71,11 @@
     private MavenProject project;
 
     /**
