Class InstallMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.invoker.InstallMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="install",
defaultPhase=PRE_INTEGRATION_TEST,
requiresDependencyResolution=TEST,
threadSafe=true)
public class InstallMojo
extends org.apache.maven.plugin.AbstractMojo
Installs the project artifacts of the main build into the local repository as a preparation to run the sub projects.
More precisely, all artifacts of the project itself, all its locally reachable parent POMs and all its dependencies
from the reactor will be installed to the local repository.
- Since:
- 1.2
- Author:
- Paul Gier, Benjamin Bentmann
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionInstallMojo(org.eclipse.aether.RepositorySystem repositorySystem, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project) -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
InstallMojo
@Inject public InstallMojo(org.eclipse.aether.RepositorySystem repositorySystem, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionPerforms this mojo's tasks.- Throws:
org.apache.maven.plugin.MojoExecutionException- If the artifacts could not be installed.
-