org.apache.maven.plugin.eclipse
Class InstallPluginsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.eclipse.InstallPluginsMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class InstallPluginsMojo
- extends org.apache.maven.plugin.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,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.project.MavenProjectBuilder projectBuilder,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.codehaus.plexus.components.interactivity.InputHandler inputHandler,
org.apache.maven.plugin.logging.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 |
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
InstallPluginsMojo
public InstallPluginsMojo()
InstallPluginsMojo
protected InstallPluginsMojo(File eclipseDir,
boolean overwrite,
List dependencyArtifacts,
String pluginDependencyTypes,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
org.apache.maven.project.MavenProjectBuilder projectBuilder,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.codehaus.plexus.components.interactivity.InputHandler inputHandler,
org.apache.maven.plugin.logging.Log log)
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.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:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.