I am trying to create a simple plugin to inspect project dependencies using the MavenProject - but I'm getting an error because the MavenProject is not bound (see below for details). Here is the code for the plugin: /** * Goal that checks project dependencies * @goal package * @phase package * @requiresProject false * @requiresDependencyResolution runtime * @requiresOnline true * @execute phase="package" */ public class DependencyCheckMojo extends AbstractMojo { /** * POM * * @component */ protected MavenProject project; public void execute() throws MojoExecutionException { if (project != null) { Set artifacts = project.getArtifacts(); for (Artifact a : artifacts) { getLog().error(a.getFile().toString()); } } else { getLog().error("Dependency Check - Maven project is null"); } } } The POM for the plugin is: .... org.codesecure DependencyCheck-Plugin 1.0-SNAPSHOT maven-plugin maven-plugin-plugin 2.3 dependencycheck mojo-descriptor descriptor org.apache.maven maven-plugin-api 3.0 org.apache.maven maven-core 3.0 .... However, when I use this plugin in another project: org.codesecure DependencyCheck-Plugin 1.0-SNAPSHOT package package And I run 'mvn package' I get the following error: [ERROR] Failed to execute goal org.codesecure:DependencyCheck-Plugin:1.0-SNAPSHO T:package (default) on project sample: Execution default of goal org.codesecure: DependencyCheck-Plugin:1.0-SNAPSHOT:package failed: Unable to load the mojo 'pac kage' (or one of its required components) from the plugin 'org.codesecure:Depend encyCheck-Plugin:1.0-SNAPSHOT': com.google.inject.ProvisionException: Guice prov ision errors: [ERROR] [ERROR] 1) No implementation for org.apache.maven.project.MavenProject was bound . [ERROR] while locating org.codesecure.DependencyCheckMojo Any idea what I'm doing wrong? Thanks in advance, Jeremy