Index: src/main/java/org/apache/maven/plugin/install/InstallMojo.java =================================================================== --- src/main/java/org/apache/maven/plugin/install/InstallMojo.java (revision 919111) +++ src/main/java/org/apache/maven/plugin/install/InstallMojo.java (working copy) @@ -53,6 +53,14 @@ * @readonly */ private File pomFile; + + /** + * Set this to true to bypass artifact installation. Use this for artifacts that does not need to be installed in the local repository. + * + * @parameter default-value="false" + * @required + */ + private boolean skip; /** * @parameter default-value="${project.artifact}" @@ -71,6 +79,11 @@ public void execute() throws MojoExecutionException { + if (skip) { + getLog().info("Skipping artifact installation"); + return; + } + // TODO: push into transformation boolean isPomArtifact = "pom".equals( packaging );