  import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
  
  /**
-@@ -44,11 +50,20 @@
-  * @since 2.0-alpha-5
+@@ -45,10 +51,17 @@
   */
  public abstract class AbstractAnalyzeMojo
--    extends AbstractMojo
-+    extends AbstractMojo implements Contextualizable
+     extends AbstractMojo
++    implements Contextualizable
  {
      // fields -----------------------------------------------------------------
  
      /**
-+	 * The plexus context to
-+	 * look-up the right 
-+	 * {@link ProjectDependencyAnalyzer}
-+	 * implementation depending
-+	 * on the mojo configuration. 
-+	 */
++     * 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 +73,11 @@
+@@ -58,13 +71,11 @@
      private MavenProject project;
  
      /**

 
     /**
      * 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
         {

         }
         catch ( ProjectDependencyAnalyzerException exception )
         {
Index: pom.xml
===================================================================
--- pom.xml	(revision 942469)
