org.apache.maven.plugin.eclipse
Class InstallPluginsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.eclipse.InstallPluginsMojo
All Implemented Interfaces:
ContextEnabled, Mojo

@Mojo(name="install-plugins",
      requiresDependencyResolution=COMPILE)
public class InstallPluginsMojo
extends AbstractMojo

Install plugins resolved from the Maven repository system into an Eclipse instance.

Author:
jdcasey

Field Summary
static String PROP_UNPACK_PLUGIN
          Set this property in a plugin POM's <properties/> section to determine whether that plugin should be expanded during installation, or left as a jar file.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
  InstallPluginsMojo()
           
protected InstallPluginsMojo(File eclipseDir, boolean overwrite, List dependencyArtifacts, String pluginDependencyTypes, ArtifactRepository localRepository, MavenProjectBuilder projectBuilder, ArchiverManager archiverManager, org.codehaus.plexus.components.interactivity.InputHandler inputHandler, Log log)
           
 
Method Summary
 void execute()
          Traverse the list of resolved dependency artifacts.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_UNPACK_PLUGIN

public static final String PROP_UNPACK_PLUGIN
Set this property in a plugin POM's <properties/> section to determine whether that plugin should be expanded during installation, or left as a jar file.

See Also:
Constant Field Values
Constructor Detail

InstallPluginsMojo

public InstallPluginsMojo()

InstallPluginsMojo

protected InstallPluginsMojo(File eclipseDir,
                             boolean overwrite,
                             List dependencyArtifacts,
                             String pluginDependencyTypes,
                             ArtifactRepository localRepository,
                             MavenProjectBuilder projectBuilder,
                             ArchiverManager archiverManager,
                             org.codehaus.plexus.components.interactivity.InputHandler inputHandler,
                             Log log)
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Traverse the list of resolved dependency artifacts. For each one having a type that is listed in the pluginDependencyTypes parameter value, resolve the associated project metadata (POM), and perform install(..) on that artifact.

Throws:
MojoExecutionException
MojoFailureException


Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.