@Mojo(name="install", defaultPhase=INSTALL, threadSafe=true) public class InstallMojo extends AbstractInstallMojo
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.artifact.Artifact |
artifact
Deprecated.
either use project.getArtifact() or reactorProjects.get(i).getArtifact()
|
private java.util.List<org.apache.maven.artifact.Artifact> |
attachedArtifacts
Deprecated.
either use project.getAttachedArtifacts() or reactorProjects.get(i).getAttachedArtifacts()
|
private boolean |
installAtEnd
Whether every project should be installed during its own install-phase or at the end of the multimodule build.
|
private static java.util.List<InstallRequest> |
installRequests |
protected java.lang.String |
packaging
Deprecated.
either use project.getPackaging() or reactorProjects.get(i).getPackaging()
|
private java.io.File |
pomFile
Deprecated.
either use project.getFile() or reactorProjects.get(i).getFile()
|
private org.apache.maven.project.MavenProject |
project |
private java.util.List<org.apache.maven.project.MavenProject> |
reactorProjects |
private static java.util.concurrent.atomic.AtomicInteger |
readyProjectsCounter
When building with multiple threads, reaching the last project doesn't have to mean that all projects are ready
to be installed
|
private boolean |
skip
Set this to
true to bypass artifact installation. |
artifactFactory, createChecksum, digester, installer, localRepository, updateReleaseInfo
Constructor and Description |
---|
InstallMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
private void |
installProject(InstallRequest request) |
void |
setSkip(boolean skip) |
addMetaDataFilesForArtifact, getLocalRepoFile, getLocalRepoFile, installChecksums, installChecksums
private static final java.util.concurrent.atomic.AtomicInteger readyProjectsCounter
private static final java.util.List<InstallRequest> installRequests
@Parameter(defaultValue="${project}", readonly=true, required=true) private org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${reactorProjects}", required=true, readonly=true) private java.util.List<org.apache.maven.project.MavenProject> reactorProjects
@Parameter(defaultValue="false", property="installAtEnd") private boolean installAtEnd
true
and the build fails, none of the reactor projects is installed. (experimental)@Parameter(defaultValue="${project.packaging}", required=true, readonly=true) protected java.lang.String packaging
@Parameter(defaultValue="${project.file}", required=true, readonly=true) private java.io.File pomFile
@Parameter(property="maven.install.skip", defaultValue="false") private boolean skip
true
to bypass artifact installation. Use this for artifacts that does not need to be
installed in the local repository.@Parameter(defaultValue="${project.artifact}", required=true, readonly=true) private org.apache.maven.artifact.Artifact artifact
@Parameter(defaultValue="${project.attachedArtifacts}", required=true, readonly=true) private java.util.List<org.apache.maven.artifact.Artifact> attachedArtifacts
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private void installProject(InstallRequest request) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void setSkip(boolean skip)